$product = {"id":7408191766627,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列","handle":"iphone-13-mini-mod-nx-printable-pc10","description":null,"published_at":"2024-06-11T16:33:52+08:00","created_at":"2024-05-03T12:17:52+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":41883692826723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471434530915,"product_id":7408191766627,"position":9,"created_at":"2024-05-03T12:18:12+08:00","updated_at":"2024-05-03T12:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892","variant_ids":[41883692826723]},"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-PC10","featured_media":{"alt":null,"id":23876340809827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883692892259,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471435022435,"product_id":7408191766627,"position":10,"created_at":"2024-05-03T12:18:14+08:00","updated_at":"2024-05-03T12:18:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42829a4721bd2b8c26f90a1deed40ecbd61b5fe2_247ee80b-d319-4861-a903-3ebf78029a80.webp?v=1714709894","variant_ids":[41883692892259]},"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-PC10","featured_media":{"alt":null,"id":23876341334115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42829a4721bd2b8c26f90a1deed40ecbd61b5fe2_247ee80b-d319-4861-a903-3ebf78029a80.webp?v=1714709894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883693121635,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471433023587,"product_id":7408191766627,"position":6,"created_at":"2024-05-03T12:18:05+08:00","updated_at":"2024-05-03T12:18:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed3ab3d3a9589ceceecd89542da559a652e773c_46cfc989-1a18-4861-a753-531eeb6a6871.webp?v=1714709885","variant_ids":[41883693121635]},"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-PC10","featured_media":{"alt":null,"id":23876339335267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed3ab3d3a9589ceceecd89542da559a652e773c_46cfc989-1a18-4861-a753-531eeb6a6871.webp?v=1714709885"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5fb531f41534d5d9c621f0a3cd412cf577698c5_6e1efde2-a4bb-4e6b-b38f-587d4742cb73.webp?v=1714709874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e20e85e523cebc528b9872e60c4b41387482717_c7757851-306c-420d-85a5-16a6193d444e.webp?v=1714709876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c51df97cacd264e98b1ec304bd357285d077c_6b1fd96a-6454-4fd7-871b-e498b9299b31.webp?v=1714709878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/050a1d7cd0098c5dd60e21e30f3f9ca7e34801cf_40195de0-e3e4-4a8b-8722-a080f821c22a.webp?v=1714709881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/069ee6ec0489464ecb88b6d1d41ee707de0473a8_10b70ae8-313b-4d0c-945f-62eaf96c8342.webp?v=1714709883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed3ab3d3a9589ceceecd89542da559a652e773c_46cfc989-1a18-4861-a753-531eeb6a6871.webp?v=1714709885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb5e21fc428f7d9f20592e7c0edadac4a08914f4_596d695d-5db5-4f47-96cc-58002b4f5d15.webp?v=1714709887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c72d8dfa1166d5c312c3143d97d3af0fbc081ff_17c253bd-5ec5-40d1-a1ac-737c71332862.webp?v=1714709890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42829a4721bd2b8c26f90a1deed40ecbd61b5fe2_247ee80b-d319-4861-a903-3ebf78029a80.webp?v=1714709894"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5fb531f41534d5d9c621f0a3cd412cf577698c5_6e1efde2-a4bb-4e6b-b38f-587d4742cb73.webp?v=1714709874","options":["color"],"media":[{"alt":null,"id":23876336255075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5fb531f41534d5d9c621f0a3cd412cf577698c5_6e1efde2-a4bb-4e6b-b38f-587d4742cb73.webp?v=1714709874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5fb531f41534d5d9c621f0a3cd412cf577698c5_6e1efde2-a4bb-4e6b-b38f-587d4742cb73.webp?v=1714709874","width":2000},{"alt":null,"id":23876336812131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e20e85e523cebc528b9872e60c4b41387482717_c7757851-306c-420d-85a5-16a6193d444e.webp?v=1714709876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e20e85e523cebc528b9872e60c4b41387482717_c7757851-306c-420d-85a5-16a6193d444e.webp?v=1714709876","width":2000},{"alt":null,"id":23876337107043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c51df97cacd264e98b1ec304bd357285d077c_6b1fd96a-6454-4fd7-871b-e498b9299b31.webp?v=1714709878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/504c51df97cacd264e98b1ec304bd357285d077c_6b1fd96a-6454-4fd7-871b-e498b9299b31.webp?v=1714709878","width":2000},{"alt":null,"id":23876337762403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/050a1d7cd0098c5dd60e21e30f3f9ca7e34801cf_40195de0-e3e4-4a8b-8722-a080f821c22a.webp?v=1714709881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/050a1d7cd0098c5dd60e21e30f3f9ca7e34801cf_40195de0-e3e4-4a8b-8722-a080f821c22a.webp?v=1714709881","width":2000},{"alt":null,"id":23876338188387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/069ee6ec0489464ecb88b6d1d41ee707de0473a8_10b70ae8-313b-4d0c-945f-62eaf96c8342.webp?v=1714709883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/069ee6ec0489464ecb88b6d1d41ee707de0473a8_10b70ae8-313b-4d0c-945f-62eaf96c8342.webp?v=1714709883","width":2000},{"alt":null,"id":23876339335267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed3ab3d3a9589ceceecd89542da559a652e773c_46cfc989-1a18-4861-a753-531eeb6a6871.webp?v=1714709885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed3ab3d3a9589ceceecd89542da559a652e773c_46cfc989-1a18-4861-a753-531eeb6a6871.webp?v=1714709885","width":2000},{"alt":null,"id":23876339826787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb5e21fc428f7d9f20592e7c0edadac4a08914f4_596d695d-5db5-4f47-96cc-58002b4f5d15.webp?v=1714709887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb5e21fc428f7d9f20592e7c0edadac4a08914f4_596d695d-5db5-4f47-96cc-58002b4f5d15.webp?v=1714709887","width":2000},{"alt":null,"id":23876340318307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c72d8dfa1166d5c312c3143d97d3af0fbc081ff_17c253bd-5ec5-40d1-a1ac-737c71332862.webp?v=1714709890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c72d8dfa1166d5c312c3143d97d3af0fbc081ff_17c253bd-5ec5-40d1-a1ac-737c71332862.webp?v=1714709890","width":2000},{"alt":null,"id":23876340809827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892","width":2000},{"alt":null,"id":23876341334115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42829a4721bd2b8c26f90a1deed40ecbd61b5fe2_247ee80b-d319-4861-a903-3ebf78029a80.webp?v=1714709894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42829a4721bd2b8c26f90a1deed40ecbd61b5fe2_247ee80b-d319-4861-a903-3ebf78029a80.webp?v=1714709894","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883692826723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471434530915,"product_id":7408191766627,"position":9,"created_at":"2024-05-03T12:18:12+08:00","updated_at":"2024-05-03T12:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892","variant_ids":[41883692826723]},"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-PC10","featured_media":{"alt":null,"id":23876340809827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883692892259,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471435022435,"product_id":7408191766627,"position":10,"created_at":"2024-05-03T12:18:14+08:00","updated_at":"2024-05-03T12:18:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42829a4721bd2b8c26f90a1deed40ecbd61b5fe2_247ee80b-d319-4861-a903-3ebf78029a80.webp?v=1714709894","variant_ids":[41883692892259]},"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-PC10","featured_media":{"alt":null,"id":23876341334115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42829a4721bd2b8c26f90a1deed40ecbd61b5fe2_247ee80b-d319-4861-a903-3ebf78029a80.webp?v=1714709894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883693121635,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471433023587,"product_id":7408191766627,"position":6,"created_at":"2024-05-03T12:18:05+08:00","updated_at":"2024-05-03T12:18:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed3ab3d3a9589ceceecd89542da559a652e773c_46cfc989-1a18-4861-a753-531eeb6a6871.webp?v=1714709885","variant_ids":[41883693121635]},"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-PC10","featured_media":{"alt":null,"id":23876339335267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eed3ab3d3a9589ceceecd89542da559a652e773c_46cfc989-1a18-4861-a753-531eeb6a6871.webp?v=1714709885"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883692826723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31471434530915,"product_id":7408191766627,"position":9,"created_at":"2024-05-03T12:18:12+08:00","updated_at":"2024-05-03T12:18:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892","variant_ids":[41883692826723]},"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-PC10","featured_media":{"alt":null,"id":23876340809827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da91a3b93acf43194719de60da4a7f5977a72cce_bcaffa7e-0ae8-4def-a4ce-6ee31e7e535d.webp?v=1714709892"}},"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: "停產"
}