$product = {"id":7416351817827,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy","handle":"iphone-8-mod-nx-printable-pb61","description":null,"published_at":"2024-06-11T16:56:41+08:00","created_at":"2024-05-06T14:40:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41918805278819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31491916857443,"product_id":7416351817827,"position":5,"created_at":"2024-05-06T14:40:27+08:00","updated_at":"2024-05-06T14:40:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627","variant_ids":[41918805278819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-PB61","featured_media":{"alt":null,"id":23897329795171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e6349cd8df3d1c837b8538b1291454b22f90e1_61ebe174-7b33-4f36-bd75-058b9cb98a7b.webp?v=1714977617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c86f19f8254727b8f6ff2fa49b1e5f6c924e9c37_1f01cc70-3d4b-4f3c-9260-119fd2df8733.webp?v=1714977620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e55820fcfa6c200fb2ac93d5583e59f8a8687ae_21a7cd05-67b3-4a8b-93c9-df7f61e89b8d.webp?v=1714977622","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/217e05d530ca494e7954dc172815af1645075ea5_4c383431-4eb9-4086-a997-e13fb828f6e8.webp?v=1714977625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f24931e0a0179d9886b619b14f06da783062441_ddedf62e-9881-453b-a76a-61fe99c5f477.webp?v=1714977630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90eedf7e7c65aec46924c5676ab15b1e8a0d228_ece8bf98-8f58-4b97-9e53-67abf3ae8e8b.webp?v=1714977633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88bbd38bbe00b5533ffe76004f9f4f636908db04_1e1e7cc1-1f89-4ee2-b955-73fea4096031.webp?v=1714977635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3905922e55391df9fe8b0e67d377e5f434bccd_87378b83-6e64-4b69-8ef4-04edf2d3772a.webp?v=1714977640"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e6349cd8df3d1c837b8538b1291454b22f90e1_61ebe174-7b33-4f36-bd75-058b9cb98a7b.webp?v=1714977617","options":["color"],"media":[{"alt":null,"id":23897327894627,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e6349cd8df3d1c837b8538b1291454b22f90e1_61ebe174-7b33-4f36-bd75-058b9cb98a7b.webp?v=1714977617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e6349cd8df3d1c837b8538b1291454b22f90e1_61ebe174-7b33-4f36-bd75-058b9cb98a7b.webp?v=1714977617","width":2000},{"alt":null,"id":23897328484451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c86f19f8254727b8f6ff2fa49b1e5f6c924e9c37_1f01cc70-3d4b-4f3c-9260-119fd2df8733.webp?v=1714977620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c86f19f8254727b8f6ff2fa49b1e5f6c924e9c37_1f01cc70-3d4b-4f3c-9260-119fd2df8733.webp?v=1714977620","width":2000},{"alt":null,"id":23897328812131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e55820fcfa6c200fb2ac93d5583e59f8a8687ae_21a7cd05-67b3-4a8b-93c9-df7f61e89b8d.webp?v=1714977622"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e55820fcfa6c200fb2ac93d5583e59f8a8687ae_21a7cd05-67b3-4a8b-93c9-df7f61e89b8d.webp?v=1714977622","width":2000},{"alt":null,"id":23897329369187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/217e05d530ca494e7954dc172815af1645075ea5_4c383431-4eb9-4086-a997-e13fb828f6e8.webp?v=1714977625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/217e05d530ca494e7954dc172815af1645075ea5_4c383431-4eb9-4086-a997-e13fb828f6e8.webp?v=1714977625","width":2000},{"alt":null,"id":23897329795171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627","width":2000},{"alt":null,"id":23897330581603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f24931e0a0179d9886b619b14f06da783062441_ddedf62e-9881-453b-a76a-61fe99c5f477.webp?v=1714977630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f24931e0a0179d9886b619b14f06da783062441_ddedf62e-9881-453b-a76a-61fe99c5f477.webp?v=1714977630","width":2000},{"alt":null,"id":23897331073123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90eedf7e7c65aec46924c5676ab15b1e8a0d228_ece8bf98-8f58-4b97-9e53-67abf3ae8e8b.webp?v=1714977633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e90eedf7e7c65aec46924c5676ab15b1e8a0d228_ece8bf98-8f58-4b97-9e53-67abf3ae8e8b.webp?v=1714977633","width":2000},{"alt":null,"id":23897331433571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88bbd38bbe00b5533ffe76004f9f4f636908db04_1e1e7cc1-1f89-4ee2-b955-73fea4096031.webp?v=1714977635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88bbd38bbe00b5533ffe76004f9f4f636908db04_1e1e7cc1-1f89-4ee2-b955-73fea4096031.webp?v=1714977635","width":2000},{"alt":null,"id":23897332383843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3905922e55391df9fe8b0e67d377e5f434bccd_87378b83-6e64-4b69-8ef4-04edf2d3772a.webp?v=1714977640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3905922e55391df9fe8b0e67d377e5f434bccd_87378b83-6e64-4b69-8ef4-04edf2d3772a.webp?v=1714977640","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918805278819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31491916857443,"product_id":7416351817827,"position":5,"created_at":"2024-05-06T14:40:27+08:00","updated_at":"2024-05-06T14:40:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627","variant_ids":[41918805278819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-PB61","featured_media":{"alt":null,"id":23897329795171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918805278819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31491916857443,"product_id":7416351817827,"position":5,"created_at":"2024-05-06T14:40:27+08:00","updated_at":"2024-05-06T14:40:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627","variant_ids":[41918805278819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-PB61","featured_media":{"alt":null,"id":23897329795171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77bf095bb46d5ce45c59f97b1b474ef2a5bdac57_39c94b4d-80a6-4dc8-879b-684e7df81e31.webp?v=1714977627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }