$product = {"id":7408076849251,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士","handle":"iphone-13-mini-mod-nx-printable-pb109","description":null,"published_at":"2024-06-11T16:30:46+08:00","created_at":"2024-05-03T11:54:48+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":41882409959523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471134048355,"product_id":7408076849251,"position":10,"created_at":"2024-05-03T11:55:14+08:00","updated_at":"2024-05-03T11:55:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514","variant_ids":[41882409959523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876039278691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882410025059,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471129395299,"product_id":7408076849251,"position":3,"created_at":"2024-05-03T11:54:56+08:00","updated_at":"2024-05-03T11:54:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e839d5bf7223bc0fa714a0213a9925e4caed6490_0b45518f-d4ee-4bcd-99fe-759b61ee8e96.webp?v=1714708496","variant_ids":[41882410025059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876034592867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e839d5bf7223bc0fa714a0213a9925e4caed6490_0b45518f-d4ee-4bcd-99fe-759b61ee8e96.webp?v=1714708496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882410254435,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471132999779,"product_id":7408076849251,"position":8,"created_at":"2024-05-03T11:55:09+08:00","updated_at":"2024-05-03T11:55:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3daa60a4041189bc8fbdcbc5cc93bef3eb6bf69_5a08b823-270c-45db-b5b8-85e510097b7c.webp?v=1714708509","variant_ids":[41882410254435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876038230115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3daa60a4041189bc8fbdcbc5cc93bef3eb6bf69_5a08b823-270c-45db-b5b8-85e510097b7c.webp?v=1714708509"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ab5e9c8e2f104ffed70f3a4f21dd10df7e07db_07f88376-ae26-4df3-b883-ad2baa289b88.webp?v=1714708491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b813a598977752e8e471671f821ee3d94615e36b_1e60a581-aeba-47aa-b5c4-60e17fddc088.webp?v=1714708493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e839d5bf7223bc0fa714a0213a9925e4caed6490_0b45518f-d4ee-4bcd-99fe-759b61ee8e96.webp?v=1714708496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e74217902436f128fcf0e43e84caffe6b922eb9_f94da7a2-a316-4e14-afd6-e62726ef3ba7.webp?v=1714708499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e54f386fa8b1b3c8bf5c5eab6f4008106892310_682fd288-05c0-4030-8977-3e88d4076197.webp?v=1714708501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e9e28ef33cad066675221c515466cce0435e45_3227c3cd-8f08-401b-a77f-aa37dc2ea133.webp?v=1714708504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ec0154e0cf7f26bcde462e454a78ace0eaaa46_34b4b73a-acf4-46b9-aa7d-6936d21010ae.webp?v=1714708507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3daa60a4041189bc8fbdcbc5cc93bef3eb6bf69_5a08b823-270c-45db-b5b8-85e510097b7c.webp?v=1714708509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/239d67a2272d52d5b13ea5c27b47821c18316e39_a03af71d-3c64-4dd6-a833-69fdfa7fb9ca.webp?v=1714708511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ab5e9c8e2f104ffed70f3a4f21dd10df7e07db_07f88376-ae26-4df3-b883-ad2baa289b88.webp?v=1714708491","options":["color"],"media":[{"alt":null,"id":23876033904739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ab5e9c8e2f104ffed70f3a4f21dd10df7e07db_07f88376-ae26-4df3-b883-ad2baa289b88.webp?v=1714708491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ab5e9c8e2f104ffed70f3a4f21dd10df7e07db_07f88376-ae26-4df3-b883-ad2baa289b88.webp?v=1714708491","width":2000},{"alt":null,"id":23876034363491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b813a598977752e8e471671f821ee3d94615e36b_1e60a581-aeba-47aa-b5c4-60e17fddc088.webp?v=1714708493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b813a598977752e8e471671f821ee3d94615e36b_1e60a581-aeba-47aa-b5c4-60e17fddc088.webp?v=1714708493","width":2000},{"alt":null,"id":23876034592867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e839d5bf7223bc0fa714a0213a9925e4caed6490_0b45518f-d4ee-4bcd-99fe-759b61ee8e96.webp?v=1714708496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e839d5bf7223bc0fa714a0213a9925e4caed6490_0b45518f-d4ee-4bcd-99fe-759b61ee8e96.webp?v=1714708496","width":2000},{"alt":null,"id":23876036362339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e74217902436f128fcf0e43e84caffe6b922eb9_f94da7a2-a316-4e14-afd6-e62726ef3ba7.webp?v=1714708499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e74217902436f128fcf0e43e84caffe6b922eb9_f94da7a2-a316-4e14-afd6-e62726ef3ba7.webp?v=1714708499","width":2000},{"alt":null,"id":23876036853859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e54f386fa8b1b3c8bf5c5eab6f4008106892310_682fd288-05c0-4030-8977-3e88d4076197.webp?v=1714708501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e54f386fa8b1b3c8bf5c5eab6f4008106892310_682fd288-05c0-4030-8977-3e88d4076197.webp?v=1714708501","width":2000},{"alt":null,"id":23876037378147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e9e28ef33cad066675221c515466cce0435e45_3227c3cd-8f08-401b-a77f-aa37dc2ea133.webp?v=1714708504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e9e28ef33cad066675221c515466cce0435e45_3227c3cd-8f08-401b-a77f-aa37dc2ea133.webp?v=1714708504","width":2000},{"alt":null,"id":23876037804131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ec0154e0cf7f26bcde462e454a78ace0eaaa46_34b4b73a-acf4-46b9-aa7d-6936d21010ae.webp?v=1714708507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30ec0154e0cf7f26bcde462e454a78ace0eaaa46_34b4b73a-acf4-46b9-aa7d-6936d21010ae.webp?v=1714708507","width":2000},{"alt":null,"id":23876038230115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3daa60a4041189bc8fbdcbc5cc93bef3eb6bf69_5a08b823-270c-45db-b5b8-85e510097b7c.webp?v=1714708509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3daa60a4041189bc8fbdcbc5cc93bef3eb6bf69_5a08b823-270c-45db-b5b8-85e510097b7c.webp?v=1714708509","width":2000},{"alt":null,"id":23876038885475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/239d67a2272d52d5b13ea5c27b47821c18316e39_a03af71d-3c64-4dd6-a833-69fdfa7fb9ca.webp?v=1714708511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/239d67a2272d52d5b13ea5c27b47821c18316e39_a03af71d-3c64-4dd6-a833-69fdfa7fb9ca.webp?v=1714708511","width":2000},{"alt":null,"id":23876039278691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882409959523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471134048355,"product_id":7408076849251,"position":10,"created_at":"2024-05-03T11:55:14+08:00","updated_at":"2024-05-03T11:55:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514","variant_ids":[41882409959523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876039278691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882410025059,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471129395299,"product_id":7408076849251,"position":3,"created_at":"2024-05-03T11:54:56+08:00","updated_at":"2024-05-03T11:54:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e839d5bf7223bc0fa714a0213a9925e4caed6490_0b45518f-d4ee-4bcd-99fe-759b61ee8e96.webp?v=1714708496","variant_ids":[41882410025059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876034592867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e839d5bf7223bc0fa714a0213a9925e4caed6490_0b45518f-d4ee-4bcd-99fe-759b61ee8e96.webp?v=1714708496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882410254435,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471132999779,"product_id":7408076849251,"position":8,"created_at":"2024-05-03T11:55:09+08:00","updated_at":"2024-05-03T11:55:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3daa60a4041189bc8fbdcbc5cc93bef3eb6bf69_5a08b823-270c-45db-b5b8-85e510097b7c.webp?v=1714708509","variant_ids":[41882410254435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876038230115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3daa60a4041189bc8fbdcbc5cc93bef3eb6bf69_5a08b823-270c-45db-b5b8-85e510097b7c.webp?v=1714708509"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882409959523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31471134048355,"product_id":7408076849251,"position":10,"created_at":"2024-05-03T11:55:14+08:00","updated_at":"2024-05-03T11:55:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514","variant_ids":[41882409959523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23876039278691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65cc7c0156d7c0a7be4c8404e425e00e9a8721a_66579699-7911-4a34-84af-f3870c0ac0d7.webp?v=1714708514"}},"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: "停產"
}