$product = {"id":7408155918435,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑","handle":"iphone-13-mini-mod-nx-printable-pb05","description":null,"published_at":"2024-06-11T16:32:54+08:00","created_at":"2024-05-03T12:10: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":41883295416419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471336161379,"product_id":7408155918435,"position":3,"created_at":"2024-05-03T12:10:58+08:00","updated_at":"2024-05-03T12:10:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458","variant_ids":[41883295416419]},"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-PB05","featured_media":{"alt":null,"id":23876242014307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883295481955,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471339831395,"product_id":7408155918435,"position":10,"created_at":"2024-05-03T12:11:14+08:00","updated_at":"2024-05-03T12:11:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f38cd068d34fb90567b5223fed3a320d8c3ec3_805063ba-f24c-458f-b48f-449131111c78.webp?v=1714709474","variant_ids":[41883295481955]},"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-PB05","featured_media":{"alt":null,"id":23876245684323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f38cd068d34fb90567b5223fed3a320d8c3ec3_805063ba-f24c-458f-b48f-449131111c78.webp?v=1714709474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883295711331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471337898083,"product_id":7408155918435,"position":6,"created_at":"2024-05-03T12:11:05+08:00","updated_at":"2024-05-03T12:11:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17731389c3050f401aa89c13cb694e0de6e516a_ecf47143-86ed-4cbe-8d84-de3073640c85.webp?v=1714709465","variant_ids":[41883295711331]},"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-PB05","featured_media":{"alt":null,"id":23876243783779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17731389c3050f401aa89c13cb694e0de6e516a_ecf47143-86ed-4cbe-8d84-de3073640c85.webp?v=1714709465"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/439020ab116bb1a851e4214f4d41d87312abf7ae_963353c8-692f-46b5-8cce-5ded8b204948.webp?v=1714709453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84daa46e2d8c1c073fafa4a8a3f5b0ca66a6ac3f_ec1da18d-3060-44a4-8f98-c806a7eae71d.webp?v=1714709456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c85b121ea2e4ec74d0b8ea9a070fadd3b8a8693_2a15451d-7bd6-48e5-a4ce-0aadb2dde05b.webp?v=1714709460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f4a62fd50fe646538c4dbd476aee5eadb00220_2ee12654-12fe-423a-8e59-c20c2a5c2ce6.webp?v=1714709463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17731389c3050f401aa89c13cb694e0de6e516a_ecf47143-86ed-4cbe-8d84-de3073640c85.webp?v=1714709465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc931d722d392318ac4f386284a861bbf88448b_02cb964d-70f3-4dd0-ba6e-24172dcb256e.webp?v=1714709467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e198f7b7d6f62593b13a0c23c6c04eb8ca879a22_d49b13bb-4cad-40a2-84d6-a9360b3589b0.webp?v=1714709469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1081086e135f13b392d73128722c79c69887bc6d_0dfa82f0-b06f-47e8-bdb6-5394deeeaff6.webp?v=1714709472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f38cd068d34fb90567b5223fed3a320d8c3ec3_805063ba-f24c-458f-b48f-449131111c78.webp?v=1714709474"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/439020ab116bb1a851e4214f4d41d87312abf7ae_963353c8-692f-46b5-8cce-5ded8b204948.webp?v=1714709453","options":["color"],"media":[{"alt":null,"id":23876240965731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/439020ab116bb1a851e4214f4d41d87312abf7ae_963353c8-692f-46b5-8cce-5ded8b204948.webp?v=1714709453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/439020ab116bb1a851e4214f4d41d87312abf7ae_963353c8-692f-46b5-8cce-5ded8b204948.webp?v=1714709453","width":2000},{"alt":null,"id":23876241424483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84daa46e2d8c1c073fafa4a8a3f5b0ca66a6ac3f_ec1da18d-3060-44a4-8f98-c806a7eae71d.webp?v=1714709456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84daa46e2d8c1c073fafa4a8a3f5b0ca66a6ac3f_ec1da18d-3060-44a4-8f98-c806a7eae71d.webp?v=1714709456","width":2000},{"alt":null,"id":23876242014307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458","width":2000},{"alt":null,"id":23876242440291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c85b121ea2e4ec74d0b8ea9a070fadd3b8a8693_2a15451d-7bd6-48e5-a4ce-0aadb2dde05b.webp?v=1714709460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c85b121ea2e4ec74d0b8ea9a070fadd3b8a8693_2a15451d-7bd6-48e5-a4ce-0aadb2dde05b.webp?v=1714709460","width":2000},{"alt":null,"id":23876243226723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f4a62fd50fe646538c4dbd476aee5eadb00220_2ee12654-12fe-423a-8e59-c20c2a5c2ce6.webp?v=1714709463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f4a62fd50fe646538c4dbd476aee5eadb00220_2ee12654-12fe-423a-8e59-c20c2a5c2ce6.webp?v=1714709463","width":2000},{"alt":null,"id":23876243783779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17731389c3050f401aa89c13cb694e0de6e516a_ecf47143-86ed-4cbe-8d84-de3073640c85.webp?v=1714709465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17731389c3050f401aa89c13cb694e0de6e516a_ecf47143-86ed-4cbe-8d84-de3073640c85.webp?v=1714709465","width":2000},{"alt":null,"id":23876244242531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc931d722d392318ac4f386284a861bbf88448b_02cb964d-70f3-4dd0-ba6e-24172dcb256e.webp?v=1714709467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc931d722d392318ac4f386284a861bbf88448b_02cb964d-70f3-4dd0-ba6e-24172dcb256e.webp?v=1714709467","width":2000},{"alt":null,"id":23876244734051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e198f7b7d6f62593b13a0c23c6c04eb8ca879a22_d49b13bb-4cad-40a2-84d6-a9360b3589b0.webp?v=1714709469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e198f7b7d6f62593b13a0c23c6c04eb8ca879a22_d49b13bb-4cad-40a2-84d6-a9360b3589b0.webp?v=1714709469","width":2000},{"alt":null,"id":23876245258339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1081086e135f13b392d73128722c79c69887bc6d_0dfa82f0-b06f-47e8-bdb6-5394deeeaff6.webp?v=1714709472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1081086e135f13b392d73128722c79c69887bc6d_0dfa82f0-b06f-47e8-bdb6-5394deeeaff6.webp?v=1714709472","width":2000},{"alt":null,"id":23876245684323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f38cd068d34fb90567b5223fed3a320d8c3ec3_805063ba-f24c-458f-b48f-449131111c78.webp?v=1714709474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f38cd068d34fb90567b5223fed3a320d8c3ec3_805063ba-f24c-458f-b48f-449131111c78.webp?v=1714709474","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883295416419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471336161379,"product_id":7408155918435,"position":3,"created_at":"2024-05-03T12:10:58+08:00","updated_at":"2024-05-03T12:10:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458","variant_ids":[41883295416419]},"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-PB05","featured_media":{"alt":null,"id":23876242014307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883295481955,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471339831395,"product_id":7408155918435,"position":10,"created_at":"2024-05-03T12:11:14+08:00","updated_at":"2024-05-03T12:11:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f38cd068d34fb90567b5223fed3a320d8c3ec3_805063ba-f24c-458f-b48f-449131111c78.webp?v=1714709474","variant_ids":[41883295481955]},"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-PB05","featured_media":{"alt":null,"id":23876245684323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f38cd068d34fb90567b5223fed3a320d8c3ec3_805063ba-f24c-458f-b48f-449131111c78.webp?v=1714709474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883295711331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471337898083,"product_id":7408155918435,"position":6,"created_at":"2024-05-03T12:11:05+08:00","updated_at":"2024-05-03T12:11:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17731389c3050f401aa89c13cb694e0de6e516a_ecf47143-86ed-4cbe-8d84-de3073640c85.webp?v=1714709465","variant_ids":[41883295711331]},"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-PB05","featured_media":{"alt":null,"id":23876243783779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17731389c3050f401aa89c13cb694e0de6e516a_ecf47143-86ed-4cbe-8d84-de3073640c85.webp?v=1714709465"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883295416419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31471336161379,"product_id":7408155918435,"position":3,"created_at":"2024-05-03T12:10:58+08:00","updated_at":"2024-05-03T12:10:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458","variant_ids":[41883295416419]},"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-PB05","featured_media":{"alt":null,"id":23876242014307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f8b50561cdb25e6f6fdb884d30a0c0bb987d9_0ca86416-deb6-440b-974d-c5ba3939acf1.webp?v=1714709458"}},"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: "停產"
}