$product = {"id":7407666167907,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-14-pro-mod-nx-printable-pb100","description":null,"published_at":"2024-06-11T16:21:43+08:00","created_at":"2024-05-03T10:39:19+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":41877390622819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470184431715,"product_id":7407666167907,"position":9,"created_at":"2024-05-03T10:39:42+08:00","updated_at":"2024-05-03T10:39:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982","variant_ids":[41877390622819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰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-PB100","featured_media":{"alt":null,"id":23875087433827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877390688355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470180008035,"product_id":7407666167907,"position":2,"created_at":"2024-05-03T10:39:25+08:00","updated_at":"2024-05-03T10:39:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767bda0d315f71127f23cdb72eb4452e3bc5338_f4bdc1c1-11ee-471f-9cf6-ddcefaed3593.webp?v=1714703965","variant_ids":[41877390688355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰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-PB100","featured_media":{"alt":null,"id":23875083010147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767bda0d315f71127f23cdb72eb4452e3bc5338_f4bdc1c1-11ee-471f-9cf6-ddcefaed3593.webp?v=1714703965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877390983267,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470183120995,"product_id":7407666167907,"position":7,"created_at":"2024-05-03T10:39:37+08:00","updated_at":"2024-05-03T10:39:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1139350ef465c45be2d9c8e97125ab9c9b4880f4_dc38ca07-d5af-49e2-9559-688a82d5d85c.webp?v=1714703977","variant_ids":[41877390983267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰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-PB100","featured_media":{"alt":null,"id":23875086123107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1139350ef465c45be2d9c8e97125ab9c9b4880f4_dc38ca07-d5af-49e2-9559-688a82d5d85c.webp?v=1714703977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0affd7cb80c674e445d055acda080f8dbf431364_93b9f57d-55c0-4bde-b726-f0ba5a00af69.webp?v=1714703963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767bda0d315f71127f23cdb72eb4452e3bc5338_f4bdc1c1-11ee-471f-9cf6-ddcefaed3593.webp?v=1714703965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a49464308dcca45d147159d6fbd42749d60991e1_96fe5d1f-d8a9-4ab2-92dd-e1b51cf337d1.webp?v=1714703968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04221e175951353b6b76372e932947ba682fa2d6_2bc8a32b-0eb2-4498-b823-441a9f8e08fa.webp?v=1714703970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b8fbc22bcee6a80b773bb766cc50b67db088107_90d83516-7dd8-415f-ad53-24da9bf90c02.webp?v=1714703973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fa85c20dafdd29c803e012724bca4f6effc142_a286286b-a0f6-4163-8882-f8b95aa16701.webp?v=1714703975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1139350ef465c45be2d9c8e97125ab9c9b4880f4_dc38ca07-d5af-49e2-9559-688a82d5d85c.webp?v=1714703977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8b0f33e4ad33ffaf5606bd730ae0bd12fcd90ac_db42d837-6a7e-4877-83f1-5b0ba37fc0bb.webp?v=1714703980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2bef52e7afa00e7541188a7eaf6756999aad63_e42520e5-62f2-484a-ab54-94e1be05d326.webp?v=1714703985"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0affd7cb80c674e445d055acda080f8dbf431364_93b9f57d-55c0-4bde-b726-f0ba5a00af69.webp?v=1714703963","options":["color"],"media":[{"alt":null,"id":23875082289251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0affd7cb80c674e445d055acda080f8dbf431364_93b9f57d-55c0-4bde-b726-f0ba5a00af69.webp?v=1714703963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0affd7cb80c674e445d055acda080f8dbf431364_93b9f57d-55c0-4bde-b726-f0ba5a00af69.webp?v=1714703963","width":2000},{"alt":null,"id":23875083010147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767bda0d315f71127f23cdb72eb4452e3bc5338_f4bdc1c1-11ee-471f-9cf6-ddcefaed3593.webp?v=1714703965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767bda0d315f71127f23cdb72eb4452e3bc5338_f4bdc1c1-11ee-471f-9cf6-ddcefaed3593.webp?v=1714703965","width":2000},{"alt":null,"id":23875083468899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a49464308dcca45d147159d6fbd42749d60991e1_96fe5d1f-d8a9-4ab2-92dd-e1b51cf337d1.webp?v=1714703968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a49464308dcca45d147159d6fbd42749d60991e1_96fe5d1f-d8a9-4ab2-92dd-e1b51cf337d1.webp?v=1714703968","width":2000},{"alt":null,"id":23875084189795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04221e175951353b6b76372e932947ba682fa2d6_2bc8a32b-0eb2-4498-b823-441a9f8e08fa.webp?v=1714703970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04221e175951353b6b76372e932947ba682fa2d6_2bc8a32b-0eb2-4498-b823-441a9f8e08fa.webp?v=1714703970","width":2000},{"alt":null,"id":23875085041763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b8fbc22bcee6a80b773bb766cc50b67db088107_90d83516-7dd8-415f-ad53-24da9bf90c02.webp?v=1714703973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b8fbc22bcee6a80b773bb766cc50b67db088107_90d83516-7dd8-415f-ad53-24da9bf90c02.webp?v=1714703973","width":2000},{"alt":null,"id":23875085402211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fa85c20dafdd29c803e012724bca4f6effc142_a286286b-a0f6-4163-8882-f8b95aa16701.webp?v=1714703975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fa85c20dafdd29c803e012724bca4f6effc142_a286286b-a0f6-4163-8882-f8b95aa16701.webp?v=1714703975","width":2000},{"alt":null,"id":23875086123107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1139350ef465c45be2d9c8e97125ab9c9b4880f4_dc38ca07-d5af-49e2-9559-688a82d5d85c.webp?v=1714703977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1139350ef465c45be2d9c8e97125ab9c9b4880f4_dc38ca07-d5af-49e2-9559-688a82d5d85c.webp?v=1714703977","width":2000},{"alt":null,"id":23875086680163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8b0f33e4ad33ffaf5606bd730ae0bd12fcd90ac_db42d837-6a7e-4877-83f1-5b0ba37fc0bb.webp?v=1714703980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8b0f33e4ad33ffaf5606bd730ae0bd12fcd90ac_db42d837-6a7e-4877-83f1-5b0ba37fc0bb.webp?v=1714703980","width":2000},{"alt":null,"id":23875087433827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982","width":2000},{"alt":null,"id":23875087990883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2bef52e7afa00e7541188a7eaf6756999aad63_e42520e5-62f2-484a-ab54-94e1be05d326.webp?v=1714703985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2bef52e7afa00e7541188a7eaf6756999aad63_e42520e5-62f2-484a-ab54-94e1be05d326.webp?v=1714703985","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41877390622819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470184431715,"product_id":7407666167907,"position":9,"created_at":"2024-05-03T10:39:42+08:00","updated_at":"2024-05-03T10:39:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982","variant_ids":[41877390622819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰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-PB100","featured_media":{"alt":null,"id":23875087433827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877390688355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470180008035,"product_id":7407666167907,"position":2,"created_at":"2024-05-03T10:39:25+08:00","updated_at":"2024-05-03T10:39:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767bda0d315f71127f23cdb72eb4452e3bc5338_f4bdc1c1-11ee-471f-9cf6-ddcefaed3593.webp?v=1714703965","variant_ids":[41877390688355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰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-PB100","featured_media":{"alt":null,"id":23875083010147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3767bda0d315f71127f23cdb72eb4452e3bc5338_f4bdc1c1-11ee-471f-9cf6-ddcefaed3593.webp?v=1714703965"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877390983267,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470183120995,"product_id":7407666167907,"position":7,"created_at":"2024-05-03T10:39:37+08:00","updated_at":"2024-05-03T10:39:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1139350ef465c45be2d9c8e97125ab9c9b4880f4_dc38ca07-d5af-49e2-9559-688a82d5d85c.webp?v=1714703977","variant_ids":[41877390983267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰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-PB100","featured_media":{"alt":null,"id":23875086123107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1139350ef465c45be2d9c8e97125ab9c9b4880f4_dc38ca07-d5af-49e2-9559-688a82d5d85c.webp?v=1714703977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41877390622819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31470184431715,"product_id":7407666167907,"position":9,"created_at":"2024-05-03T10:39:42+08:00","updated_at":"2024-05-03T10:39:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982","variant_ids":[41877390622819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰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-PB100","featured_media":{"alt":null,"id":23875087433827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f214255827ce65cecbc990bc60279a9b52a3a584_206f84f8-a0a0-49a2-befe-3ca356d75e89.webp?v=1714703982"}},"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: "停產"
}