$product = {"id":7408136912995,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列","handle":"iphone-13-mini-mod-nx-printable-pc09","description":null,"published_at":"2024-06-11T16:32:23+08:00","created_at":"2024-05-03T12:07:12+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":41883092418659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471291170915,"product_id":7408136912995,"position":9,"created_at":"2024-05-03T12:07:33+08:00","updated_at":"2024-05-03T12:07:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253","variant_ids":[41883092418659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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-PC09","featured_media":{"alt":null,"id":23876196892771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883092484195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471287992419,"product_id":7408136912995,"position":5,"created_at":"2024-05-03T12:07:23+08:00","updated_at":"2024-05-03T12:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5aa3694ca0e3221b4f2550daa438042c8a45de_f5632736-db43-49eb-9983-bc36dedd7742.webp?v=1714709243","variant_ids":[41883092484195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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-PC09","featured_media":{"alt":null,"id":23876193714275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5aa3694ca0e3221b4f2550daa438042c8a45de_f5632736-db43-49eb-9983-bc36dedd7742.webp?v=1714709243"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883092713571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471287009379,"product_id":7408136912995,"position":3,"created_at":"2024-05-03T12:07:18+08:00","updated_at":"2024-05-03T12:07:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baab6ac4c07958b0d5d41fcef9bb68754d30924d_419d9381-58e7-4acb-982e-8d7fb1737e18.webp?v=1714709238","variant_ids":[41883092713571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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-PC09","featured_media":{"alt":null,"id":23876192731235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baab6ac4c07958b0d5d41fcef9bb68754d30924d_419d9381-58e7-4acb-982e-8d7fb1737e18.webp?v=1714709238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab36770949164e94d2006e3575acdc64cefa115_5f2c2ec8-8d3f-4935-a751-d40249bb9d3e.webp?v=1714709234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf01d34ea69ffc0ff00dfcd73ecb927acf0414e5_7d6c63d1-c6bc-4e30-ba33-a39b7a8d28a5.webp?v=1714709236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baab6ac4c07958b0d5d41fcef9bb68754d30924d_419d9381-58e7-4acb-982e-8d7fb1737e18.webp?v=1714709238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba80356d8264fc0f0abd752e2a8eb0f8d8e6bb91_bb1c2edb-0c27-4ee3-9434-3623ddd8c89e.webp?v=1714709241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5aa3694ca0e3221b4f2550daa438042c8a45de_f5632736-db43-49eb-9983-bc36dedd7742.webp?v=1714709243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538a53bafb6c86998a4f4c1a885c088a4bad7eca_45b0221a-d265-4a9a-aa07-ff49dc9d69ac.webp?v=1714709246","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14d658c08dade67885ded91f5f981e705845af31_863beb36-c52f-4549-a55e-b2afb85724bc.webp?v=1714709248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a62a97323acf3ce4d2cb55e6fa169a05fdc2c09d_4531211b-6b03-48b9-a7cc-9516fcdc88ad.webp?v=1714709250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c374650e9d28e5e6ee17541c71e22f4a41c8891_287b3bc8-58bc-4db1-a2cd-95b8067d44a7.webp?v=1714709255"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab36770949164e94d2006e3575acdc64cefa115_5f2c2ec8-8d3f-4935-a751-d40249bb9d3e.webp?v=1714709234","options":["color"],"media":[{"alt":null,"id":23876191977571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab36770949164e94d2006e3575acdc64cefa115_5f2c2ec8-8d3f-4935-a751-d40249bb9d3e.webp?v=1714709234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab36770949164e94d2006e3575acdc64cefa115_5f2c2ec8-8d3f-4935-a751-d40249bb9d3e.webp?v=1714709234","width":2000},{"alt":null,"id":23876192338019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf01d34ea69ffc0ff00dfcd73ecb927acf0414e5_7d6c63d1-c6bc-4e30-ba33-a39b7a8d28a5.webp?v=1714709236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf01d34ea69ffc0ff00dfcd73ecb927acf0414e5_7d6c63d1-c6bc-4e30-ba33-a39b7a8d28a5.webp?v=1714709236","width":2000},{"alt":null,"id":23876192731235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baab6ac4c07958b0d5d41fcef9bb68754d30924d_419d9381-58e7-4acb-982e-8d7fb1737e18.webp?v=1714709238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baab6ac4c07958b0d5d41fcef9bb68754d30924d_419d9381-58e7-4acb-982e-8d7fb1737e18.webp?v=1714709238","width":2000},{"alt":null,"id":23876193288291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba80356d8264fc0f0abd752e2a8eb0f8d8e6bb91_bb1c2edb-0c27-4ee3-9434-3623ddd8c89e.webp?v=1714709241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba80356d8264fc0f0abd752e2a8eb0f8d8e6bb91_bb1c2edb-0c27-4ee3-9434-3623ddd8c89e.webp?v=1714709241","width":2000},{"alt":null,"id":23876193714275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5aa3694ca0e3221b4f2550daa438042c8a45de_f5632736-db43-49eb-9983-bc36dedd7742.webp?v=1714709243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5aa3694ca0e3221b4f2550daa438042c8a45de_f5632736-db43-49eb-9983-bc36dedd7742.webp?v=1714709243","width":2000},{"alt":null,"id":23876194304099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538a53bafb6c86998a4f4c1a885c088a4bad7eca_45b0221a-d265-4a9a-aa07-ff49dc9d69ac.webp?v=1714709246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538a53bafb6c86998a4f4c1a885c088a4bad7eca_45b0221a-d265-4a9a-aa07-ff49dc9d69ac.webp?v=1714709246","width":2000},{"alt":null,"id":23876195876963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14d658c08dade67885ded91f5f981e705845af31_863beb36-c52f-4549-a55e-b2afb85724bc.webp?v=1714709248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14d658c08dade67885ded91f5f981e705845af31_863beb36-c52f-4549-a55e-b2afb85724bc.webp?v=1714709248","width":2000},{"alt":null,"id":23876196466787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a62a97323acf3ce4d2cb55e6fa169a05fdc2c09d_4531211b-6b03-48b9-a7cc-9516fcdc88ad.webp?v=1714709250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a62a97323acf3ce4d2cb55e6fa169a05fdc2c09d_4531211b-6b03-48b9-a7cc-9516fcdc88ad.webp?v=1714709250","width":2000},{"alt":null,"id":23876196892771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253","width":2000},{"alt":null,"id":23876197351523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c374650e9d28e5e6ee17541c71e22f4a41c8891_287b3bc8-58bc-4db1-a2cd-95b8067d44a7.webp?v=1714709255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c374650e9d28e5e6ee17541c71e22f4a41c8891_287b3bc8-58bc-4db1-a2cd-95b8067d44a7.webp?v=1714709255","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883092418659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471291170915,"product_id":7408136912995,"position":9,"created_at":"2024-05-03T12:07:33+08:00","updated_at":"2024-05-03T12:07:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253","variant_ids":[41883092418659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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-PC09","featured_media":{"alt":null,"id":23876196892771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883092484195,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471287992419,"product_id":7408136912995,"position":5,"created_at":"2024-05-03T12:07:23+08:00","updated_at":"2024-05-03T12:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5aa3694ca0e3221b4f2550daa438042c8a45de_f5632736-db43-49eb-9983-bc36dedd7742.webp?v=1714709243","variant_ids":[41883092484195]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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-PC09","featured_media":{"alt":null,"id":23876193714275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a5aa3694ca0e3221b4f2550daa438042c8a45de_f5632736-db43-49eb-9983-bc36dedd7742.webp?v=1714709243"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883092713571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471287009379,"product_id":7408136912995,"position":3,"created_at":"2024-05-03T12:07:18+08:00","updated_at":"2024-05-03T12:07:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baab6ac4c07958b0d5d41fcef9bb68754d30924d_419d9381-58e7-4acb-982e-8d7fb1737e18.webp?v=1714709238","variant_ids":[41883092713571]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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-PC09","featured_media":{"alt":null,"id":23876192731235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baab6ac4c07958b0d5d41fcef9bb68754d30924d_419d9381-58e7-4acb-982e-8d7fb1737e18.webp?v=1714709238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883092418659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31471291170915,"product_id":7408136912995,"position":9,"created_at":"2024-05-03T12:07:33+08:00","updated_at":"2024-05-03T12:07:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253","variant_ids":[41883092418659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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-PC09","featured_media":{"alt":null,"id":23876196892771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7997f48cac71fc6fe8fbe971144a062d61931667_246f870e-20ab-451e-98fd-c1091cb96653.webp?v=1714709253"}},"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: "停產"
}