$product = {"id":7407642738787,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典","handle":"iphone-14-pro-mod-nx-printable-pb76","description":null,"published_at":"2024-06-11T16:21:23+08:00","created_at":"2024-05-03T10:35:56+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":41877081915491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470132363363,"product_id":7407642738787,"position":4,"created_at":"2024-05-03T10:36:06+08:00","updated_at":"2024-05-03T10:36:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766","variant_ids":[41877081915491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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-PB76","featured_media":{"alt":null,"id":23875035299939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877081981027,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470131019875,"product_id":7407642738787,"position":2,"created_at":"2024-05-03T10:36:01+08:00","updated_at":"2024-05-03T10:36:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f4b37687765f958d07c9ee6199aa15a4333d170_b939a14e-70c0-48a7-b068-8672e0451ee5.webp?v=1714703761","variant_ids":[41877081981027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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-PB76","featured_media":{"alt":null,"id":23875034054755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f4b37687765f958d07c9ee6199aa15a4333d170_b939a14e-70c0-48a7-b068-8672e0451ee5.webp?v=1714703761"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877082341475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470133084259,"product_id":7407642738787,"position":6,"created_at":"2024-05-03T10:36:11+08:00","updated_at":"2024-05-03T10:36:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a07f5c903f17e03c3c0e1c7b9b2b34153e0e11_88d5f607-6ca6-4a06-8b3e-96831cb36844.webp?v=1714703771","variant_ids":[41877082341475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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-PB76","featured_media":{"alt":null,"id":23875035988067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a07f5c903f17e03c3c0e1c7b9b2b34153e0e11_88d5f607-6ca6-4a06-8b3e-96831cb36844.webp?v=1714703771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb42cb13d28ff756b5414c41f3776fff7a4e1c46_9fce25bd-6732-48aa-919e-edb8f90d3cef.webp?v=1714703758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f4b37687765f958d07c9ee6199aa15a4333d170_b939a14e-70c0-48a7-b068-8672e0451ee5.webp?v=1714703761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb59402666e77c45ccc635c5a4fa7c7bc5f604ad_31226035-9494-43ef-a7f4-2af261995657.webp?v=1714703763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b52c33ba668e3ed7c35d684e3113488fb30f537_277c24ba-5ce0-42cd-8cb0-9f27c47fad72.webp?v=1714703768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a07f5c903f17e03c3c0e1c7b9b2b34153e0e11_88d5f607-6ca6-4a06-8b3e-96831cb36844.webp?v=1714703771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ced0963e2ce1167dddc0455a28062bdfbb5276a_53247e94-b856-4607-a81b-5227fffd0830.webp?v=1714703774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac28b8ceae6546e2b3b22cb9752193602980cbfc_7233b07c-5896-477b-994d-8ee607e7276b.webp?v=1714703776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/956fa64fec1caa2b8f1089f283a36144cb594e51_343d349b-9ddf-4e09-a6de-cd74900efd91.webp?v=1714703779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477f7d3b5ad7f9d708b696621955cad0c625f31e_57c64ca6-1e2a-4529-a5dd-d09a00356ca7.webp?v=1714703782"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb42cb13d28ff756b5414c41f3776fff7a4e1c46_9fce25bd-6732-48aa-919e-edb8f90d3cef.webp?v=1714703758","options":["color"],"media":[{"alt":null,"id":23875033333859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb42cb13d28ff756b5414c41f3776fff7a4e1c46_9fce25bd-6732-48aa-919e-edb8f90d3cef.webp?v=1714703758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb42cb13d28ff756b5414c41f3776fff7a4e1c46_9fce25bd-6732-48aa-919e-edb8f90d3cef.webp?v=1714703758","width":2000},{"alt":null,"id":23875034054755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f4b37687765f958d07c9ee6199aa15a4333d170_b939a14e-70c0-48a7-b068-8672e0451ee5.webp?v=1714703761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f4b37687765f958d07c9ee6199aa15a4333d170_b939a14e-70c0-48a7-b068-8672e0451ee5.webp?v=1714703761","width":2000},{"alt":null,"id":23875034742883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb59402666e77c45ccc635c5a4fa7c7bc5f604ad_31226035-9494-43ef-a7f4-2af261995657.webp?v=1714703763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb59402666e77c45ccc635c5a4fa7c7bc5f604ad_31226035-9494-43ef-a7f4-2af261995657.webp?v=1714703763","width":2000},{"alt":null,"id":23875035299939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766","width":2000},{"alt":null,"id":23875035627619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b52c33ba668e3ed7c35d684e3113488fb30f537_277c24ba-5ce0-42cd-8cb0-9f27c47fad72.webp?v=1714703768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b52c33ba668e3ed7c35d684e3113488fb30f537_277c24ba-5ce0-42cd-8cb0-9f27c47fad72.webp?v=1714703768","width":2000},{"alt":null,"id":23875035988067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a07f5c903f17e03c3c0e1c7b9b2b34153e0e11_88d5f607-6ca6-4a06-8b3e-96831cb36844.webp?v=1714703771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a07f5c903f17e03c3c0e1c7b9b2b34153e0e11_88d5f607-6ca6-4a06-8b3e-96831cb36844.webp?v=1714703771","width":2000},{"alt":null,"id":23875036545123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ced0963e2ce1167dddc0455a28062bdfbb5276a_53247e94-b856-4607-a81b-5227fffd0830.webp?v=1714703774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ced0963e2ce1167dddc0455a28062bdfbb5276a_53247e94-b856-4607-a81b-5227fffd0830.webp?v=1714703774","width":2000},{"alt":null,"id":23875036872803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac28b8ceae6546e2b3b22cb9752193602980cbfc_7233b07c-5896-477b-994d-8ee607e7276b.webp?v=1714703776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac28b8ceae6546e2b3b22cb9752193602980cbfc_7233b07c-5896-477b-994d-8ee607e7276b.webp?v=1714703776","width":2000},{"alt":null,"id":23875037200483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/956fa64fec1caa2b8f1089f283a36144cb594e51_343d349b-9ddf-4e09-a6de-cd74900efd91.webp?v=1714703779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/956fa64fec1caa2b8f1089f283a36144cb594e51_343d349b-9ddf-4e09-a6de-cd74900efd91.webp?v=1714703779","width":2000},{"alt":null,"id":23875037757539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477f7d3b5ad7f9d708b696621955cad0c625f31e_57c64ca6-1e2a-4529-a5dd-d09a00356ca7.webp?v=1714703782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477f7d3b5ad7f9d708b696621955cad0c625f31e_57c64ca6-1e2a-4529-a5dd-d09a00356ca7.webp?v=1714703782","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41877081915491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470132363363,"product_id":7407642738787,"position":4,"created_at":"2024-05-03T10:36:06+08:00","updated_at":"2024-05-03T10:36:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766","variant_ids":[41877081915491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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-PB76","featured_media":{"alt":null,"id":23875035299939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877081981027,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470131019875,"product_id":7407642738787,"position":2,"created_at":"2024-05-03T10:36:01+08:00","updated_at":"2024-05-03T10:36:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f4b37687765f958d07c9ee6199aa15a4333d170_b939a14e-70c0-48a7-b068-8672e0451ee5.webp?v=1714703761","variant_ids":[41877081981027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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-PB76","featured_media":{"alt":null,"id":23875034054755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f4b37687765f958d07c9ee6199aa15a4333d170_b939a14e-70c0-48a7-b068-8672e0451ee5.webp?v=1714703761"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877082341475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470133084259,"product_id":7407642738787,"position":6,"created_at":"2024-05-03T10:36:11+08:00","updated_at":"2024-05-03T10:36:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a07f5c903f17e03c3c0e1c7b9b2b34153e0e11_88d5f607-6ca6-4a06-8b3e-96831cb36844.webp?v=1714703771","variant_ids":[41877082341475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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-PB76","featured_media":{"alt":null,"id":23875035988067,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36a07f5c903f17e03c3c0e1c7b9b2b34153e0e11_88d5f607-6ca6-4a06-8b3e-96831cb36844.webp?v=1714703771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41877081915491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31470132363363,"product_id":7407642738787,"position":4,"created_at":"2024-05-03T10:36:06+08:00","updated_at":"2024-05-03T10:36:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766","variant_ids":[41877081915491]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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-PB76","featured_media":{"alt":null,"id":23875035299939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc263a405ae898ae2c9f7fd3cf028c92a9af6007_913fc0e8-54ad-48f6-bb62-97416d14ba03.webp?v=1714703766"}},"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: "停產"
}