$product = {"id":7416050024547,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy","handle":"iphone-xs-max-mod-nx-printable-pb60","description":null,"published_at":"2024-06-11T16:51:24+08:00","created_at":"2024-05-06T12:48:47+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":41916902670435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31491080781923,"product_id":7416050024547,"position":4,"created_at":"2024-05-06T12:48:58+08:00","updated_at":"2024-05-06T12:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938","variant_ids":[41916902670435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB60","featured_media":{"alt":null,"id":23896488149091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5f09b0ff8fe3f31a615b8cbac357c990173544_a7dcb0fa-cb4e-4fec-81d8-c2bb924d87d3.webp?v=1714970930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf07e894d80a3033c8d19a839bcb704fb59b678_420abd18-7b93-4ef2-86b7-035892b4aebf.webp?v=1714970932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad0556a829acad9dc8a9ff14aa32bb579db52a0_0a8c4415-7150-48cf-b252-64c9e995103b.webp?v=1714970935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a913c8f6fa61453d9c11cad353cd859dd2916d5b_1d2fb791-60af-4419-b2f7-ed0aab46adb2.webp?v=1714970940","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c24cc274ab933be6e29bad74c4953ba0e0b19f_988022fc-dabc-4c02-bbcc-dc6234e42bb9.webp?v=1714970942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30741541a3f0ce05e265cd5c214a67cd83e907d6_f6dd4230-c87b-41ae-a982-3a266e6bb0fc.webp?v=1714970945","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee8718eff134f3d8cea2bb0d2a3ab75070371dd_3e819468-b07b-40ba-a0ba-6ed261228617.webp?v=1714970947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258c937149966ab6c8791a35fcea91e5fd6dc248_87b5dd93-76db-477a-ba9f-0296cca422b9.webp?v=1714970951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7a10c914cecf4c0d69406bb20d73d439aaa3ec_1ed24450-b3f5-48ad-81fa-1d4412ca651a.webp?v=1714970953"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5f09b0ff8fe3f31a615b8cbac357c990173544_a7dcb0fa-cb4e-4fec-81d8-c2bb924d87d3.webp?v=1714970930","options":["color"],"media":[{"alt":null,"id":23896485494883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5f09b0ff8fe3f31a615b8cbac357c990173544_a7dcb0fa-cb4e-4fec-81d8-c2bb924d87d3.webp?v=1714970930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5f09b0ff8fe3f31a615b8cbac357c990173544_a7dcb0fa-cb4e-4fec-81d8-c2bb924d87d3.webp?v=1714970930","width":2000},{"alt":null,"id":23896486346851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf07e894d80a3033c8d19a839bcb704fb59b678_420abd18-7b93-4ef2-86b7-035892b4aebf.webp?v=1714970932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf07e894d80a3033c8d19a839bcb704fb59b678_420abd18-7b93-4ef2-86b7-035892b4aebf.webp?v=1714970932","width":2000},{"alt":null,"id":23896487264355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad0556a829acad9dc8a9ff14aa32bb579db52a0_0a8c4415-7150-48cf-b252-64c9e995103b.webp?v=1714970935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad0556a829acad9dc8a9ff14aa32bb579db52a0_0a8c4415-7150-48cf-b252-64c9e995103b.webp?v=1714970935","width":2000},{"alt":null,"id":23896488149091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938","width":2000},{"alt":null,"id":23896488837219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a913c8f6fa61453d9c11cad353cd859dd2916d5b_1d2fb791-60af-4419-b2f7-ed0aab46adb2.webp?v=1714970940"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a913c8f6fa61453d9c11cad353cd859dd2916d5b_1d2fb791-60af-4419-b2f7-ed0aab46adb2.webp?v=1714970940","width":2000},{"alt":null,"id":23896489197667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c24cc274ab933be6e29bad74c4953ba0e0b19f_988022fc-dabc-4c02-bbcc-dc6234e42bb9.webp?v=1714970942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40c24cc274ab933be6e29bad74c4953ba0e0b19f_988022fc-dabc-4c02-bbcc-dc6234e42bb9.webp?v=1714970942","width":2000},{"alt":null,"id":23896489689187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30741541a3f0ce05e265cd5c214a67cd83e907d6_f6dd4230-c87b-41ae-a982-3a266e6bb0fc.webp?v=1714970945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30741541a3f0ce05e265cd5c214a67cd83e907d6_f6dd4230-c87b-41ae-a982-3a266e6bb0fc.webp?v=1714970945","width":2000},{"alt":null,"id":23896490115171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee8718eff134f3d8cea2bb0d2a3ab75070371dd_3e819468-b07b-40ba-a0ba-6ed261228617.webp?v=1714970947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee8718eff134f3d8cea2bb0d2a3ab75070371dd_3e819468-b07b-40ba-a0ba-6ed261228617.webp?v=1714970947","width":2000},{"alt":null,"id":23896490737763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258c937149966ab6c8791a35fcea91e5fd6dc248_87b5dd93-76db-477a-ba9f-0296cca422b9.webp?v=1714970951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258c937149966ab6c8791a35fcea91e5fd6dc248_87b5dd93-76db-477a-ba9f-0296cca422b9.webp?v=1714970951","width":2000},{"alt":null,"id":23896491163747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7a10c914cecf4c0d69406bb20d73d439aaa3ec_1ed24450-b3f5-48ad-81fa-1d4412ca651a.webp?v=1714970953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7a10c914cecf4c0d69406bb20d73d439aaa3ec_1ed24450-b3f5-48ad-81fa-1d4412ca651a.webp?v=1714970953","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916902670435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31491080781923,"product_id":7416050024547,"position":4,"created_at":"2024-05-06T12:48:58+08:00","updated_at":"2024-05-06T12:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938","variant_ids":[41916902670435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB60","featured_media":{"alt":null,"id":23896488149091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916902670435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31491080781923,"product_id":7416050024547,"position":4,"created_at":"2024-05-06T12:48:58+08:00","updated_at":"2024-05-06T12:48:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938","variant_ids":[41916902670435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB60","featured_media":{"alt":null,"id":23896488149091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d54042da38fe25eebb4b290baa0de3680cabd874_3123dd7e-a72e-4a53-ad7c-54d5a49755d3.webp?v=1714970938"}},"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: "停產" }