$product = {"id":7407941419107,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-14-pro-mod-nx-printable-pb102","description":null,"published_at":"2024-06-11T16:27:09+08:00","created_at":"2024-05-03T11:20:19+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":41880814092387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31470759313507,"product_id":7407941419107,"position":6,"created_at":"2024-05-03T11:20:33+08:00","updated_at":"2024-05-03T11:20:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433","variant_ids":[41880814092387]},"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-PB102","featured_media":{"alt":null,"id":23875663495267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880814157923,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31470758363235,"product_id":7407941419107,"position":4,"created_at":"2024-05-03T11:20:29+08:00","updated_at":"2024-05-03T11:20:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd67567715c7c850e7b3a7cc94995880857ad773_8d6ffb74-c885-437a-9f0d-29db24356308.webp?v=1714706429","variant_ids":[41880814157923]},"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-PB102","featured_media":{"alt":null,"id":23875662512227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd67567715c7c850e7b3a7cc94995880857ad773_8d6ffb74-c885-437a-9f0d-29db24356308.webp?v=1714706429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880814387299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31470761508963,"product_id":7407941419107,"position":10,"created_at":"2024-05-03T11:20:43+08:00","updated_at":"2024-05-03T11:20:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c978bd44786afc2bc868c0136106b3cae2c9bdc0_11911345-d460-4370-90ae-9d4b23e32666.webp?v=1714706443","variant_ids":[41880814387299]},"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-PB102","featured_media":{"alt":null,"id":23875666018403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c978bd44786afc2bc868c0136106b3cae2c9bdc0_11911345-d460-4370-90ae-9d4b23e32666.webp?v=1714706443"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f192f09099b5710d6e65085c0758cf3fe61ddf96_bd9b4ffa-e6b4-4e51-bd24-a9356d94d885.webp?v=1714706422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7d062395ddfc681c62387ee4d20eb5c4e069c7_3999a081-1509-40bd-9363-cccea98af398.webp?v=1714706424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9be57bd1f1f1382315f361a0ee13f4e30e728ba0_8e194c15-7e9f-400b-83cf-afc611425e33.webp?v=1714706426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd67567715c7c850e7b3a7cc94995880857ad773_8d6ffb74-c885-437a-9f0d-29db24356308.webp?v=1714706429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a683e985a197162a3f3b22ff1a7cd6701e9d018_8bd7c374-bfda-4be1-a9b2-35025cdd57e0.webp?v=1714706431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0a4b3debaa0d82dcf872b2f544362bb19eda6d3_fb3cc4d4-accd-4826-bed6-62d36ba36570.webp?v=1714706436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cfb57d7d993dd3494470a89c1f5f7b89157512_194502b9-826f-46e7-b1c9-dff20281d376.webp?v=1714706438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35f27d96b2c16eb5d0104d26dbf926e87910f59_26a3feab-b61f-4b97-ba53-a484115a1caa.webp?v=1714706441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c978bd44786afc2bc868c0136106b3cae2c9bdc0_11911345-d460-4370-90ae-9d4b23e32666.webp?v=1714706443"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f192f09099b5710d6e65085c0758cf3fe61ddf96_bd9b4ffa-e6b4-4e51-bd24-a9356d94d885.webp?v=1714706422","options":["color"],"media":[{"alt":null,"id":23875661201507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f192f09099b5710d6e65085c0758cf3fe61ddf96_bd9b4ffa-e6b4-4e51-bd24-a9356d94d885.webp?v=1714706422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f192f09099b5710d6e65085c0758cf3fe61ddf96_bd9b4ffa-e6b4-4e51-bd24-a9356d94d885.webp?v=1714706422","width":2000},{"alt":null,"id":23875661693027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7d062395ddfc681c62387ee4d20eb5c4e069c7_3999a081-1509-40bd-9363-cccea98af398.webp?v=1714706424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7d062395ddfc681c62387ee4d20eb5c4e069c7_3999a081-1509-40bd-9363-cccea98af398.webp?v=1714706424","width":2000},{"alt":null,"id":23875662086243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9be57bd1f1f1382315f361a0ee13f4e30e728ba0_8e194c15-7e9f-400b-83cf-afc611425e33.webp?v=1714706426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9be57bd1f1f1382315f361a0ee13f4e30e728ba0_8e194c15-7e9f-400b-83cf-afc611425e33.webp?v=1714706426","width":2000},{"alt":null,"id":23875662512227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd67567715c7c850e7b3a7cc94995880857ad773_8d6ffb74-c885-437a-9f0d-29db24356308.webp?v=1714706429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd67567715c7c850e7b3a7cc94995880857ad773_8d6ffb74-c885-437a-9f0d-29db24356308.webp?v=1714706429","width":2000},{"alt":null,"id":23875663036515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a683e985a197162a3f3b22ff1a7cd6701e9d018_8bd7c374-bfda-4be1-a9b2-35025cdd57e0.webp?v=1714706431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a683e985a197162a3f3b22ff1a7cd6701e9d018_8bd7c374-bfda-4be1-a9b2-35025cdd57e0.webp?v=1714706431","width":2000},{"alt":null,"id":23875663495267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433","width":2000},{"alt":null,"id":23875664117859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0a4b3debaa0d82dcf872b2f544362bb19eda6d3_fb3cc4d4-accd-4826-bed6-62d36ba36570.webp?v=1714706436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0a4b3debaa0d82dcf872b2f544362bb19eda6d3_fb3cc4d4-accd-4826-bed6-62d36ba36570.webp?v=1714706436","width":2000},{"alt":null,"id":23875664511075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cfb57d7d993dd3494470a89c1f5f7b89157512_194502b9-826f-46e7-b1c9-dff20281d376.webp?v=1714706438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cfb57d7d993dd3494470a89c1f5f7b89157512_194502b9-826f-46e7-b1c9-dff20281d376.webp?v=1714706438","width":2000},{"alt":null,"id":23875665395811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35f27d96b2c16eb5d0104d26dbf926e87910f59_26a3feab-b61f-4b97-ba53-a484115a1caa.webp?v=1714706441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f35f27d96b2c16eb5d0104d26dbf926e87910f59_26a3feab-b61f-4b97-ba53-a484115a1caa.webp?v=1714706441","width":2000},{"alt":null,"id":23875666018403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c978bd44786afc2bc868c0136106b3cae2c9bdc0_11911345-d460-4370-90ae-9d4b23e32666.webp?v=1714706443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c978bd44786afc2bc868c0136106b3cae2c9bdc0_11911345-d460-4370-90ae-9d4b23e32666.webp?v=1714706443","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41880814092387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31470759313507,"product_id":7407941419107,"position":6,"created_at":"2024-05-03T11:20:33+08:00","updated_at":"2024-05-03T11:20:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433","variant_ids":[41880814092387]},"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-PB102","featured_media":{"alt":null,"id":23875663495267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880814157923,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31470758363235,"product_id":7407941419107,"position":4,"created_at":"2024-05-03T11:20:29+08:00","updated_at":"2024-05-03T11:20:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd67567715c7c850e7b3a7cc94995880857ad773_8d6ffb74-c885-437a-9f0d-29db24356308.webp?v=1714706429","variant_ids":[41880814157923]},"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-PB102","featured_media":{"alt":null,"id":23875662512227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd67567715c7c850e7b3a7cc94995880857ad773_8d6ffb74-c885-437a-9f0d-29db24356308.webp?v=1714706429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880814387299,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31470761508963,"product_id":7407941419107,"position":10,"created_at":"2024-05-03T11:20:43+08:00","updated_at":"2024-05-03T11:20:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c978bd44786afc2bc868c0136106b3cae2c9bdc0_11911345-d460-4370-90ae-9d4b23e32666.webp?v=1714706443","variant_ids":[41880814387299]},"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-PB102","featured_media":{"alt":null,"id":23875666018403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c978bd44786afc2bc868c0136106b3cae2c9bdc0_11911345-d460-4370-90ae-9d4b23e32666.webp?v=1714706443"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880814092387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31470759313507,"product_id":7407941419107,"position":6,"created_at":"2024-05-03T11:20:33+08:00","updated_at":"2024-05-03T11:20:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433","variant_ids":[41880814092387]},"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-PB102","featured_media":{"alt":null,"id":23875663495267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae2d0e267aa03617b6a68ec599b34918bedf8d42_40f61087-7a26-4f5a-8c9b-3ba1f129ffa6.webp?v=1714706433"}},"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: "停產"
}