$product = {"id":7413981020259,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pc09","description":null,"published_at":"2024-06-11T17:46:48+08:00","created_at":"2024-05-05T13:54:47+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":41902954053731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484384378979,"product_id":7413981020259,"position":10,"created_at":"2024-05-05T13:55:11+08:00","updated_at":"2024-05-05T13:55:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511","variant_ids":[41902954053731]},"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-PC09","featured_media":{"alt":null,"id":23889678270563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902954119267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383952995,"product_id":7413981020259,"position":9,"created_at":"2024-05-05T13:55:08+08:00","updated_at":"2024-05-05T13:55:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98cae32073b81ccaa00d513c0b6dbe452d2bcb30_989f8261-a429-41ca-82d0-0ff32fd74421.webp?v=1714888508","variant_ids":[41902954119267]},"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-PC09","featured_media":{"alt":null,"id":23889677811811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98cae32073b81ccaa00d513c0b6dbe452d2bcb30_989f8261-a429-41ca-82d0-0ff32fd74421.webp?v=1714888508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902954348643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484379856995,"product_id":7413981020259,"position":1,"created_at":"2024-05-05T13:54:50+08:00","updated_at":"2024-05-05T13:54:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490","variant_ids":[41902954348643]},"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-PC09","featured_media":{"alt":null,"id":23889673781347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab61257ff72e491d535fbe2f946f179740e3931e_f8f9defe-d797-493b-9b85-bfe5ab78c0b2.webp?v=1714888492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e6eb50ed1ebb58bcee4071f6a949e4ef87e0c1_a2cae8cc-1ad1-4c55-9796-9b767279129f.webp?v=1714888494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215bbfbc72a6d19a102d3a8ada1270b5ad20558b_cb13f122-e6cc-4ee4-8da1-95195cc47f6d.webp?v=1714888497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a510255699b513db3fb349cab3daae4bb8551e31_0756e243-5a3e-4c65-b1f2-dfc7d91c66df.webp?v=1714888499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0964bdd71dc864468cc6601743bf006a23999e15_5594fb4a-0edb-4400-9efe-eb3781343ca1.webp?v=1714888501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79426a8e971caadceb51a0a2593f6ee711acca6d_b5246154-7b52-40bf-9701-055ef9aca9f9.webp?v=1714888504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a21ebfc114ddf18a35bb3b7940607be7ce880dd_4928d67c-0c65-4de0-8523-4bded3f4ef02.webp?v=1714888506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98cae32073b81ccaa00d513c0b6dbe452d2bcb30_989f8261-a429-41ca-82d0-0ff32fd74421.webp?v=1714888508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490","options":["color"],"media":[{"alt":null,"id":23889673781347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490","width":2000},{"alt":null,"id":23889674240099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab61257ff72e491d535fbe2f946f179740e3931e_f8f9defe-d797-493b-9b85-bfe5ab78c0b2.webp?v=1714888492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab61257ff72e491d535fbe2f946f179740e3931e_f8f9defe-d797-493b-9b85-bfe5ab78c0b2.webp?v=1714888492","width":2000},{"alt":null,"id":23889674633315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e6eb50ed1ebb58bcee4071f6a949e4ef87e0c1_a2cae8cc-1ad1-4c55-9796-9b767279129f.webp?v=1714888494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e6eb50ed1ebb58bcee4071f6a949e4ef87e0c1_a2cae8cc-1ad1-4c55-9796-9b767279129f.webp?v=1714888494","width":2000},{"alt":null,"id":23889675124835,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215bbfbc72a6d19a102d3a8ada1270b5ad20558b_cb13f122-e6cc-4ee4-8da1-95195cc47f6d.webp?v=1714888497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/215bbfbc72a6d19a102d3a8ada1270b5ad20558b_cb13f122-e6cc-4ee4-8da1-95195cc47f6d.webp?v=1714888497","width":2000},{"alt":null,"id":23889675681891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a510255699b513db3fb349cab3daae4bb8551e31_0756e243-5a3e-4c65-b1f2-dfc7d91c66df.webp?v=1714888499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a510255699b513db3fb349cab3daae4bb8551e31_0756e243-5a3e-4c65-b1f2-dfc7d91c66df.webp?v=1714888499","width":2000},{"alt":null,"id":23889676271715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0964bdd71dc864468cc6601743bf006a23999e15_5594fb4a-0edb-4400-9efe-eb3781343ca1.webp?v=1714888501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0964bdd71dc864468cc6601743bf006a23999e15_5594fb4a-0edb-4400-9efe-eb3781343ca1.webp?v=1714888501","width":2000},{"alt":null,"id":23889676664931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79426a8e971caadceb51a0a2593f6ee711acca6d_b5246154-7b52-40bf-9701-055ef9aca9f9.webp?v=1714888504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79426a8e971caadceb51a0a2593f6ee711acca6d_b5246154-7b52-40bf-9701-055ef9aca9f9.webp?v=1714888504","width":2000},{"alt":null,"id":23889677418595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a21ebfc114ddf18a35bb3b7940607be7ce880dd_4928d67c-0c65-4de0-8523-4bded3f4ef02.webp?v=1714888506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a21ebfc114ddf18a35bb3b7940607be7ce880dd_4928d67c-0c65-4de0-8523-4bded3f4ef02.webp?v=1714888506","width":2000},{"alt":null,"id":23889677811811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98cae32073b81ccaa00d513c0b6dbe452d2bcb30_989f8261-a429-41ca-82d0-0ff32fd74421.webp?v=1714888508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98cae32073b81ccaa00d513c0b6dbe452d2bcb30_989f8261-a429-41ca-82d0-0ff32fd74421.webp?v=1714888508","width":2000},{"alt":null,"id":23889678270563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902954053731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484384378979,"product_id":7413981020259,"position":10,"created_at":"2024-05-05T13:55:11+08:00","updated_at":"2024-05-05T13:55:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511","variant_ids":[41902954053731]},"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-PC09","featured_media":{"alt":null,"id":23889678270563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902954119267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383952995,"product_id":7413981020259,"position":9,"created_at":"2024-05-05T13:55:08+08:00","updated_at":"2024-05-05T13:55:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98cae32073b81ccaa00d513c0b6dbe452d2bcb30_989f8261-a429-41ca-82d0-0ff32fd74421.webp?v=1714888508","variant_ids":[41902954119267]},"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-PC09","featured_media":{"alt":null,"id":23889677811811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98cae32073b81ccaa00d513c0b6dbe452d2bcb30_989f8261-a429-41ca-82d0-0ff32fd74421.webp?v=1714888508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902954348643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484379856995,"product_id":7413981020259,"position":1,"created_at":"2024-05-05T13:54:50+08:00","updated_at":"2024-05-05T13:54:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490","variant_ids":[41902954348643]},"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-PC09","featured_media":{"alt":null,"id":23889673781347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814afbfba149d7da8269e99b344bb53c03f924d6_2b9291f1-0e5e-4833-a77e-4b5931623e01.webp?v=1714888490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902954053731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484384378979,"product_id":7413981020259,"position":10,"created_at":"2024-05-05T13:55:11+08:00","updated_at":"2024-05-05T13:55:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511","variant_ids":[41902954053731]},"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-PC09","featured_media":{"alt":null,"id":23889678270563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3168712c53424cc5dd410f11f52bf01ef1ab67cb_94a11dd1-1059-474c-9637-8233df3f6c0d.webp?v=1714888511"}},"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: "停產"
}