$product = {"id":7414453633123,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb49","description":null,"published_at":"2024-06-11T17:51:23+08:00","created_at":"2024-05-05T14:26:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41906598903907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31485511008355,"product_id":7414453633123,"position":4,"created_at":"2024-05-05T14:26:21+08:00","updated_at":"2024-05-05T14:26:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382","variant_ids":[41906598903907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB49","featured_media":{"alt":null,"id":23890827444323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906599034979,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31485518938211,"product_id":7414453633123,"position":8,"created_at":"2024-05-05T14:26:31+08:00","updated_at":"2024-05-05T14:26:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20be8e1b0b8ac288c58e70d1c89fab2186e8cbbe_aafa1ec5-f8ba-4efe-ad1c-8b30b451cf82.webp?v=1714890391","variant_ids":[41906599034979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB49","featured_media":{"alt":null,"id":23890835636323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20be8e1b0b8ac288c58e70d1c89fab2186e8cbbe_aafa1ec5-f8ba-4efe-ad1c-8b30b451cf82.webp?v=1714890391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906599362659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31485517103203,"product_id":7414453633123,"position":7,"created_at":"2024-05-05T14:26:29+08:00","updated_at":"2024-05-05T14:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faba69ec200bfff23f6381e07173f1e1edb837c1_94403507-39d6-4c55-9cec-ffed871235d2.webp?v=1714890389","variant_ids":[41906599362659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB49","featured_media":{"alt":null,"id":23890833440867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faba69ec200bfff23f6381e07173f1e1edb837c1_94403507-39d6-4c55-9cec-ffed871235d2.webp?v=1714890389"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52e3c304507655527b602be31838f765e173a1b3_bcaefced-6a86-4285-bb78-b86d752c50a2.webp?v=1714890374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb63fc450d3dac2c330a43cadec6f506daf7500_621f7bb1-572d-49ab-83ef-7aa5d205083b.webp?v=1714890376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed076f0c5f83b2fb51d99f2dce7bc995578596a_29b565fd-01ca-4e9b-b33e-e2bc9a5712ba.webp?v=1714890379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e71a78a6183e921c8e152c0ae41be47f15b86098_f3a29b26-a277-406e-bf83-27d8dedcc407.webp?v=1714890384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34a553d709987d2836f438a14968dd1f8d51be14_25e60f24-d8f4-45ea-ba34-79e16c78735a.webp?v=1714890387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faba69ec200bfff23f6381e07173f1e1edb837c1_94403507-39d6-4c55-9cec-ffed871235d2.webp?v=1714890389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20be8e1b0b8ac288c58e70d1c89fab2186e8cbbe_aafa1ec5-f8ba-4efe-ad1c-8b30b451cf82.webp?v=1714890391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2769838785cdf11527d666e715d734542d2ff09_31141a2c-a58b-489a-a90c-ed596b58af37.webp?v=1714890394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ad45d095de371e848c4393c98ddfe5f7fc39b8_fd0d4438-dddc-49f4-90cb-a89ad9bc5b1e.webp?v=1714890396"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52e3c304507655527b602be31838f765e173a1b3_bcaefced-6a86-4285-bb78-b86d752c50a2.webp?v=1714890374","options":["color"],"media":[{"alt":null,"id":23890821054563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52e3c304507655527b602be31838f765e173a1b3_bcaefced-6a86-4285-bb78-b86d752c50a2.webp?v=1714890374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52e3c304507655527b602be31838f765e173a1b3_bcaefced-6a86-4285-bb78-b86d752c50a2.webp?v=1714890374","width":2000},{"alt":null,"id":23890823118947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb63fc450d3dac2c330a43cadec6f506daf7500_621f7bb1-572d-49ab-83ef-7aa5d205083b.webp?v=1714890376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb63fc450d3dac2c330a43cadec6f506daf7500_621f7bb1-572d-49ab-83ef-7aa5d205083b.webp?v=1714890376","width":2000},{"alt":null,"id":23890825576547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed076f0c5f83b2fb51d99f2dce7bc995578596a_29b565fd-01ca-4e9b-b33e-e2bc9a5712ba.webp?v=1714890379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ed076f0c5f83b2fb51d99f2dce7bc995578596a_29b565fd-01ca-4e9b-b33e-e2bc9a5712ba.webp?v=1714890379","width":2000},{"alt":null,"id":23890827444323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382","width":2000},{"alt":null,"id":23890829574243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e71a78a6183e921c8e152c0ae41be47f15b86098_f3a29b26-a277-406e-bf83-27d8dedcc407.webp?v=1714890384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e71a78a6183e921c8e152c0ae41be47f15b86098_f3a29b26-a277-406e-bf83-27d8dedcc407.webp?v=1714890384","width":2000},{"alt":null,"id":23890831573091,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34a553d709987d2836f438a14968dd1f8d51be14_25e60f24-d8f4-45ea-ba34-79e16c78735a.webp?v=1714890387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34a553d709987d2836f438a14968dd1f8d51be14_25e60f24-d8f4-45ea-ba34-79e16c78735a.webp?v=1714890387","width":2000},{"alt":null,"id":23890833440867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faba69ec200bfff23f6381e07173f1e1edb837c1_94403507-39d6-4c55-9cec-ffed871235d2.webp?v=1714890389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faba69ec200bfff23f6381e07173f1e1edb837c1_94403507-39d6-4c55-9cec-ffed871235d2.webp?v=1714890389","width":2000},{"alt":null,"id":23890835636323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20be8e1b0b8ac288c58e70d1c89fab2186e8cbbe_aafa1ec5-f8ba-4efe-ad1c-8b30b451cf82.webp?v=1714890391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20be8e1b0b8ac288c58e70d1c89fab2186e8cbbe_aafa1ec5-f8ba-4efe-ad1c-8b30b451cf82.webp?v=1714890391","width":2000},{"alt":null,"id":23890838716515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2769838785cdf11527d666e715d734542d2ff09_31141a2c-a58b-489a-a90c-ed596b58af37.webp?v=1714890394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2769838785cdf11527d666e715d734542d2ff09_31141a2c-a58b-489a-a90c-ed596b58af37.webp?v=1714890394","width":2000},{"alt":null,"id":23890842288227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ad45d095de371e848c4393c98ddfe5f7fc39b8_fd0d4438-dddc-49f4-90cb-a89ad9bc5b1e.webp?v=1714890396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ad45d095de371e848c4393c98ddfe5f7fc39b8_fd0d4438-dddc-49f4-90cb-a89ad9bc5b1e.webp?v=1714890396","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906598903907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31485511008355,"product_id":7414453633123,"position":4,"created_at":"2024-05-05T14:26:21+08:00","updated_at":"2024-05-05T14:26:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382","variant_ids":[41906598903907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB49","featured_media":{"alt":null,"id":23890827444323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906599034979,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31485518938211,"product_id":7414453633123,"position":8,"created_at":"2024-05-05T14:26:31+08:00","updated_at":"2024-05-05T14:26:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20be8e1b0b8ac288c58e70d1c89fab2186e8cbbe_aafa1ec5-f8ba-4efe-ad1c-8b30b451cf82.webp?v=1714890391","variant_ids":[41906599034979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB49","featured_media":{"alt":null,"id":23890835636323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20be8e1b0b8ac288c58e70d1c89fab2186e8cbbe_aafa1ec5-f8ba-4efe-ad1c-8b30b451cf82.webp?v=1714890391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906599362659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31485517103203,"product_id":7414453633123,"position":7,"created_at":"2024-05-05T14:26:29+08:00","updated_at":"2024-05-05T14:26:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faba69ec200bfff23f6381e07173f1e1edb837c1_94403507-39d6-4c55-9cec-ffed871235d2.webp?v=1714890389","variant_ids":[41906599362659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB49","featured_media":{"alt":null,"id":23890833440867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faba69ec200bfff23f6381e07173f1e1edb837c1_94403507-39d6-4c55-9cec-ffed871235d2.webp?v=1714890389"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906598903907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31485511008355,"product_id":7414453633123,"position":4,"created_at":"2024-05-05T14:26:21+08:00","updated_at":"2024-05-05T14:26:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382","variant_ids":[41906598903907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB49","featured_media":{"alt":null,"id":23890827444323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0c53686ee1ba6796a584bc105369c7ff2fadb6_c5c13762-9cf3-46da-a202-429226c8f87b.webp?v=1714890382"}},"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: "停產"
}