$product = {"id":7411379863651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦","handle":"iphone-14-pro-mod-nx-magsafe-printable-mw06","description":null,"published_at":"2024-06-11T17:43:23+08:00","created_at":"2024-05-05T00:18:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 14 Pro","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41898146922595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480281727075,"product_id":7411379863651,"position":10,"created_at":"2024-05-05T00:18:52+08:00","updated_at":"2024-05-05T00:18:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532","variant_ids":[41898146922595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-MW06","featured_media":{"alt":null,"id":23885533085795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898147053667,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480276385891,"product_id":7411379863651,"position":1,"created_at":"2024-05-05T00:18:31+08:00","updated_at":"2024-05-05T00:18:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511","variant_ids":[41898147053667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-MW06","featured_media":{"alt":null,"id":23885527711843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898147512419,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480278057059,"product_id":7411379863651,"position":3,"created_at":"2024-05-05T00:18:36+08:00","updated_at":"2024-05-05T00:18:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/133f849d40c4672a8c66b6737482f4e6718c2dc9_8c819583-f25e-4da9-8ab0-3d9e2fe7e2a5.webp?v=1714839516","variant_ids":[41898147512419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-MW06","featured_media":{"alt":null,"id":23885529383011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/133f849d40c4672a8c66b6737482f4e6718c2dc9_8c819583-f25e-4da9-8ab0-3d9e2fe7e2a5.webp?v=1714839516"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332d48f51cce107542af20c0b630a02e62f9e6ee_147195be-b9f9-43b0-8e83-c71c27755453.webp?v=1714839513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/133f849d40c4672a8c66b6737482f4e6718c2dc9_8c819583-f25e-4da9-8ab0-3d9e2fe7e2a5.webp?v=1714839516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1fed27bc2d65c97531f91cdb60d4876ea70a625_5b3354cf-d66f-449a-990b-33038f7d5d56.webp?v=1714839518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786d691d421bedee86a93e6efc7508f9a9e12ff7_066ef774-d5e1-4636-a598-f41f67cf1713.webp?v=1714839520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e2651ef736c7538ae03419052f8609ef1b0805_bea5ef1c-315f-4ee1-83e9-eb46c5b209b6.webp?v=1714839523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/494248cce450c9c6466a38cb0169b1bdc2bb3482_f979becc-9d9d-44f7-b086-6dd4de31b9fe.webp?v=1714839525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f154bdb4f62baf4525e27dc339a346e900d460_ef919118-a61b-4f33-8a7f-0e4cf79c1f1e.webp?v=1714839527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf33a9e27547d6866d2ae62c01d3ac120937b0_acf2c1bf-fa67-4b33-a44d-408392c7e218.webp?v=1714839530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511","options":["color"],"media":[{"alt":null,"id":23885527711843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511","width":2000},{"alt":null,"id":23885528203363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332d48f51cce107542af20c0b630a02e62f9e6ee_147195be-b9f9-43b0-8e83-c71c27755453.webp?v=1714839513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/332d48f51cce107542af20c0b630a02e62f9e6ee_147195be-b9f9-43b0-8e83-c71c27755453.webp?v=1714839513","width":2000},{"alt":null,"id":23885529383011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/133f849d40c4672a8c66b6737482f4e6718c2dc9_8c819583-f25e-4da9-8ab0-3d9e2fe7e2a5.webp?v=1714839516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/133f849d40c4672a8c66b6737482f4e6718c2dc9_8c819583-f25e-4da9-8ab0-3d9e2fe7e2a5.webp?v=1714839516","width":2000},{"alt":null,"id":23885529907299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1fed27bc2d65c97531f91cdb60d4876ea70a625_5b3354cf-d66f-449a-990b-33038f7d5d56.webp?v=1714839518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1fed27bc2d65c97531f91cdb60d4876ea70a625_5b3354cf-d66f-449a-990b-33038f7d5d56.webp?v=1714839518","width":2000},{"alt":null,"id":23885530366051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786d691d421bedee86a93e6efc7508f9a9e12ff7_066ef774-d5e1-4636-a598-f41f67cf1713.webp?v=1714839520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786d691d421bedee86a93e6efc7508f9a9e12ff7_066ef774-d5e1-4636-a598-f41f67cf1713.webp?v=1714839520","width":2000},{"alt":null,"id":23885530792035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e2651ef736c7538ae03419052f8609ef1b0805_bea5ef1c-315f-4ee1-83e9-eb46c5b209b6.webp?v=1714839523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e2651ef736c7538ae03419052f8609ef1b0805_bea5ef1c-315f-4ee1-83e9-eb46c5b209b6.webp?v=1714839523","width":2000},{"alt":null,"id":23885531414627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/494248cce450c9c6466a38cb0169b1bdc2bb3482_f979becc-9d9d-44f7-b086-6dd4de31b9fe.webp?v=1714839525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/494248cce450c9c6466a38cb0169b1bdc2bb3482_f979becc-9d9d-44f7-b086-6dd4de31b9fe.webp?v=1714839525","width":2000},{"alt":null,"id":23885532201059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f154bdb4f62baf4525e27dc339a346e900d460_ef919118-a61b-4f33-8a7f-0e4cf79c1f1e.webp?v=1714839527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f154bdb4f62baf4525e27dc339a346e900d460_ef919118-a61b-4f33-8a7f-0e4cf79c1f1e.webp?v=1714839527","width":2000},{"alt":null,"id":23885532561507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf33a9e27547d6866d2ae62c01d3ac120937b0_acf2c1bf-fa67-4b33-a44d-408392c7e218.webp?v=1714839530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cf33a9e27547d6866d2ae62c01d3ac120937b0_acf2c1bf-fa67-4b33-a44d-408392c7e218.webp?v=1714839530","width":2000},{"alt":null,"id":23885533085795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41898146922595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480281727075,"product_id":7411379863651,"position":10,"created_at":"2024-05-05T00:18:52+08:00","updated_at":"2024-05-05T00:18:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532","variant_ids":[41898146922595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-MW06","featured_media":{"alt":null,"id":23885533085795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898147053667,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480276385891,"product_id":7411379863651,"position":1,"created_at":"2024-05-05T00:18:31+08:00","updated_at":"2024-05-05T00:18:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511","variant_ids":[41898147053667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-MW06","featured_media":{"alt":null,"id":23885527711843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02034216c92562d02960c2e836ac381e3bc197d4_70f74e13-f16b-4151-a13f-2a4084e3e5bf.webp?v=1714839511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898147512419,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480278057059,"product_id":7411379863651,"position":3,"created_at":"2024-05-05T00:18:36+08:00","updated_at":"2024-05-05T00:18:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/133f849d40c4672a8c66b6737482f4e6718c2dc9_8c819583-f25e-4da9-8ab0-3d9e2fe7e2a5.webp?v=1714839516","variant_ids":[41898147512419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-MW06","featured_media":{"alt":null,"id":23885529383011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/133f849d40c4672a8c66b6737482f4e6718c2dc9_8c819583-f25e-4da9-8ab0-3d9e2fe7e2a5.webp?v=1714839516"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898146922595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-MW06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480281727075,"product_id":7411379863651,"position":10,"created_at":"2024-05-05T00:18:52+08:00","updated_at":"2024-05-05T00:18:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532","variant_ids":[41898146922595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 兔子電腦 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-MW06","featured_media":{"alt":null,"id":23885533085795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/059d77e9c3cb676587cd3fc4a1f7e6ec7fb4bc15_a3dca992-afc3-43ec-857b-df67b8e2f8b2.webp?v=1714839532"}},"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: "停產" }