$product = {"id":7408022421603,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典","handle":"iphone-13-mini-mod-nx-printable-pb80","description":null,"published_at":"2024-06-11T16:29:19+08:00","created_at":"2024-05-03T11:43:17+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":41881818497123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470993506403,"product_id":7408022421603,"position":2,"created_at":"2024-05-03T11:43:22+08:00","updated_at":"2024-05-03T11:43:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802","variant_ids":[41881818497123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23875898507363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881818562659,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470994653283,"product_id":7408022421603,"position":3,"created_at":"2024-05-03T11:43:25+08:00","updated_at":"2024-05-03T11:43:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccecfc5584b8703bf8ec31fdc21eee8b2cae08eb_92a887e1-45c7-41e5-b08f-bd6820e3c853.webp?v=1714707805","variant_ids":[41881818562659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23875899621475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccecfc5584b8703bf8ec31fdc21eee8b2cae08eb_92a887e1-45c7-41e5-b08f-bd6820e3c853.webp?v=1714707805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881818824803,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470995046499,"product_id":7408022421603,"position":4,"created_at":"2024-05-03T11:43:27+08:00","updated_at":"2024-05-03T11:43:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744d26861fbcbb471a92a7548299488ee25d7ed6_1c584bdc-2252-42d6-8fda-1eef5efd1da4.webp?v=1714707807","variant_ids":[41881818824803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23875900047459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744d26861fbcbb471a92a7548299488ee25d7ed6_1c584bdc-2252-42d6-8fda-1eef5efd1da4.webp?v=1714707807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/532b2abce0e3e5aca553d76acb54472fb411c6d1_430bb117-2c52-4523-948d-7f4a53beff92.webp?v=1714707799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccecfc5584b8703bf8ec31fdc21eee8b2cae08eb_92a887e1-45c7-41e5-b08f-bd6820e3c853.webp?v=1714707805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744d26861fbcbb471a92a7548299488ee25d7ed6_1c584bdc-2252-42d6-8fda-1eef5efd1da4.webp?v=1714707807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/955d8ade52f021ace158409a6ce7f68d7da62f2f_038714b0-bfa1-4e62-8f9b-6be555516314.webp?v=1714707809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b64caf7300eba60f64a35a25dbee83825b4500d_a35cf86d-20bd-4189-8d43-ad084c774daa.webp?v=1714707812","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fc3b47c1f05636d23905f94c8bbe8d540b36786_981fcec0-59dc-4cd4-8dc7-f0080df494dc.webp?v=1714707814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23e37ea6a1dd448d75f8f1b7eb03040a79d91a4a_600d15d9-bb49-422c-ae33-ce4f71325e1d.webp?v=1714707816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f061d7e01bf8ddebd78009f8eb60150571020eb2_7075116a-6506-4955-aab2-1e89400f9e22.webp?v=1714707819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f922dcb8d1f89f50e55a2f368b9154b0329df8e2_560aeda6-85fd-4950-8a97-1fa365f4a244.webp?v=1714707821"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/532b2abce0e3e5aca553d76acb54472fb411c6d1_430bb117-2c52-4523-948d-7f4a53beff92.webp?v=1714707799","options":["color"],"media":[{"alt":null,"id":23875898146915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/532b2abce0e3e5aca553d76acb54472fb411c6d1_430bb117-2c52-4523-948d-7f4a53beff92.webp?v=1714707799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/532b2abce0e3e5aca553d76acb54472fb411c6d1_430bb117-2c52-4523-948d-7f4a53beff92.webp?v=1714707799","width":2000},{"alt":null,"id":23875898507363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802","width":2000},{"alt":null,"id":23875899621475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccecfc5584b8703bf8ec31fdc21eee8b2cae08eb_92a887e1-45c7-41e5-b08f-bd6820e3c853.webp?v=1714707805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccecfc5584b8703bf8ec31fdc21eee8b2cae08eb_92a887e1-45c7-41e5-b08f-bd6820e3c853.webp?v=1714707805","width":2000},{"alt":null,"id":23875900047459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744d26861fbcbb471a92a7548299488ee25d7ed6_1c584bdc-2252-42d6-8fda-1eef5efd1da4.webp?v=1714707807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744d26861fbcbb471a92a7548299488ee25d7ed6_1c584bdc-2252-42d6-8fda-1eef5efd1da4.webp?v=1714707807","width":2000},{"alt":null,"id":23875900375139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/955d8ade52f021ace158409a6ce7f68d7da62f2f_038714b0-bfa1-4e62-8f9b-6be555516314.webp?v=1714707809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/955d8ade52f021ace158409a6ce7f68d7da62f2f_038714b0-bfa1-4e62-8f9b-6be555516314.webp?v=1714707809","width":2000},{"alt":null,"id":23875900768355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b64caf7300eba60f64a35a25dbee83825b4500d_a35cf86d-20bd-4189-8d43-ad084c774daa.webp?v=1714707812"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b64caf7300eba60f64a35a25dbee83825b4500d_a35cf86d-20bd-4189-8d43-ad084c774daa.webp?v=1714707812","width":2000},{"alt":null,"id":23875901128803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fc3b47c1f05636d23905f94c8bbe8d540b36786_981fcec0-59dc-4cd4-8dc7-f0080df494dc.webp?v=1714707814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fc3b47c1f05636d23905f94c8bbe8d540b36786_981fcec0-59dc-4cd4-8dc7-f0080df494dc.webp?v=1714707814","width":2000},{"alt":null,"id":23875901390947,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23e37ea6a1dd448d75f8f1b7eb03040a79d91a4a_600d15d9-bb49-422c-ae33-ce4f71325e1d.webp?v=1714707816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23e37ea6a1dd448d75f8f1b7eb03040a79d91a4a_600d15d9-bb49-422c-ae33-ce4f71325e1d.webp?v=1714707816","width":2000},{"alt":null,"id":23875901948003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f061d7e01bf8ddebd78009f8eb60150571020eb2_7075116a-6506-4955-aab2-1e89400f9e22.webp?v=1714707819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f061d7e01bf8ddebd78009f8eb60150571020eb2_7075116a-6506-4955-aab2-1e89400f9e22.webp?v=1714707819","width":2000},{"alt":null,"id":23875902308451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f922dcb8d1f89f50e55a2f368b9154b0329df8e2_560aeda6-85fd-4950-8a97-1fa365f4a244.webp?v=1714707821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f922dcb8d1f89f50e55a2f368b9154b0329df8e2_560aeda6-85fd-4950-8a97-1fa365f4a244.webp?v=1714707821","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881818497123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470993506403,"product_id":7408022421603,"position":2,"created_at":"2024-05-03T11:43:22+08:00","updated_at":"2024-05-03T11:43:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802","variant_ids":[41881818497123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23875898507363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881818562659,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470994653283,"product_id":7408022421603,"position":3,"created_at":"2024-05-03T11:43:25+08:00","updated_at":"2024-05-03T11:43:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccecfc5584b8703bf8ec31fdc21eee8b2cae08eb_92a887e1-45c7-41e5-b08f-bd6820e3c853.webp?v=1714707805","variant_ids":[41881818562659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23875899621475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccecfc5584b8703bf8ec31fdc21eee8b2cae08eb_92a887e1-45c7-41e5-b08f-bd6820e3c853.webp?v=1714707805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881818824803,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470995046499,"product_id":7408022421603,"position":4,"created_at":"2024-05-03T11:43:27+08:00","updated_at":"2024-05-03T11:43:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744d26861fbcbb471a92a7548299488ee25d7ed6_1c584bdc-2252-42d6-8fda-1eef5efd1da4.webp?v=1714707807","variant_ids":[41881818824803]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23875900047459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/744d26861fbcbb471a92a7548299488ee25d7ed6_1c584bdc-2252-42d6-8fda-1eef5efd1da4.webp?v=1714707807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881818497123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB80","requires_shipping":true,"taxable":true,"featured_image":{"id":31470993506403,"product_id":7408022421603,"position":2,"created_at":"2024-05-03T11:43:22+08:00","updated_at":"2024-05-03T11:43:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802","variant_ids":[41881818497123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機-經典 - 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-PB80","featured_media":{"alt":null,"id":23875898507363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d586ddf2bf305a84ba3675be1894dc782f131e_ece2fd0e-76c9-4eaf-a78a-77d3efd9cfb9.webp?v=1714707802"}},"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: "停產"
}