$product = {"id":7407677833315,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列","handle":"iphone-14-pro-mod-nx-printable-pb44","description":null,"published_at":"2024-06-11T16:21:51+08:00","created_at":"2024-05-03T10:40:32+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 14 Pro","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":41877536112739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31470199013475,"product_id":7407677833315,"position":1,"created_at":"2024-05-03T10:40:35+08:00","updated_at":"2024-05-03T10:40:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035","variant_ids":[41877536112739]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0126224-PB44","featured_media":{"alt":null,"id":23875101982819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877536243811,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31470205665379,"product_id":7407677833315,"position":9,"created_at":"2024-05-03T10:40:57+08:00","updated_at":"2024-05-03T10:40:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afec8e0ca7f28b956107236aaa8803f509f18f_dcdf464f-5a36-407d-ad0b-fdc8001db36d.webp?v=1714704057","variant_ids":[41877536243811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0126204-PB44","featured_media":{"alt":null,"id":23875108831331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afec8e0ca7f28b956107236aaa8803f509f18f_dcdf464f-5a36-407d-ad0b-fdc8001db36d.webp?v=1714704057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877536768099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31470204911715,"product_id":7407677833315,"position":8,"created_at":"2024-05-03T10:40:54+08:00","updated_at":"2024-05-03T10:40:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ddc0cf5de9530b74885ae536db700f9539c59bd_d6c06c63-c002-4a68-b172-2415ba00d5a7.webp?v=1714704054","variant_ids":[41877536768099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB01262J5-PB44","featured_media":{"alt":null,"id":23875107881059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ddc0cf5de9530b74885ae536db700f9539c59bd_d6c06c63-c002-4a68-b172-2415ba00d5a7.webp?v=1714704054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36c214ad82591f4e87345fcacb407d5d36c328d8_37cd219f-72b8-40b1-ac52-5041eb035378.webp?v=1714704037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efa3030d618da42a90511da24049811b817a517_e33d594e-34bc-4c8c-9f91-2dca8fd0c64a.webp?v=1714704040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c15707bf40903ac196a2f9099ab8132565c69b0_18dd5d0f-778e-4f3a-83e3-6f3a7b729bbb.webp?v=1714704043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6011db828c78ea2ef9ecac86d7a69fd15a1ff162_b52c176c-b053-4825-a6ed-6e534f7406c9.webp?v=1714704046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a7234e896c1576b9467c95e83ca6d498c183f9_5c1879e9-d680-4fd0-a387-d867eb93a4b3.webp?v=1714704049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e12a5f7b18e24e7ff1261e279cbb5f1cc724c3_48b451af-3976-471a-8697-f82d5f1b9c63.webp?v=1714704051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ddc0cf5de9530b74885ae536db700f9539c59bd_d6c06c63-c002-4a68-b172-2415ba00d5a7.webp?v=1714704054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afec8e0ca7f28b956107236aaa8803f509f18f_dcdf464f-5a36-407d-ad0b-fdc8001db36d.webp?v=1714704057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b010bdd4f12ef14afaf9f0596bd9d48293c4a4e3_9f26bb8d-fc65-4862-b293-64d3a2d76be8.webp?v=1714704060"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035","options":["color"],"media":[{"alt":null,"id":23875101982819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035","width":2000},{"alt":null,"id":23875102605411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36c214ad82591f4e87345fcacb407d5d36c328d8_37cd219f-72b8-40b1-ac52-5041eb035378.webp?v=1714704037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36c214ad82591f4e87345fcacb407d5d36c328d8_37cd219f-72b8-40b1-ac52-5041eb035378.webp?v=1714704037","width":2000},{"alt":null,"id":23875104178275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efa3030d618da42a90511da24049811b817a517_e33d594e-34bc-4c8c-9f91-2dca8fd0c64a.webp?v=1714704040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efa3030d618da42a90511da24049811b817a517_e33d594e-34bc-4c8c-9f91-2dca8fd0c64a.webp?v=1714704040","width":2000},{"alt":null,"id":23875104997475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c15707bf40903ac196a2f9099ab8132565c69b0_18dd5d0f-778e-4f3a-83e3-6f3a7b729bbb.webp?v=1714704043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c15707bf40903ac196a2f9099ab8132565c69b0_18dd5d0f-778e-4f3a-83e3-6f3a7b729bbb.webp?v=1714704043","width":2000},{"alt":null,"id":23875105587299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6011db828c78ea2ef9ecac86d7a69fd15a1ff162_b52c176c-b053-4825-a6ed-6e534f7406c9.webp?v=1714704046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6011db828c78ea2ef9ecac86d7a69fd15a1ff162_b52c176c-b053-4825-a6ed-6e534f7406c9.webp?v=1714704046","width":2000},{"alt":null,"id":23875106406499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a7234e896c1576b9467c95e83ca6d498c183f9_5c1879e9-d680-4fd0-a387-d867eb93a4b3.webp?v=1714704049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7a7234e896c1576b9467c95e83ca6d498c183f9_5c1879e9-d680-4fd0-a387-d867eb93a4b3.webp?v=1714704049","width":2000},{"alt":null,"id":23875107029091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e12a5f7b18e24e7ff1261e279cbb5f1cc724c3_48b451af-3976-471a-8697-f82d5f1b9c63.webp?v=1714704051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6e12a5f7b18e24e7ff1261e279cbb5f1cc724c3_48b451af-3976-471a-8697-f82d5f1b9c63.webp?v=1714704051","width":2000},{"alt":null,"id":23875107881059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ddc0cf5de9530b74885ae536db700f9539c59bd_d6c06c63-c002-4a68-b172-2415ba00d5a7.webp?v=1714704054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ddc0cf5de9530b74885ae536db700f9539c59bd_d6c06c63-c002-4a68-b172-2415ba00d5a7.webp?v=1714704054","width":2000},{"alt":null,"id":23875108831331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afec8e0ca7f28b956107236aaa8803f509f18f_dcdf464f-5a36-407d-ad0b-fdc8001db36d.webp?v=1714704057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afec8e0ca7f28b956107236aaa8803f509f18f_dcdf464f-5a36-407d-ad0b-fdc8001db36d.webp?v=1714704057","width":2000},{"alt":null,"id":23875109388387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b010bdd4f12ef14afaf9f0596bd9d48293c4a4e3_9f26bb8d-fc65-4862-b293-64d3a2d76be8.webp?v=1714704060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b010bdd4f12ef14afaf9f0596bd9d48293c4a4e3_9f26bb8d-fc65-4862-b293-64d3a2d76be8.webp?v=1714704060","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41877536112739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31470199013475,"product_id":7407677833315,"position":1,"created_at":"2024-05-03T10:40:35+08:00","updated_at":"2024-05-03T10:40:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035","variant_ids":[41877536112739]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0126224-PB44","featured_media":{"alt":null,"id":23875101982819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877536243811,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31470205665379,"product_id":7407677833315,"position":9,"created_at":"2024-05-03T10:40:57+08:00","updated_at":"2024-05-03T10:40:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afec8e0ca7f28b956107236aaa8803f509f18f_dcdf464f-5a36-407d-ad0b-fdc8001db36d.webp?v=1714704057","variant_ids":[41877536243811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0126204-PB44","featured_media":{"alt":null,"id":23875108831331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afec8e0ca7f28b956107236aaa8803f509f18f_dcdf464f-5a36-407d-ad0b-fdc8001db36d.webp?v=1714704057"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877536768099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31470204911715,"product_id":7407677833315,"position":8,"created_at":"2024-05-03T10:40:54+08:00","updated_at":"2024-05-03T10:40:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ddc0cf5de9530b74885ae536db700f9539c59bd_d6c06c63-c002-4a68-b172-2415ba00d5a7.webp?v=1714704054","variant_ids":[41877536768099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB01262J5-PB44","featured_media":{"alt":null,"id":23875107881059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ddc0cf5de9530b74885ae536db700f9539c59bd_d6c06c63-c002-4a68-b172-2415ba00d5a7.webp?v=1714704054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41877536112739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB44","requires_shipping":true,"taxable":true,"featured_image":{"id":31470199013475,"product_id":7407677833315,"position":1,"created_at":"2024-05-03T10:40:35+08:00","updated_at":"2024-05-03T10:40:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035","variant_ids":[41877536112739]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵\u0026光劍-潮流系列 - 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":"NPB0126224-PB44","featured_media":{"alt":null,"id":23875101982819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb9633855911b1e166b5900079fb281cab3b0ab_6abdb71a-ddb8-4587-adfc-04ac82081e21.webp?v=1714704035"}},"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: "停產"
}