$product = {"id":7408011706467,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-13-mini-mod-nx-printable-pb54","description":null,"published_at":"2024-06-11T16:29:02+08:00","created_at":"2024-05-03T11:40:40+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 13 mini","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":41881697779811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31470964342883,"product_id":7408011706467,"position":8,"created_at":"2024-05-03T11:41:02+08:00","updated_at":"2024-05-03T11:41:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662","variant_ids":[41881697779811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB54","featured_media":{"alt":null,"id":23875869180003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881697845347,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31470962212963,"product_id":7408011706467,"position":4,"created_at":"2024-05-03T11:40:50+08:00","updated_at":"2024-05-03T11:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd47c744fd1add0f6fe13d453b0e58ec409e1830_d5a602fd-48cb-4dd3-8376-8c0d60abe7fe.webp?v=1714707650","variant_ids":[41881697845347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB54","featured_media":{"alt":null,"id":23875866984547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd47c744fd1add0f6fe13d453b0e58ec409e1830_d5a602fd-48cb-4dd3-8376-8c0d60abe7fe.webp?v=1714707650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881698074723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31470961786979,"product_id":7408011706467,"position":3,"created_at":"2024-05-03T11:40:48+08:00","updated_at":"2024-05-03T11:40:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b743890d3a045e3317cc86e2cbae6e30ea07763_22488b3c-00a4-4ba6-985b-4c8bca527fcb.webp?v=1714707648","variant_ids":[41881698074723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB54","featured_media":{"alt":null,"id":23875866525795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b743890d3a045e3317cc86e2cbae6e30ea07763_22488b3c-00a4-4ba6-985b-4c8bca527fcb.webp?v=1714707648"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a76a47bc534bbf4c7ef024c4be8e909cc7a0c0_0f890032-3005-493b-881e-209143bf07ad.webp?v=1714707642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad167e5a9c65a873137c36feebebeea697af4a36_66f80f58-9e70-4fb5-b44a-d812cdd5aeef.webp?v=1714707645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b743890d3a045e3317cc86e2cbae6e30ea07763_22488b3c-00a4-4ba6-985b-4c8bca527fcb.webp?v=1714707648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd47c744fd1add0f6fe13d453b0e58ec409e1830_d5a602fd-48cb-4dd3-8376-8c0d60abe7fe.webp?v=1714707650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e15223b434ed900dc76d831a6ea1b1e0380069_27a3441a-fb04-4183-a408-ffab38a97b3c.webp?v=1714707653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/856bb18fd2e2ff812deba3f44951c50311489433_fb521011-3044-4f21-91cb-81e7b4f141a4.webp?v=1714707655","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6588c43ea10699c819959de6db7360be07fbf68d_effbe0b6-f36f-4cb3-9596-4897aaa9b7f5.webp?v=1714707658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103698960f0393a6ec72d63c79e998f3856ba00_ade22f22-13af-4347-986f-a9985dfeb9bc.webp?v=1714707664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3772debe8705b31a89df0298824aacc1b54d6c_5b8a5822-909e-439c-91e2-b6331fbd0261.webp?v=1714707667"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a76a47bc534bbf4c7ef024c4be8e909cc7a0c0_0f890032-3005-493b-881e-209143bf07ad.webp?v=1714707642","options":["color"],"media":[{"alt":null,"id":23875865575523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a76a47bc534bbf4c7ef024c4be8e909cc7a0c0_0f890032-3005-493b-881e-209143bf07ad.webp?v=1714707642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a76a47bc534bbf4c7ef024c4be8e909cc7a0c0_0f890032-3005-493b-881e-209143bf07ad.webp?v=1714707642","width":2000},{"alt":null,"id":23875866001507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad167e5a9c65a873137c36feebebeea697af4a36_66f80f58-9e70-4fb5-b44a-d812cdd5aeef.webp?v=1714707645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad167e5a9c65a873137c36feebebeea697af4a36_66f80f58-9e70-4fb5-b44a-d812cdd5aeef.webp?v=1714707645","width":2000},{"alt":null,"id":23875866525795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b743890d3a045e3317cc86e2cbae6e30ea07763_22488b3c-00a4-4ba6-985b-4c8bca527fcb.webp?v=1714707648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b743890d3a045e3317cc86e2cbae6e30ea07763_22488b3c-00a4-4ba6-985b-4c8bca527fcb.webp?v=1714707648","width":2000},{"alt":null,"id":23875866984547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd47c744fd1add0f6fe13d453b0e58ec409e1830_d5a602fd-48cb-4dd3-8376-8c0d60abe7fe.webp?v=1714707650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd47c744fd1add0f6fe13d453b0e58ec409e1830_d5a602fd-48cb-4dd3-8376-8c0d60abe7fe.webp?v=1714707650","width":2000},{"alt":null,"id":23875867476067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e15223b434ed900dc76d831a6ea1b1e0380069_27a3441a-fb04-4183-a408-ffab38a97b3c.webp?v=1714707653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39e15223b434ed900dc76d831a6ea1b1e0380069_27a3441a-fb04-4183-a408-ffab38a97b3c.webp?v=1714707653","width":2000},{"alt":null,"id":23875867902051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/856bb18fd2e2ff812deba3f44951c50311489433_fb521011-3044-4f21-91cb-81e7b4f141a4.webp?v=1714707655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/856bb18fd2e2ff812deba3f44951c50311489433_fb521011-3044-4f21-91cb-81e7b4f141a4.webp?v=1714707655","width":2000},{"alt":null,"id":23875868459107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6588c43ea10699c819959de6db7360be07fbf68d_effbe0b6-f36f-4cb3-9596-4897aaa9b7f5.webp?v=1714707658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6588c43ea10699c819959de6db7360be07fbf68d_effbe0b6-f36f-4cb3-9596-4897aaa9b7f5.webp?v=1714707658","width":2000},{"alt":null,"id":23875869180003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662","width":2000},{"alt":null,"id":23875871047779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103698960f0393a6ec72d63c79e998f3856ba00_ade22f22-13af-4347-986f-a9985dfeb9bc.webp?v=1714707664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103698960f0393a6ec72d63c79e998f3856ba00_ade22f22-13af-4347-986f-a9985dfeb9bc.webp?v=1714707664","width":2000},{"alt":null,"id":23875871408227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3772debe8705b31a89df0298824aacc1b54d6c_5b8a5822-909e-439c-91e2-b6331fbd0261.webp?v=1714707667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3772debe8705b31a89df0298824aacc1b54d6c_5b8a5822-909e-439c-91e2-b6331fbd0261.webp?v=1714707667","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881697779811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31470964342883,"product_id":7408011706467,"position":8,"created_at":"2024-05-03T11:41:02+08:00","updated_at":"2024-05-03T11:41:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662","variant_ids":[41881697779811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB54","featured_media":{"alt":null,"id":23875869180003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881697845347,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31470962212963,"product_id":7408011706467,"position":4,"created_at":"2024-05-03T11:40:50+08:00","updated_at":"2024-05-03T11:40:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd47c744fd1add0f6fe13d453b0e58ec409e1830_d5a602fd-48cb-4dd3-8376-8c0d60abe7fe.webp?v=1714707650","variant_ids":[41881697845347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PB54","featured_media":{"alt":null,"id":23875866984547,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd47c744fd1add0f6fe13d453b0e58ec409e1830_d5a602fd-48cb-4dd3-8376-8c0d60abe7fe.webp?v=1714707650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881698074723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31470961786979,"product_id":7408011706467,"position":3,"created_at":"2024-05-03T11:40:48+08:00","updated_at":"2024-05-03T11:40:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b743890d3a045e3317cc86e2cbae6e30ea07763_22488b3c-00a4-4ba6-985b-4c8bca527fcb.webp?v=1714707648","variant_ids":[41881698074723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PB54","featured_media":{"alt":null,"id":23875866525795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b743890d3a045e3317cc86e2cbae6e30ea07763_22488b3c-00a4-4ba6-985b-4c8bca527fcb.webp?v=1714707648"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881697779811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31470964342883,"product_id":7408011706467,"position":8,"created_at":"2024-05-03T11:41:02+08:00","updated_at":"2024-05-03T11:41:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662","variant_ids":[41881697779811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PB54","featured_media":{"alt":null,"id":23875869180003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a25a8872e140320c9f938c5e685ccf2fca12a16_a48ea5d0-0f0c-447e-bcca-cb807ba29613.webp?v=1714707662"}},"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: "停產"
}