$product = {"id":7413956640867,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-潮流系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb42","description":null,"published_at":"2024-06-11T17:46:05+08:00","created_at":"2024-05-05T13:49:54+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":41902663368803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484318810211,"product_id":7413956640867,"position":7,"created_at":"2024-05-05T13:50:11+08:00","updated_at":"2024-05-05T13:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211","variant_ids":[41902663368803]},"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-PB42","featured_media":{"alt":null,"id":23889612472419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902663499875,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484318351459,"product_id":7413956640867,"position":6,"created_at":"2024-05-05T13:50:08+08:00","updated_at":"2024-05-05T13:50:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872816909ddf31a9742b4238d4f9b53d373b4240_69dde1ea-c635-4241-9ab8-ae5a5ee81e22.webp?v=1714888208","variant_ids":[41902663499875]},"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-PB42","featured_media":{"alt":null,"id":23889612046435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872816909ddf31a9742b4238d4f9b53d373b4240_69dde1ea-c635-4241-9ab8-ae5a5ee81e22.webp?v=1714888208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902663827555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484317335651,"product_id":7413956640867,"position":4,"created_at":"2024-05-05T13:50:04+08:00","updated_at":"2024-05-05T13:50:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3691189964fc4dc60a24c07cdc345813d6b5040_716169e9-50a3-408b-bc57-707c78d388d3.webp?v=1714888204","variant_ids":[41902663827555]},"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-PB42","featured_media":{"alt":null,"id":23889611030627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3691189964fc4dc60a24c07cdc345813d6b5040_716169e9-50a3-408b-bc57-707c78d388d3.webp?v=1714888204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a8d586879a936e8697bb0e87579f460836065d3_f917cbca-6f6e-47a2-959a-ea65cb2bec14.webp?v=1714888197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55167a65f85e3ac121013fdc45dd1d3249de4360_264ae1b4-5534-4902-9b0a-7f3fb81430b5.webp?v=1714888199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cd3c1f105c36a7324f5aa82e35a54d3371390f_7eb896d2-c3a2-42a3-88f0-3b4286f2284b.webp?v=1714888201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3691189964fc4dc60a24c07cdc345813d6b5040_716169e9-50a3-408b-bc57-707c78d388d3.webp?v=1714888204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6b111536d3e47d6588128bdf3a263b6e38932c_d8c1842d-8baa-4660-814f-8bd9595151ba.webp?v=1714888206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872816909ddf31a9742b4238d4f9b53d373b4240_69dde1ea-c635-4241-9ab8-ae5a5ee81e22.webp?v=1714888208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a11624cb667b7839840aa228db1efa3982ea2e9a_52f65d40-a768-4fcd-accd-b9117e404be9.webp?v=1714888213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cde2a7976a543e0034921827c84c63c285d931c_5dc6c0d0-69f6-43cd-838f-b7b20a1eac7c.webp?v=1714888216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0377a2755c2a3fb4bcd9fe8d7e479699c28db209_4542e9fc-3c32-40c2-9df4-7d9fcba370b6.webp?v=1714888218"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a8d586879a936e8697bb0e87579f460836065d3_f917cbca-6f6e-47a2-959a-ea65cb2bec14.webp?v=1714888197","options":["color"],"media":[{"alt":null,"id":23889609457763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a8d586879a936e8697bb0e87579f460836065d3_f917cbca-6f6e-47a2-959a-ea65cb2bec14.webp?v=1714888197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a8d586879a936e8697bb0e87579f460836065d3_f917cbca-6f6e-47a2-959a-ea65cb2bec14.webp?v=1714888197","width":2000},{"alt":null,"id":23889610047587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55167a65f85e3ac121013fdc45dd1d3249de4360_264ae1b4-5534-4902-9b0a-7f3fb81430b5.webp?v=1714888199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55167a65f85e3ac121013fdc45dd1d3249de4360_264ae1b4-5534-4902-9b0a-7f3fb81430b5.webp?v=1714888199","width":2000},{"alt":null,"id":23889610473571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cd3c1f105c36a7324f5aa82e35a54d3371390f_7eb896d2-c3a2-42a3-88f0-3b4286f2284b.webp?v=1714888201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66cd3c1f105c36a7324f5aa82e35a54d3371390f_7eb896d2-c3a2-42a3-88f0-3b4286f2284b.webp?v=1714888201","width":2000},{"alt":null,"id":23889611030627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3691189964fc4dc60a24c07cdc345813d6b5040_716169e9-50a3-408b-bc57-707c78d388d3.webp?v=1714888204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3691189964fc4dc60a24c07cdc345813d6b5040_716169e9-50a3-408b-bc57-707c78d388d3.webp?v=1714888204","width":2000},{"alt":null,"id":23889611423843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6b111536d3e47d6588128bdf3a263b6e38932c_d8c1842d-8baa-4660-814f-8bd9595151ba.webp?v=1714888206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab6b111536d3e47d6588128bdf3a263b6e38932c_d8c1842d-8baa-4660-814f-8bd9595151ba.webp?v=1714888206","width":2000},{"alt":null,"id":23889612046435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872816909ddf31a9742b4238d4f9b53d373b4240_69dde1ea-c635-4241-9ab8-ae5a5ee81e22.webp?v=1714888208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872816909ddf31a9742b4238d4f9b53d373b4240_69dde1ea-c635-4241-9ab8-ae5a5ee81e22.webp?v=1714888208","width":2000},{"alt":null,"id":23889612472419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211","width":2000},{"alt":null,"id":23889612963939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a11624cb667b7839840aa228db1efa3982ea2e9a_52f65d40-a768-4fcd-accd-b9117e404be9.webp?v=1714888213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a11624cb667b7839840aa228db1efa3982ea2e9a_52f65d40-a768-4fcd-accd-b9117e404be9.webp?v=1714888213","width":2000},{"alt":null,"id":23889613422691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cde2a7976a543e0034921827c84c63c285d931c_5dc6c0d0-69f6-43cd-838f-b7b20a1eac7c.webp?v=1714888216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cde2a7976a543e0034921827c84c63c285d931c_5dc6c0d0-69f6-43cd-838f-b7b20a1eac7c.webp?v=1714888216","width":2000},{"alt":null,"id":23889614045283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0377a2755c2a3fb4bcd9fe8d7e479699c28db209_4542e9fc-3c32-40c2-9df4-7d9fcba370b6.webp?v=1714888218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0377a2755c2a3fb4bcd9fe8d7e479699c28db209_4542e9fc-3c32-40c2-9df4-7d9fcba370b6.webp?v=1714888218","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902663368803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484318810211,"product_id":7413956640867,"position":7,"created_at":"2024-05-05T13:50:11+08:00","updated_at":"2024-05-05T13:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211","variant_ids":[41902663368803]},"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-PB42","featured_media":{"alt":null,"id":23889612472419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902663499875,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484318351459,"product_id":7413956640867,"position":6,"created_at":"2024-05-05T13:50:08+08:00","updated_at":"2024-05-05T13:50:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872816909ddf31a9742b4238d4f9b53d373b4240_69dde1ea-c635-4241-9ab8-ae5a5ee81e22.webp?v=1714888208","variant_ids":[41902663499875]},"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-PB42","featured_media":{"alt":null,"id":23889612046435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/872816909ddf31a9742b4238d4f9b53d373b4240_69dde1ea-c635-4241-9ab8-ae5a5ee81e22.webp?v=1714888208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902663827555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484317335651,"product_id":7413956640867,"position":4,"created_at":"2024-05-05T13:50:04+08:00","updated_at":"2024-05-05T13:50:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3691189964fc4dc60a24c07cdc345813d6b5040_716169e9-50a3-408b-bc57-707c78d388d3.webp?v=1714888204","variant_ids":[41902663827555]},"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-PB42","featured_media":{"alt":null,"id":23889611030627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3691189964fc4dc60a24c07cdc345813d6b5040_716169e9-50a3-408b-bc57-707c78d388d3.webp?v=1714888204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902663368803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31484318810211,"product_id":7413956640867,"position":7,"created_at":"2024-05-05T13:50:11+08:00","updated_at":"2024-05-05T13:50:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211","variant_ids":[41902663368803]},"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-PB42","featured_media":{"alt":null,"id":23889612472419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12df8c688689acdc69326e3bc1ce2f3a1f024a2b_2e4d27d7-4e86-4cf3-9427-0e4d8eb1961e.webp?v=1714888211"}},"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: "停產"
}