$product = {"id":7407969861731,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅","handle":"iphone-14-pro-mod-nx-printable-pb33","description":null,"published_at":"2024-06-11T16:27:56+08:00","created_at":"2024-05-03T11:25:54+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":41881194004579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470836023395,"product_id":7407969861731,"position":7,"created_at":"2024-05-03T11:26:11+08:00","updated_at":"2024-05-03T11:26:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771","variant_ids":[41881194004579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23875740631139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881194135651,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470833008739,"product_id":7407969861731,"position":2,"created_at":"2024-05-03T11:25:59+08:00","updated_at":"2024-05-03T11:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a5fda1dc9f2c5f5dc9a9f06f0be0f7291e3908_bb79fc70-40e5-4cd9-ace0-319e1757ae6d.webp?v=1714706759","variant_ids":[41881194135651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23875737518179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a5fda1dc9f2c5f5dc9a9f06f0be0f7291e3908_bb79fc70-40e5-4cd9-ace0-319e1757ae6d.webp?v=1714706759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881194463331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470837858403,"product_id":7407969861731,"position":10,"created_at":"2024-05-03T11:26:18+08:00","updated_at":"2024-05-03T11:26:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac8d9b3ce150af663324a19392631e7d473ebb_bdab0a4b-14e5-4401-99a5-672f862a6c1d.webp?v=1714706778","variant_ids":[41881194463331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23875742302307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac8d9b3ce150af663324a19392631e7d473ebb_bdab0a4b-14e5-4401-99a5-672f862a6c1d.webp?v=1714706778"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc6d862c0d5893e9f61e0999c1a954085195e3ce_ebc2a8b0-19d7-4b36-bf65-89740e614c2c.webp?v=1714706756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a5fda1dc9f2c5f5dc9a9f06f0be0f7291e3908_bb79fc70-40e5-4cd9-ace0-319e1757ae6d.webp?v=1714706759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffe9e31a02c14e0e4c8e75e3cd6bb58364a13e7_e4dbafc5-f918-422e-9d1e-62fb424db441.webp?v=1714706761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0437d20a139e3ec3ec57f6ab2f1299ff279da50d_1ac9e1e8-c338-4860-909e-27fe93ce07b2.webp?v=1714706764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9efcd20f7e785ac3b558003c261d10943e056534_ee0a5c82-af7b-480d-ba2c-a340eff53c91.webp?v=1714706766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62df6cd91d093c9f8397357a347c16c7404d00fb_6fcd0336-9cc1-4320-9e02-f73f630117a6.webp?v=1714706768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e215c511b332b64367ec6f56ce79fd0f715adb_d04b05a0-971f-4b44-b460-dde1e1e57e53.webp?v=1714706773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74632be4d580ec04e56058a252f7dfb0fa3c3147_fa6bdd4a-f1ee-4232-bc3c-979ce1647ecb.webp?v=1714706776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac8d9b3ce150af663324a19392631e7d473ebb_bdab0a4b-14e5-4401-99a5-672f862a6c1d.webp?v=1714706778"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc6d862c0d5893e9f61e0999c1a954085195e3ce_ebc2a8b0-19d7-4b36-bf65-89740e614c2c.webp?v=1714706756","options":["color"],"media":[{"alt":null,"id":23875736895587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc6d862c0d5893e9f61e0999c1a954085195e3ce_ebc2a8b0-19d7-4b36-bf65-89740e614c2c.webp?v=1714706756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc6d862c0d5893e9f61e0999c1a954085195e3ce_ebc2a8b0-19d7-4b36-bf65-89740e614c2c.webp?v=1714706756","width":2000},{"alt":null,"id":23875737518179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a5fda1dc9f2c5f5dc9a9f06f0be0f7291e3908_bb79fc70-40e5-4cd9-ace0-319e1757ae6d.webp?v=1714706759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a5fda1dc9f2c5f5dc9a9f06f0be0f7291e3908_bb79fc70-40e5-4cd9-ace0-319e1757ae6d.webp?v=1714706759","width":2000},{"alt":null,"id":23875738140771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffe9e31a02c14e0e4c8e75e3cd6bb58364a13e7_e4dbafc5-f918-422e-9d1e-62fb424db441.webp?v=1714706761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffe9e31a02c14e0e4c8e75e3cd6bb58364a13e7_e4dbafc5-f918-422e-9d1e-62fb424db441.webp?v=1714706761","width":2000},{"alt":null,"id":23875738828899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0437d20a139e3ec3ec57f6ab2f1299ff279da50d_1ac9e1e8-c338-4860-909e-27fe93ce07b2.webp?v=1714706764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0437d20a139e3ec3ec57f6ab2f1299ff279da50d_1ac9e1e8-c338-4860-909e-27fe93ce07b2.webp?v=1714706764","width":2000},{"alt":null,"id":23875739320419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9efcd20f7e785ac3b558003c261d10943e056534_ee0a5c82-af7b-480d-ba2c-a340eff53c91.webp?v=1714706766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9efcd20f7e785ac3b558003c261d10943e056534_ee0a5c82-af7b-480d-ba2c-a340eff53c91.webp?v=1714706766","width":2000},{"alt":null,"id":23875740139619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62df6cd91d093c9f8397357a347c16c7404d00fb_6fcd0336-9cc1-4320-9e02-f73f630117a6.webp?v=1714706768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62df6cd91d093c9f8397357a347c16c7404d00fb_6fcd0336-9cc1-4320-9e02-f73f630117a6.webp?v=1714706768","width":2000},{"alt":null,"id":23875740631139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771","width":2000},{"alt":null,"id":23875741253731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e215c511b332b64367ec6f56ce79fd0f715adb_d04b05a0-971f-4b44-b460-dde1e1e57e53.webp?v=1714706773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e215c511b332b64367ec6f56ce79fd0f715adb_d04b05a0-971f-4b44-b460-dde1e1e57e53.webp?v=1714706773","width":2000},{"alt":null,"id":23875741810787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74632be4d580ec04e56058a252f7dfb0fa3c3147_fa6bdd4a-f1ee-4232-bc3c-979ce1647ecb.webp?v=1714706776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74632be4d580ec04e56058a252f7dfb0fa3c3147_fa6bdd4a-f1ee-4232-bc3c-979ce1647ecb.webp?v=1714706776","width":2000},{"alt":null,"id":23875742302307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac8d9b3ce150af663324a19392631e7d473ebb_bdab0a4b-14e5-4401-99a5-672f862a6c1d.webp?v=1714706778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac8d9b3ce150af663324a19392631e7d473ebb_bdab0a4b-14e5-4401-99a5-672f862a6c1d.webp?v=1714706778","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881194004579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470836023395,"product_id":7407969861731,"position":7,"created_at":"2024-05-03T11:26:11+08:00","updated_at":"2024-05-03T11:26:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771","variant_ids":[41881194004579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23875740631139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881194135651,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470833008739,"product_id":7407969861731,"position":2,"created_at":"2024-05-03T11:25:59+08:00","updated_at":"2024-05-03T11:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a5fda1dc9f2c5f5dc9a9f06f0be0f7291e3908_bb79fc70-40e5-4cd9-ace0-319e1757ae6d.webp?v=1714706759","variant_ids":[41881194135651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23875737518179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a5fda1dc9f2c5f5dc9a9f06f0be0f7291e3908_bb79fc70-40e5-4cd9-ace0-319e1757ae6d.webp?v=1714706759"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881194463331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470837858403,"product_id":7407969861731,"position":10,"created_at":"2024-05-03T11:26:18+08:00","updated_at":"2024-05-03T11:26:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac8d9b3ce150af663324a19392631e7d473ebb_bdab0a4b-14e5-4401-99a5-672f862a6c1d.webp?v=1714706778","variant_ids":[41881194463331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23875742302307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08ac8d9b3ce150af663324a19392631e7d473ebb_bdab0a4b-14e5-4401-99a5-672f862a6c1d.webp?v=1714706778"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881194004579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470836023395,"product_id":7407969861731,"position":7,"created_at":"2024-05-03T11:26:11+08:00","updated_at":"2024-05-03T11:26:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771","variant_ids":[41881194004579]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23875740631139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44eb7d6604a793263d4ad0968ab9fc8e02f638aa_b2225818-e314-4a81-85d2-2668dc76b052.webp?v=1714706771"}},"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: "停產"
}