$product = {"id":7407989456995,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-14-pro-mod-nx-printable-pb72","description":null,"published_at":"2024-06-11T16:28:28+08:00","created_at":"2024-05-03T11:29:40+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 14 Pro","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":41881439666275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470887338083,"product_id":7407989456995,"position":5,"created_at":"2024-05-03T11:29:51+08:00","updated_at":"2024-05-03T11:29:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991","variant_ids":[41881439666275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB72","featured_media":{"alt":null,"id":23875792011363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881439731811,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470886355043,"product_id":7407989456995,"position":3,"created_at":"2024-05-03T11:29:47+08:00","updated_at":"2024-05-03T11:29:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa538e8c3c0dba615d1eea3c5bd7a9ecd2cdc99_da2aa85c-868b-4879-adc6-a32f6539c397.webp?v=1714706987","variant_ids":[41881439731811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB72","featured_media":{"alt":null,"id":23875790962787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa538e8c3c0dba615d1eea3c5bd7a9ecd2cdc99_da2aa85c-868b-4879-adc6-a32f6539c397.webp?v=1714706987"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881439961187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470888910947,"product_id":7407989456995,"position":8,"created_at":"2024-05-03T11:29:58+08:00","updated_at":"2024-05-03T11:29:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d0378c65789ad022c8f6d22c9df01523d5bc4b_b357fd9c-351f-4f58-a5c0-c5914220a30a.webp?v=1714706998","variant_ids":[41881439961187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB72","featured_media":{"alt":null,"id":23875793551459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d0378c65789ad022c8f6d22c9df01523d5bc4b_b357fd9c-351f-4f58-a5c0-c5914220a30a.webp?v=1714706998"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca64e3bc3800eddceb2015053cd0ea8adf5728a_3ac1fd63-5a8f-4ad2-9a9d-6b96c0ecaa8c.webp?v=1714706982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/871dce044f1d099e097efc602ed6b970f2c75b9c_670bb69d-8743-488c-a173-fac4b2033f95.webp?v=1714706984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa538e8c3c0dba615d1eea3c5bd7a9ecd2cdc99_da2aa85c-868b-4879-adc6-a32f6539c397.webp?v=1714706987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2b81e205cc1753c039b781939e11ca8ce1360b_c4dca041-697f-4160-b7c4-71ef67e5ac60.webp?v=1714706989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a04c4c9672f78a5957214bd4c9b3755394dfe79_7f7b7ffc-f412-43e9-92d7-7f676f96f436.webp?v=1714706993","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a74e7b41f0504d1d31149f3d989e375d259a1f1b_1b78aba4-2081-44f6-907c-5c09f1d087cd.webp?v=1714706995","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d0378c65789ad022c8f6d22c9df01523d5bc4b_b357fd9c-351f-4f58-a5c0-c5914220a30a.webp?v=1714706998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da8320de27b972bb46b7fd732c32a5e532d679d_e00932a3-19fa-4411-8042-cf95be45472d.webp?v=1714707000","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7b4461185b9e41aa3d96312213689773923583_ef6f2377-d5ab-4e90-982b-4af5c9b96f05.webp?v=1714707002"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca64e3bc3800eddceb2015053cd0ea8adf5728a_3ac1fd63-5a8f-4ad2-9a9d-6b96c0ecaa8c.webp?v=1714706982","options":["color"],"media":[{"alt":null,"id":23875789881443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca64e3bc3800eddceb2015053cd0ea8adf5728a_3ac1fd63-5a8f-4ad2-9a9d-6b96c0ecaa8c.webp?v=1714706982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca64e3bc3800eddceb2015053cd0ea8adf5728a_3ac1fd63-5a8f-4ad2-9a9d-6b96c0ecaa8c.webp?v=1714706982","width":2000},{"alt":null,"id":23875790536803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/871dce044f1d099e097efc602ed6b970f2c75b9c_670bb69d-8743-488c-a173-fac4b2033f95.webp?v=1714706984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/871dce044f1d099e097efc602ed6b970f2c75b9c_670bb69d-8743-488c-a173-fac4b2033f95.webp?v=1714706984","width":2000},{"alt":null,"id":23875790962787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa538e8c3c0dba615d1eea3c5bd7a9ecd2cdc99_da2aa85c-868b-4879-adc6-a32f6539c397.webp?v=1714706987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa538e8c3c0dba615d1eea3c5bd7a9ecd2cdc99_da2aa85c-868b-4879-adc6-a32f6539c397.webp?v=1714706987","width":2000},{"alt":null,"id":23875791487075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2b81e205cc1753c039b781939e11ca8ce1360b_c4dca041-697f-4160-b7c4-71ef67e5ac60.webp?v=1714706989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af2b81e205cc1753c039b781939e11ca8ce1360b_c4dca041-697f-4160-b7c4-71ef67e5ac60.webp?v=1714706989","width":2000},{"alt":null,"id":23875792011363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991","width":2000},{"alt":null,"id":23875792535651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a04c4c9672f78a5957214bd4c9b3755394dfe79_7f7b7ffc-f412-43e9-92d7-7f676f96f436.webp?v=1714706993"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a04c4c9672f78a5957214bd4c9b3755394dfe79_7f7b7ffc-f412-43e9-92d7-7f676f96f436.webp?v=1714706993","width":2000},{"alt":null,"id":23875793059939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a74e7b41f0504d1d31149f3d989e375d259a1f1b_1b78aba4-2081-44f6-907c-5c09f1d087cd.webp?v=1714706995"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a74e7b41f0504d1d31149f3d989e375d259a1f1b_1b78aba4-2081-44f6-907c-5c09f1d087cd.webp?v=1714706995","width":2000},{"alt":null,"id":23875793551459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d0378c65789ad022c8f6d22c9df01523d5bc4b_b357fd9c-351f-4f58-a5c0-c5914220a30a.webp?v=1714706998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d0378c65789ad022c8f6d22c9df01523d5bc4b_b357fd9c-351f-4f58-a5c0-c5914220a30a.webp?v=1714706998","width":2000},{"alt":null,"id":23875793911907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da8320de27b972bb46b7fd732c32a5e532d679d_e00932a3-19fa-4411-8042-cf95be45472d.webp?v=1714707000"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da8320de27b972bb46b7fd732c32a5e532d679d_e00932a3-19fa-4411-8042-cf95be45472d.webp?v=1714707000","width":2000},{"alt":null,"id":23875794141283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7b4461185b9e41aa3d96312213689773923583_ef6f2377-d5ab-4e90-982b-4af5c9b96f05.webp?v=1714707002"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c7b4461185b9e41aa3d96312213689773923583_ef6f2377-d5ab-4e90-982b-4af5c9b96f05.webp?v=1714707002","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881439666275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470887338083,"product_id":7407989456995,"position":5,"created_at":"2024-05-03T11:29:51+08:00","updated_at":"2024-05-03T11:29:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991","variant_ids":[41881439666275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB72","featured_media":{"alt":null,"id":23875792011363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881439731811,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470886355043,"product_id":7407989456995,"position":3,"created_at":"2024-05-03T11:29:47+08:00","updated_at":"2024-05-03T11:29:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa538e8c3c0dba615d1eea3c5bd7a9ecd2cdc99_da2aa85c-868b-4879-adc6-a32f6539c397.webp?v=1714706987","variant_ids":[41881439731811]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB72","featured_media":{"alt":null,"id":23875790962787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fa538e8c3c0dba615d1eea3c5bd7a9ecd2cdc99_da2aa85c-868b-4879-adc6-a32f6539c397.webp?v=1714706987"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881439961187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470888910947,"product_id":7407989456995,"position":8,"created_at":"2024-05-03T11:29:58+08:00","updated_at":"2024-05-03T11:29:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d0378c65789ad022c8f6d22c9df01523d5bc4b_b357fd9c-351f-4f58-a5c0-c5914220a30a.webp?v=1714706998","variant_ids":[41881439961187]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB72","featured_media":{"alt":null,"id":23875793551459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90d0378c65789ad022c8f6d22c9df01523d5bc4b_b357fd9c-351f-4f58-a5c0-c5914220a30a.webp?v=1714706998"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881439666275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31470887338083,"product_id":7407989456995,"position":5,"created_at":"2024-05-03T11:29:51+08:00","updated_at":"2024-05-03T11:29:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991","variant_ids":[41881439666275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB72","featured_media":{"alt":null,"id":23875792011363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645b32c71f8cc1640fd81f19934648c6c6d717e1_bcd58722-2295-4c2e-9c1c-cf038b803799.webp?v=1714706991"}},"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: "停產"
}