$product = {"id":7407895642211,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列","handle":"iphone-14-pro-mod-nx-printable-pb71","description":null,"published_at":"2024-06-11T16:25:52+08:00","created_at":"2024-05-03T11:11:22+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":41880215453795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31470645182563,"product_id":7407895642211,"position":9,"created_at":"2024-05-03T11:11:43+08:00","updated_at":"2024-05-03T11:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903","variant_ids":[41880215453795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB71","featured_media":{"alt":null,"id":23875549200483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880215519331,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31470643347555,"product_id":7407895642211,"position":5,"created_at":"2024-05-03T11:11:34+08:00","updated_at":"2024-05-03T11:11:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345e15642756d0d566e7a0890252a2f473fda2f5_ec312b03-0afd-479c-9c69-03a558d0ff43.webp?v=1714705894","variant_ids":[41880215519331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB71","featured_media":{"alt":null,"id":23875547332707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345e15642756d0d566e7a0890252a2f473fda2f5_ec312b03-0afd-479c-9c69-03a558d0ff43.webp?v=1714705894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880215748707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31470641610851,"product_id":7407895642211,"position":1,"created_at":"2024-05-03T11:11:25+08:00","updated_at":"2024-05-03T11:11:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885","variant_ids":[41880215748707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB71","featured_media":{"alt":null,"id":23875545563235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e8048a706c7c11fd9aba655ed06e9e59e88e21_72a7bac8-b042-4c47-9011-6013763d5b9c.webp?v=1714705887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2621b1170579a25b2518a1bfdd08b8dc4882be_365503a0-2b48-4d92-8c57-fbc92a9790c0.webp?v=1714705890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a4bd62750d6360a44effb881c754bf8290da63_d05e6f76-836c-4542-b476-b5675de62c3b.webp?v=1714705892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345e15642756d0d566e7a0890252a2f473fda2f5_ec312b03-0afd-479c-9c69-03a558d0ff43.webp?v=1714705894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4392522c60a4e4ff3264ca31fa7b306f156aed18_82d2dbcd-6af6-4009-91cd-2950d62fb443.webp?v=1714705897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62b72999ec71ee967c4213493eee97c3c1cf45b1_476317e3-aa6e-41bf-95b5-7a6477cf7565.webp?v=1714705899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d3ddb0b4d358f450a1389bbf7e9ae59762c8b1f_71be33db-8379-42ea-9a7c-a66f14e7977a.webp?v=1714705901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ad9cd9301fd5c740ca5aba759638312c3fd727_6be07afc-1a2c-4a92-ae76-d313e1d22143.webp?v=1714705906"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885","options":["color"],"media":[{"alt":null,"id":23875545563235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885","width":2000},{"alt":null,"id":23875545825379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e8048a706c7c11fd9aba655ed06e9e59e88e21_72a7bac8-b042-4c47-9011-6013763d5b9c.webp?v=1714705887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e8048a706c7c11fd9aba655ed06e9e59e88e21_72a7bac8-b042-4c47-9011-6013763d5b9c.webp?v=1714705887","width":2000},{"alt":null,"id":23875546480739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2621b1170579a25b2518a1bfdd08b8dc4882be_365503a0-2b48-4d92-8c57-fbc92a9790c0.webp?v=1714705890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2621b1170579a25b2518a1bfdd08b8dc4882be_365503a0-2b48-4d92-8c57-fbc92a9790c0.webp?v=1714705890","width":2000},{"alt":null,"id":23875546775651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a4bd62750d6360a44effb881c754bf8290da63_d05e6f76-836c-4542-b476-b5675de62c3b.webp?v=1714705892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44a4bd62750d6360a44effb881c754bf8290da63_d05e6f76-836c-4542-b476-b5675de62c3b.webp?v=1714705892","width":2000},{"alt":null,"id":23875547332707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345e15642756d0d566e7a0890252a2f473fda2f5_ec312b03-0afd-479c-9c69-03a558d0ff43.webp?v=1714705894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345e15642756d0d566e7a0890252a2f473fda2f5_ec312b03-0afd-479c-9c69-03a558d0ff43.webp?v=1714705894","width":2000},{"alt":null,"id":23875547627619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4392522c60a4e4ff3264ca31fa7b306f156aed18_82d2dbcd-6af6-4009-91cd-2950d62fb443.webp?v=1714705897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4392522c60a4e4ff3264ca31fa7b306f156aed18_82d2dbcd-6af6-4009-91cd-2950d62fb443.webp?v=1714705897","width":2000},{"alt":null,"id":23875548282979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62b72999ec71ee967c4213493eee97c3c1cf45b1_476317e3-aa6e-41bf-95b5-7a6477cf7565.webp?v=1714705899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62b72999ec71ee967c4213493eee97c3c1cf45b1_476317e3-aa6e-41bf-95b5-7a6477cf7565.webp?v=1714705899","width":2000},{"alt":null,"id":23875548643427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d3ddb0b4d358f450a1389bbf7e9ae59762c8b1f_71be33db-8379-42ea-9a7c-a66f14e7977a.webp?v=1714705901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d3ddb0b4d358f450a1389bbf7e9ae59762c8b1f_71be33db-8379-42ea-9a7c-a66f14e7977a.webp?v=1714705901","width":2000},{"alt":null,"id":23875549200483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903","width":2000},{"alt":null,"id":23875549560931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ad9cd9301fd5c740ca5aba759638312c3fd727_6be07afc-1a2c-4a92-ae76-d313e1d22143.webp?v=1714705906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91ad9cd9301fd5c740ca5aba759638312c3fd727_6be07afc-1a2c-4a92-ae76-d313e1d22143.webp?v=1714705906","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41880215453795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31470645182563,"product_id":7407895642211,"position":9,"created_at":"2024-05-03T11:11:43+08:00","updated_at":"2024-05-03T11:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903","variant_ids":[41880215453795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB71","featured_media":{"alt":null,"id":23875549200483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880215519331,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31470643347555,"product_id":7407895642211,"position":5,"created_at":"2024-05-03T11:11:34+08:00","updated_at":"2024-05-03T11:11:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345e15642756d0d566e7a0890252a2f473fda2f5_ec312b03-0afd-479c-9c69-03a558d0ff43.webp?v=1714705894","variant_ids":[41880215519331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB71","featured_media":{"alt":null,"id":23875547332707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/345e15642756d0d566e7a0890252a2f473fda2f5_ec312b03-0afd-479c-9c69-03a558d0ff43.webp?v=1714705894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880215748707,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31470641610851,"product_id":7407895642211,"position":1,"created_at":"2024-05-03T11:11:25+08:00","updated_at":"2024-05-03T11:11:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885","variant_ids":[41880215748707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB71","featured_media":{"alt":null,"id":23875545563235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ebf06eea332d72e1a1bb3a48b5aa7fbdf66d3a9_f870110c-df1e-4e37-a1b1-71d7792afac6.webp?v=1714705885"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880215453795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31470645182563,"product_id":7407895642211,"position":9,"created_at":"2024-05-03T11:11:43+08:00","updated_at":"2024-05-03T11:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903","variant_ids":[41880215453795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB71","featured_media":{"alt":null,"id":23875549200483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6fddeea0233fe6f14eabc774fb933d4e04b150f_7e1eedf9-6dda-463f-a97f-d65426c970ee.webp?v=1714705903"}},"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: "停產"
}