$product = {"id":7408233447523,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-13-mini-mod-nx-printable-pc08","description":null,"published_at":"2024-06-11T16:34:57+08:00","created_at":"2024-05-03T12:25:51+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":41884140568675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471541551203,"product_id":7408233447523,"position":10,"created_at":"2024-05-03T12:26:14+08:00","updated_at":"2024-05-03T12:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374","variant_ids":[41884140568675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PC08","featured_media":{"alt":null,"id":23876448256099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884140634211,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471537881187,"product_id":7408233447523,"position":3,"created_at":"2024-05-03T12:25:58+08:00","updated_at":"2024-05-03T12:25:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e21df172c0e2a22ff56b5b5349c591e1dfc322_d3af045e-8fd9-497a-bb9c-602982164ebd.webp?v=1714710358","variant_ids":[41884140634211]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PC08","featured_media":{"alt":null,"id":23876444553315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e21df172c0e2a22ff56b5b5349c591e1dfc322_d3af045e-8fd9-497a-bb9c-602982164ebd.webp?v=1714710358"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884140863587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471538995299,"product_id":7408233447523,"position":5,"created_at":"2024-05-03T12:26:03+08:00","updated_at":"2024-05-03T12:26:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806ee5b5b3f92aeb454d27cd9b53b1e83c5139bc_d569f329-c52d-47f6-bc68-3708afa3a874.webp?v=1714710363","variant_ids":[41884140863587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PC08","featured_media":{"alt":null,"id":23876445667427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806ee5b5b3f92aeb454d27cd9b53b1e83c5139bc_d569f329-c52d-47f6-bc68-3708afa3a874.webp?v=1714710363"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf440616b2c35049035e492c0cada42fd3add8_9a79e5f9-4133-4053-ac08-cc6943bd34ff.webp?v=1714710353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbfcddcce2b9c38ffb5d584390dd1ce0ecc01868_4c520a0e-1435-4f58-a814-8d36de03ac08.webp?v=1714710356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e21df172c0e2a22ff56b5b5349c591e1dfc322_d3af045e-8fd9-497a-bb9c-602982164ebd.webp?v=1714710358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49bd1028ec235ddb7acda138e0ef4bba0b182b3d_95548639-ef8d-4eef-bec6-e4a1e1bb96e9.webp?v=1714710360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806ee5b5b3f92aeb454d27cd9b53b1e83c5139bc_d569f329-c52d-47f6-bc68-3708afa3a874.webp?v=1714710363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c851df3fd8b0a61052c2a950715a9ea6e06aa4ae_55effdc6-04cd-4a47-a03f-0b2dd5423797.webp?v=1714710365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61a541c1db2e9893ccf16d286989d613483d6a7c_024df696-476b-45fa-8ce6-c15cbb5008f7.webp?v=1714710367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a029078cd35800e05a658660b665d58473a9f4f2_7e216f02-9c10-4dba-ba30-9e22ccb3dc64.webp?v=1714710370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d5500a6a7c4363556651c00f5bda6d1669b36c_169fd0fe-d1f0-4b1d-829d-b1167bd11bb5.webp?v=1714710372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf440616b2c35049035e492c0cada42fd3add8_9a79e5f9-4133-4053-ac08-cc6943bd34ff.webp?v=1714710353","options":["color"],"media":[{"alt":null,"id":23876443570275,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf440616b2c35049035e492c0cada42fd3add8_9a79e5f9-4133-4053-ac08-cc6943bd34ff.webp?v=1714710353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56cf440616b2c35049035e492c0cada42fd3add8_9a79e5f9-4133-4053-ac08-cc6943bd34ff.webp?v=1714710353","width":2000},{"alt":null,"id":23876443963491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbfcddcce2b9c38ffb5d584390dd1ce0ecc01868_4c520a0e-1435-4f58-a814-8d36de03ac08.webp?v=1714710356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbfcddcce2b9c38ffb5d584390dd1ce0ecc01868_4c520a0e-1435-4f58-a814-8d36de03ac08.webp?v=1714710356","width":2000},{"alt":null,"id":23876444553315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e21df172c0e2a22ff56b5b5349c591e1dfc322_d3af045e-8fd9-497a-bb9c-602982164ebd.webp?v=1714710358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e21df172c0e2a22ff56b5b5349c591e1dfc322_d3af045e-8fd9-497a-bb9c-602982164ebd.webp?v=1714710358","width":2000},{"alt":null,"id":23876444979299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49bd1028ec235ddb7acda138e0ef4bba0b182b3d_95548639-ef8d-4eef-bec6-e4a1e1bb96e9.webp?v=1714710360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49bd1028ec235ddb7acda138e0ef4bba0b182b3d_95548639-ef8d-4eef-bec6-e4a1e1bb96e9.webp?v=1714710360","width":2000},{"alt":null,"id":23876445667427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806ee5b5b3f92aeb454d27cd9b53b1e83c5139bc_d569f329-c52d-47f6-bc68-3708afa3a874.webp?v=1714710363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806ee5b5b3f92aeb454d27cd9b53b1e83c5139bc_d569f329-c52d-47f6-bc68-3708afa3a874.webp?v=1714710363","width":2000},{"alt":null,"id":23876446224483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c851df3fd8b0a61052c2a950715a9ea6e06aa4ae_55effdc6-04cd-4a47-a03f-0b2dd5423797.webp?v=1714710365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c851df3fd8b0a61052c2a950715a9ea6e06aa4ae_55effdc6-04cd-4a47-a03f-0b2dd5423797.webp?v=1714710365","width":2000},{"alt":null,"id":23876446814307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61a541c1db2e9893ccf16d286989d613483d6a7c_024df696-476b-45fa-8ce6-c15cbb5008f7.webp?v=1714710367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61a541c1db2e9893ccf16d286989d613483d6a7c_024df696-476b-45fa-8ce6-c15cbb5008f7.webp?v=1714710367","width":2000},{"alt":null,"id":23876447338595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a029078cd35800e05a658660b665d58473a9f4f2_7e216f02-9c10-4dba-ba30-9e22ccb3dc64.webp?v=1714710370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a029078cd35800e05a658660b665d58473a9f4f2_7e216f02-9c10-4dba-ba30-9e22ccb3dc64.webp?v=1714710370","width":2000},{"alt":null,"id":23876447862883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d5500a6a7c4363556651c00f5bda6d1669b36c_169fd0fe-d1f0-4b1d-829d-b1167bd11bb5.webp?v=1714710372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4d5500a6a7c4363556651c00f5bda6d1669b36c_169fd0fe-d1f0-4b1d-829d-b1167bd11bb5.webp?v=1714710372","width":2000},{"alt":null,"id":23876448256099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41884140568675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471541551203,"product_id":7408233447523,"position":10,"created_at":"2024-05-03T12:26:14+08:00","updated_at":"2024-05-03T12:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374","variant_ids":[41884140568675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PC08","featured_media":{"alt":null,"id":23876448256099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884140634211,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471537881187,"product_id":7408233447523,"position":3,"created_at":"2024-05-03T12:25:58+08:00","updated_at":"2024-05-03T12:25:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e21df172c0e2a22ff56b5b5349c591e1dfc322_d3af045e-8fd9-497a-bb9c-602982164ebd.webp?v=1714710358","variant_ids":[41884140634211]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PC08","featured_media":{"alt":null,"id":23876444553315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80e21df172c0e2a22ff56b5b5349c591e1dfc322_d3af045e-8fd9-497a-bb9c-602982164ebd.webp?v=1714710358"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884140863587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471538995299,"product_id":7408233447523,"position":5,"created_at":"2024-05-03T12:26:03+08:00","updated_at":"2024-05-03T12:26:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806ee5b5b3f92aeb454d27cd9b53b1e83c5139bc_d569f329-c52d-47f6-bc68-3708afa3a874.webp?v=1714710363","variant_ids":[41884140863587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PC08","featured_media":{"alt":null,"id":23876445667427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806ee5b5b3f92aeb454d27cd9b53b1e83c5139bc_d569f329-c52d-47f6-bc68-3708afa3a874.webp?v=1714710363"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41884140568675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471541551203,"product_id":7408233447523,"position":10,"created_at":"2024-05-03T12:26:14+08:00","updated_at":"2024-05-03T12:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374","variant_ids":[41884140568675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PC08","featured_media":{"alt":null,"id":23876448256099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67c2df7ac945c49e078654bd21245f0cbb508c1a_4e9a8732-49ce-499d-8525-d4ceb3b636db.webp?v=1714710374"}},"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: "停產"
}