$product = {"id":7411370754147,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb33","description":null,"published_at":"2024-06-11T17:43:08+08:00","created_at":"2024-05-05T00:16:37+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":41898036101219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31480257347683,"product_id":7411370754147,"position":9,"created_at":"2024-05-05T00:16:58+08:00","updated_at":"2024-05-05T00:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418","variant_ids":[41898036101219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23885508575331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898036166755,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31480257740899,"product_id":7411370754147,"position":10,"created_at":"2024-05-05T00:17:01+08:00","updated_at":"2024-05-05T00:17:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8944e8d6f7f1a6e1677b9c8ad4b0fe73c7c3a7_a5912b1a-21da-4c59-9522-d5b107a636d3.webp?v=1714839421","variant_ids":[41898036166755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23885508968547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8944e8d6f7f1a6e1677b9c8ad4b0fe73c7c3a7_a5912b1a-21da-4c59-9522-d5b107a636d3.webp?v=1714839421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898036396131,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31480255676515,"product_id":7411370754147,"position":6,"created_at":"2024-05-05T00:16:51+08:00","updated_at":"2024-05-05T00:16:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44852465697fb1e970d768b51544000c1170ea63_017e7483-9bc7-4806-b05a-6d27781637a7.webp?v=1714839411","variant_ids":[41898036396131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23885506936931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44852465697fb1e970d768b51544000c1170ea63_017e7483-9bc7-4806-b05a-6d27781637a7.webp?v=1714839411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f827f5d6a8e607a7561b1bfe6422e56c21ef8ab5_7b180b21-2cdc-439f-a135-02bae0136c19.webp?v=1714839399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb9e81b4ddd8fe4fa59b9fbcc25d1c8f1e9fac3_80050c40-d793-4a9c-b52f-e15e40b87c07.webp?v=1714839402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d09bc372b7b9e96ffc2a631ed45c4d6d1b28e7f_39622ed9-988e-4256-a815-e2f9fd66ec4a.webp?v=1714839404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ea74a610832aa20d915e6a851a3e055ca88c96_d0b52622-3615-4c80-b478-9185e08e3d60.webp?v=1714839407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780620b5e8c74c878e0b5f0f68bdfda045614c82_b71df3b1-b9e8-483e-bf7d-c8ac848eaf53.webp?v=1714839409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44852465697fb1e970d768b51544000c1170ea63_017e7483-9bc7-4806-b05a-6d27781637a7.webp?v=1714839411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee99d2c59b2f29ab186e74e13d9fe483ae9cbd4_143bd0b4-9b12-42d4-8f04-2b208e7902db.webp?v=1714839414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e213d3afd0b8d6ecb72ec645b63a1cfd008f82_e98f6a04-88fa-4185-affa-abe6ee3cd044.webp?v=1714839416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8944e8d6f7f1a6e1677b9c8ad4b0fe73c7c3a7_a5912b1a-21da-4c59-9522-d5b107a636d3.webp?v=1714839421"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f827f5d6a8e607a7561b1bfe6422e56c21ef8ab5_7b180b21-2cdc-439f-a135-02bae0136c19.webp?v=1714839399","options":["color"],"media":[{"alt":null,"id":23885503823971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f827f5d6a8e607a7561b1bfe6422e56c21ef8ab5_7b180b21-2cdc-439f-a135-02bae0136c19.webp?v=1714839399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f827f5d6a8e607a7561b1bfe6422e56c21ef8ab5_7b180b21-2cdc-439f-a135-02bae0136c19.webp?v=1714839399","width":2000},{"alt":null,"id":23885504348259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb9e81b4ddd8fe4fa59b9fbcc25d1c8f1e9fac3_80050c40-d793-4a9c-b52f-e15e40b87c07.webp?v=1714839402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bb9e81b4ddd8fe4fa59b9fbcc25d1c8f1e9fac3_80050c40-d793-4a9c-b52f-e15e40b87c07.webp?v=1714839402","width":2000},{"alt":null,"id":23885504938083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d09bc372b7b9e96ffc2a631ed45c4d6d1b28e7f_39622ed9-988e-4256-a815-e2f9fd66ec4a.webp?v=1714839404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d09bc372b7b9e96ffc2a631ed45c4d6d1b28e7f_39622ed9-988e-4256-a815-e2f9fd66ec4a.webp?v=1714839404","width":2000},{"alt":null,"id":23885505593443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ea74a610832aa20d915e6a851a3e055ca88c96_d0b52622-3615-4c80-b478-9185e08e3d60.webp?v=1714839407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ea74a610832aa20d915e6a851a3e055ca88c96_d0b52622-3615-4c80-b478-9185e08e3d60.webp?v=1714839407","width":2000},{"alt":null,"id":23885506314339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780620b5e8c74c878e0b5f0f68bdfda045614c82_b71df3b1-b9e8-483e-bf7d-c8ac848eaf53.webp?v=1714839409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780620b5e8c74c878e0b5f0f68bdfda045614c82_b71df3b1-b9e8-483e-bf7d-c8ac848eaf53.webp?v=1714839409","width":2000},{"alt":null,"id":23885506936931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44852465697fb1e970d768b51544000c1170ea63_017e7483-9bc7-4806-b05a-6d27781637a7.webp?v=1714839411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44852465697fb1e970d768b51544000c1170ea63_017e7483-9bc7-4806-b05a-6d27781637a7.webp?v=1714839411","width":2000},{"alt":null,"id":23885507756131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee99d2c59b2f29ab186e74e13d9fe483ae9cbd4_143bd0b4-9b12-42d4-8f04-2b208e7902db.webp?v=1714839414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ee99d2c59b2f29ab186e74e13d9fe483ae9cbd4_143bd0b4-9b12-42d4-8f04-2b208e7902db.webp?v=1714839414","width":2000},{"alt":null,"id":23885508051043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e213d3afd0b8d6ecb72ec645b63a1cfd008f82_e98f6a04-88fa-4185-affa-abe6ee3cd044.webp?v=1714839416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15e213d3afd0b8d6ecb72ec645b63a1cfd008f82_e98f6a04-88fa-4185-affa-abe6ee3cd044.webp?v=1714839416","width":2000},{"alt":null,"id":23885508575331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418","width":2000},{"alt":null,"id":23885508968547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8944e8d6f7f1a6e1677b9c8ad4b0fe73c7c3a7_a5912b1a-21da-4c59-9522-d5b107a636d3.webp?v=1714839421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8944e8d6f7f1a6e1677b9c8ad4b0fe73c7c3a7_a5912b1a-21da-4c59-9522-d5b107a636d3.webp?v=1714839421","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898036101219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31480257347683,"product_id":7411370754147,"position":9,"created_at":"2024-05-05T00:16:58+08:00","updated_at":"2024-05-05T00:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418","variant_ids":[41898036101219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23885508575331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898036166755,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31480257740899,"product_id":7411370754147,"position":10,"created_at":"2024-05-05T00:17:01+08:00","updated_at":"2024-05-05T00:17:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8944e8d6f7f1a6e1677b9c8ad4b0fe73c7c3a7_a5912b1a-21da-4c59-9522-d5b107a636d3.webp?v=1714839421","variant_ids":[41898036166755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23885508968547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8944e8d6f7f1a6e1677b9c8ad4b0fe73c7c3a7_a5912b1a-21da-4c59-9522-d5b107a636d3.webp?v=1714839421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898036396131,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31480255676515,"product_id":7411370754147,"position":6,"created_at":"2024-05-05T00:16:51+08:00","updated_at":"2024-05-05T00:16:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44852465697fb1e970d768b51544000c1170ea63_017e7483-9bc7-4806-b05a-6d27781637a7.webp?v=1714839411","variant_ids":[41898036396131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23885506936931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44852465697fb1e970d768b51544000c1170ea63_017e7483-9bc7-4806-b05a-6d27781637a7.webp?v=1714839411"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898036101219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31480257347683,"product_id":7411370754147,"position":9,"created_at":"2024-05-05T00:16:58+08:00","updated_at":"2024-05-05T00:16:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418","variant_ids":[41898036101219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23885508575331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e952d2fd63929060f0adcc394b8b211fd85f96db_8982c79f-9e47-4f35-97ac-790c5e2005bf.webp?v=1714839418"}},"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: "停產"
}