$product = {"id":7415882154083,"title":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計","handle":"iphone-xs-mod-nx-printable-pb103","description":null,"published_at":"2024-06-11T16:46:57+08:00","created_at":"2024-05-06T12:17:28+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","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":41915155054691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31490644476003,"product_id":7415882154083,"position":2,"created_at":"2024-05-06T12:17:33+08:00","updated_at":"2024-05-06T12:17:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053","variant_ids":[41915155054691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108424-PB103","featured_media":{"alt":null,"id":23896050925667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8ac4573b4e3ac647ab18d36104ae942110f9e93_a46f1aa9-cd98-4fef-8168-dc795baf08bc.webp?v=1714969051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd33ca8457c737b19adda03abdb1400e76a9a5c3_10711bfb-b7c2-4129-9f8f-b856c242ebb7.webp?v=1714969055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb77fe0cb499affa6360e598efbf08234769a868_a01e46c6-01b0-4d08-afac-fc1627b7bf52.webp?v=1714969058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebc4366a218fefaf00756f623e814056ae1e434_fcbbf961-1127-4e8e-9e61-90959e4c8eda.webp?v=1714969060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cb434cd32e5255de9c48f2348ff44c6a399b251_6fa13594-d4eb-43dd-93e9-06773f2718d3.webp?v=1714969063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/268afc65177992b3e56958895867ac662cb666a6_b8fe8f19-da38-41af-8039-32dd459a89e1.webp?v=1714969066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e2ff00643aa6c069f3507bade2945c935f7592_5efdb09d-bed3-46d2-945f-98c70ac3d101.webp?v=1714969069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48bdfba6cf30f87a88462317c9cbce3e901e75e7_690823f6-4dca-4f9f-acf4-778442e445df.webp?v=1714969071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2004148ec8195d71c6f360135e095b840eef4c_45bf00f4-172c-4357-92ed-a95636b899b0.webp?v=1714969073"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8ac4573b4e3ac647ab18d36104ae942110f9e93_a46f1aa9-cd98-4fef-8168-dc795baf08bc.webp?v=1714969051","options":["color"],"media":[{"alt":null,"id":23896050565219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8ac4573b4e3ac647ab18d36104ae942110f9e93_a46f1aa9-cd98-4fef-8168-dc795baf08bc.webp?v=1714969051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8ac4573b4e3ac647ab18d36104ae942110f9e93_a46f1aa9-cd98-4fef-8168-dc795baf08bc.webp?v=1714969051","width":2000},{"alt":null,"id":23896050925667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053","width":2000},{"alt":null,"id":23896051482723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd33ca8457c737b19adda03abdb1400e76a9a5c3_10711bfb-b7c2-4129-9f8f-b856c242ebb7.webp?v=1714969055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd33ca8457c737b19adda03abdb1400e76a9a5c3_10711bfb-b7c2-4129-9f8f-b856c242ebb7.webp?v=1714969055","width":2000},{"alt":null,"id":23896052072547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb77fe0cb499affa6360e598efbf08234769a868_a01e46c6-01b0-4d08-afac-fc1627b7bf52.webp?v=1714969058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb77fe0cb499affa6360e598efbf08234769a868_a01e46c6-01b0-4d08-afac-fc1627b7bf52.webp?v=1714969058","width":2000},{"alt":null,"id":23896052531299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebc4366a218fefaf00756f623e814056ae1e434_fcbbf961-1127-4e8e-9e61-90959e4c8eda.webp?v=1714969060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebc4366a218fefaf00756f623e814056ae1e434_fcbbf961-1127-4e8e-9e61-90959e4c8eda.webp?v=1714969060","width":2000},{"alt":null,"id":23896053055587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cb434cd32e5255de9c48f2348ff44c6a399b251_6fa13594-d4eb-43dd-93e9-06773f2718d3.webp?v=1714969063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cb434cd32e5255de9c48f2348ff44c6a399b251_6fa13594-d4eb-43dd-93e9-06773f2718d3.webp?v=1714969063","width":2000},{"alt":null,"id":23896053645411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/268afc65177992b3e56958895867ac662cb666a6_b8fe8f19-da38-41af-8039-32dd459a89e1.webp?v=1714969066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/268afc65177992b3e56958895867ac662cb666a6_b8fe8f19-da38-41af-8039-32dd459a89e1.webp?v=1714969066","width":2000},{"alt":null,"id":23896053973091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e2ff00643aa6c069f3507bade2945c935f7592_5efdb09d-bed3-46d2-945f-98c70ac3d101.webp?v=1714969069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e2ff00643aa6c069f3507bade2945c935f7592_5efdb09d-bed3-46d2-945f-98c70ac3d101.webp?v=1714969069","width":2000},{"alt":null,"id":23896054562915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48bdfba6cf30f87a88462317c9cbce3e901e75e7_690823f6-4dca-4f9f-acf4-778442e445df.webp?v=1714969071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48bdfba6cf30f87a88462317c9cbce3e901e75e7_690823f6-4dca-4f9f-acf4-778442e445df.webp?v=1714969071","width":2000},{"alt":null,"id":23896055054435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2004148ec8195d71c6f360135e095b840eef4c_45bf00f4-172c-4357-92ed-a95636b899b0.webp?v=1714969073"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e2004148ec8195d71c6f360135e095b840eef4c_45bf00f4-172c-4357-92ed-a95636b899b0.webp?v=1714969073","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41915155054691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31490644476003,"product_id":7415882154083,"position":2,"created_at":"2024-05-06T12:17:33+08:00","updated_at":"2024-05-06T12:17:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053","variant_ids":[41915155054691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108424-PB103","featured_media":{"alt":null,"id":23896050925667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915155054691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108424-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31490644476003,"product_id":7415882154083,"position":2,"created_at":"2024-05-06T12:17:33+08:00","updated_at":"2024-05-06T12:17:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053","variant_ids":[41915155054691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108424-PB103","featured_media":{"alt":null,"id":23896050925667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2a5a52f20620f92523e15cef1ff53cb7700a643_13797f2d-fbee-40f7-9748-2813d5f06480.webp?v=1714969053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }