$product = {"id":7416052285539,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列","handle":"iphone-xs-max-mod-nx-printable-pc11","description":null,"published_at":"2024-06-11T16:51:28+08:00","created_at":"2024-05-06T12:49:11+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 XS Max","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":41916917907555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31491086254179,"product_id":7416052285539,"position":5,"created_at":"2024-05-06T12:49:22+08:00","updated_at":"2024-05-06T12:49:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962","variant_ids":[41916917907555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - 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":"NPB0108624-PC11","featured_media":{"alt":null,"id":23896493621347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50740a60f0b43cd56085bef05ee7f8ab1149ab18_04e58a5b-75d1-49e6-89aa-0939de849b1d.webp?v=1714970953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b42279dd82b0ed9e988733534e88bd47c053a27_87fec10f-1f26-404e-8ba7-5da7afe1f725.webp?v=1714970955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ea03a02086ce3cd70059703ae19023c48a34c3_74c817c4-9e31-4d16-82fb-c977631c046e.webp?v=1714970957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10cb9710d51d2a4584bb5045850b820ae5ed0de5_b9b4cdc8-ce93-422f-9134-082cac0fee01.webp?v=1714970960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca14840e3a243d1d0a7dc14b5afda01b6124ca35_a24f13df-fa16-4f84-aad6-ef13895414a2.webp?v=1714970964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6573bd3802d3a7379319f2b966605c36c20ccfa9_37e290d1-69be-45f4-84a1-a59681c7725c.webp?v=1714970966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06aa4ff27f381efa60f1446eded778c2e848a833_44f935f2-7383-4655-97ab-609e7a730eca.webp?v=1714970968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee4796a2aa6d51f2c9e8626cfeea5834e91081c_39ebb1ff-227f-471c-830d-c9d350ea7ab2.webp?v=1714970971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c825cf3ce34f7af5a0bea418ca0318439625cbf7_a33c28ab-630f-4d0c-b16f-c56ad8a5c565.webp?v=1714970973"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50740a60f0b43cd56085bef05ee7f8ab1149ab18_04e58a5b-75d1-49e6-89aa-0939de849b1d.webp?v=1714970953","options":["color"],"media":[{"alt":null,"id":23896491130979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50740a60f0b43cd56085bef05ee7f8ab1149ab18_04e58a5b-75d1-49e6-89aa-0939de849b1d.webp?v=1714970953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50740a60f0b43cd56085bef05ee7f8ab1149ab18_04e58a5b-75d1-49e6-89aa-0939de849b1d.webp?v=1714970953","width":2000},{"alt":null,"id":23896492081251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b42279dd82b0ed9e988733534e88bd47c053a27_87fec10f-1f26-404e-8ba7-5da7afe1f725.webp?v=1714970955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b42279dd82b0ed9e988733534e88bd47c053a27_87fec10f-1f26-404e-8ba7-5da7afe1f725.webp?v=1714970955","width":2000},{"alt":null,"id":23896492507235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ea03a02086ce3cd70059703ae19023c48a34c3_74c817c4-9e31-4d16-82fb-c977631c046e.webp?v=1714970957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ea03a02086ce3cd70059703ae19023c48a34c3_74c817c4-9e31-4d16-82fb-c977631c046e.webp?v=1714970957","width":2000},{"alt":null,"id":23896493162595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10cb9710d51d2a4584bb5045850b820ae5ed0de5_b9b4cdc8-ce93-422f-9134-082cac0fee01.webp?v=1714970960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10cb9710d51d2a4584bb5045850b820ae5ed0de5_b9b4cdc8-ce93-422f-9134-082cac0fee01.webp?v=1714970960","width":2000},{"alt":null,"id":23896493621347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962","width":2000},{"alt":null,"id":23896494833763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca14840e3a243d1d0a7dc14b5afda01b6124ca35_a24f13df-fa16-4f84-aad6-ef13895414a2.webp?v=1714970964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca14840e3a243d1d0a7dc14b5afda01b6124ca35_a24f13df-fa16-4f84-aad6-ef13895414a2.webp?v=1714970964","width":2000},{"alt":null,"id":23896495259747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6573bd3802d3a7379319f2b966605c36c20ccfa9_37e290d1-69be-45f4-84a1-a59681c7725c.webp?v=1714970966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6573bd3802d3a7379319f2b966605c36c20ccfa9_37e290d1-69be-45f4-84a1-a59681c7725c.webp?v=1714970966","width":2000},{"alt":null,"id":23896495784035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06aa4ff27f381efa60f1446eded778c2e848a833_44f935f2-7383-4655-97ab-609e7a730eca.webp?v=1714970968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06aa4ff27f381efa60f1446eded778c2e848a833_44f935f2-7383-4655-97ab-609e7a730eca.webp?v=1714970968","width":2000},{"alt":null,"id":23896496734307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee4796a2aa6d51f2c9e8626cfeea5834e91081c_39ebb1ff-227f-471c-830d-c9d350ea7ab2.webp?v=1714970971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee4796a2aa6d51f2c9e8626cfeea5834e91081c_39ebb1ff-227f-471c-830d-c9d350ea7ab2.webp?v=1714970971","width":2000},{"alt":null,"id":23896497291363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c825cf3ce34f7af5a0bea418ca0318439625cbf7_a33c28ab-630f-4d0c-b16f-c56ad8a5c565.webp?v=1714970973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c825cf3ce34f7af5a0bea418ca0318439625cbf7_a33c28ab-630f-4d0c-b16f-c56ad8a5c565.webp?v=1714970973","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916917907555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31491086254179,"product_id":7416052285539,"position":5,"created_at":"2024-05-06T12:49:22+08:00","updated_at":"2024-05-06T12:49:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962","variant_ids":[41916917907555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - 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":"NPB0108624-PC11","featured_media":{"alt":null,"id":23896493621347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916917907555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31491086254179,"product_id":7416052285539,"position":5,"created_at":"2024-05-06T12:49:22+08:00","updated_at":"2024-05-06T12:49:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962","variant_ids":[41916917907555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - 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":"NPB0108624-PC11","featured_media":{"alt":null,"id":23896493621347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b026764b403145207eb9e352612bc405362146d4_ffff9c10-05b4-486b-8406-9a7c34ee729b.webp?v=1714970962"}},"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: "停產" }