$product = {"id":7411272908899,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb19","description":null,"published_at":"2024-06-11T17:40:30+08:00","created_at":"2024-05-04T23:57:57+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 14 Pro","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":41896807661667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31480016961635,"product_id":7411272908899,"position":5,"created_at":"2024-05-04T23:58:09+08:00","updated_at":"2024-05-04T23:58:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289","variant_ids":[41896807661667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB19","featured_media":{"alt":null,"id":23885267501155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896807727203,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31480014733411,"product_id":7411272908899,"position":1,"created_at":"2024-05-04T23:57:59+08:00","updated_at":"2024-05-04T23:57:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279","variant_ids":[41896807727203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB19","featured_media":{"alt":null,"id":23885265338467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896807956579,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31480015749219,"product_id":7411272908899,"position":3,"created_at":"2024-05-04T23:58:04+08:00","updated_at":"2024-05-04T23:58:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bff2e0e604ba1f53bbf3de843dbe47fdf103f22_3e4d1da2-7f43-4b58-9e3f-3ffc72eb9209.webp?v=1714838284","variant_ids":[41896807956579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB19","featured_media":{"alt":null,"id":23885266288739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bff2e0e604ba1f53bbf3de843dbe47fdf103f22_3e4d1da2-7f43-4b58-9e3f-3ffc72eb9209.webp?v=1714838284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8b57933cc0f7e2aa75501b1da115ec266a28f_294d4787-2af6-4ba1-81d8-d63c03f4f4d8.webp?v=1714838282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bff2e0e604ba1f53bbf3de843dbe47fdf103f22_3e4d1da2-7f43-4b58-9e3f-3ffc72eb9209.webp?v=1714838284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3c66a943e3070cb9581ed8d6ed2b3650b20ec39_e17349f7-22ea-47d1-b1db-d483b614f4fb.webp?v=1714838286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba0b64d083c42ff167f72ea25a5cf9c208585d4_21893fd6-221d-4338-8f21-a7ccb4f43891.webp?v=1714838291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9164c2afaba560b4131c4aa03ddb5be178767a72_b4d5571e-1418-4d21-9e28-0f9502e43fba.webp?v=1714838294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae60b5ca585442e820cf46610896d5aa4451e61_4ea70969-e9ab-4aad-ae34-05d1091e6f66.webp?v=1714838296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a7d46a96a8fd510bc8b70d754aecdcb1bfd3da8_d09279b1-2714-4689-ad08-526932f0ddfb.webp?v=1714838298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ccc844ef7f8a36f24944d3f8319947211de8df_c5a586b0-e4eb-43cb-8922-67e6a2b9382b.webp?v=1714838301"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279","options":["color"],"media":[{"alt":null,"id":23885265338467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279","width":2000},{"alt":null,"id":23885265698915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8b57933cc0f7e2aa75501b1da115ec266a28f_294d4787-2af6-4ba1-81d8-d63c03f4f4d8.webp?v=1714838282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8b57933cc0f7e2aa75501b1da115ec266a28f_294d4787-2af6-4ba1-81d8-d63c03f4f4d8.webp?v=1714838282","width":2000},{"alt":null,"id":23885266288739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bff2e0e604ba1f53bbf3de843dbe47fdf103f22_3e4d1da2-7f43-4b58-9e3f-3ffc72eb9209.webp?v=1714838284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bff2e0e604ba1f53bbf3de843dbe47fdf103f22_3e4d1da2-7f43-4b58-9e3f-3ffc72eb9209.webp?v=1714838284","width":2000},{"alt":null,"id":23885266911331,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3c66a943e3070cb9581ed8d6ed2b3650b20ec39_e17349f7-22ea-47d1-b1db-d483b614f4fb.webp?v=1714838286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3c66a943e3070cb9581ed8d6ed2b3650b20ec39_e17349f7-22ea-47d1-b1db-d483b614f4fb.webp?v=1714838286","width":2000},{"alt":null,"id":23885267501155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289","width":2000},{"alt":null,"id":23885268189283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba0b64d083c42ff167f72ea25a5cf9c208585d4_21893fd6-221d-4338-8f21-a7ccb4f43891.webp?v=1714838291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba0b64d083c42ff167f72ea25a5cf9c208585d4_21893fd6-221d-4338-8f21-a7ccb4f43891.webp?v=1714838291","width":2000},{"alt":null,"id":23885268811875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9164c2afaba560b4131c4aa03ddb5be178767a72_b4d5571e-1418-4d21-9e28-0f9502e43fba.webp?v=1714838294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9164c2afaba560b4131c4aa03ddb5be178767a72_b4d5571e-1418-4d21-9e28-0f9502e43fba.webp?v=1714838294","width":2000},{"alt":null,"id":23885269598307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae60b5ca585442e820cf46610896d5aa4451e61_4ea70969-e9ab-4aad-ae34-05d1091e6f66.webp?v=1714838296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae60b5ca585442e820cf46610896d5aa4451e61_4ea70969-e9ab-4aad-ae34-05d1091e6f66.webp?v=1714838296","width":2000},{"alt":null,"id":23885270286435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a7d46a96a8fd510bc8b70d754aecdcb1bfd3da8_d09279b1-2714-4689-ad08-526932f0ddfb.webp?v=1714838298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a7d46a96a8fd510bc8b70d754aecdcb1bfd3da8_d09279b1-2714-4689-ad08-526932f0ddfb.webp?v=1714838298","width":2000},{"alt":null,"id":23885270843491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ccc844ef7f8a36f24944d3f8319947211de8df_c5a586b0-e4eb-43cb-8922-67e6a2b9382b.webp?v=1714838301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ccc844ef7f8a36f24944d3f8319947211de8df_c5a586b0-e4eb-43cb-8922-67e6a2b9382b.webp?v=1714838301","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896807661667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31480016961635,"product_id":7411272908899,"position":5,"created_at":"2024-05-04T23:58:09+08:00","updated_at":"2024-05-04T23:58:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289","variant_ids":[41896807661667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB19","featured_media":{"alt":null,"id":23885267501155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896807727203,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31480014733411,"product_id":7411272908899,"position":1,"created_at":"2024-05-04T23:57:59+08:00","updated_at":"2024-05-04T23:57:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279","variant_ids":[41896807727203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB19","featured_media":{"alt":null,"id":23885265338467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89423d379d0019d9dc9fb709f427c533611902b_be2b600b-5f45-431f-9831-41b6559e3d7d.webp?v=1714838279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896807956579,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31480015749219,"product_id":7411272908899,"position":3,"created_at":"2024-05-04T23:58:04+08:00","updated_at":"2024-05-04T23:58:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bff2e0e604ba1f53bbf3de843dbe47fdf103f22_3e4d1da2-7f43-4b58-9e3f-3ffc72eb9209.webp?v=1714838284","variant_ids":[41896807956579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB19","featured_media":{"alt":null,"id":23885266288739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bff2e0e604ba1f53bbf3de843dbe47fdf103f22_3e4d1da2-7f43-4b58-9e3f-3ffc72eb9209.webp?v=1714838284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896807661667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31480016961635,"product_id":7411272908899,"position":5,"created_at":"2024-05-04T23:58:09+08:00","updated_at":"2024-05-04T23:58:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289","variant_ids":[41896807661667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB19","featured_media":{"alt":null,"id":23885267501155,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af1f86e617f38e59f5be52434abd9ad37bb757b3_c51392cd-22d0-4566-a1b2-377865277a24.webp?v=1714838289"}},"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: "停產"
}