$product = {"id":7411278020707,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb68","description":null,"published_at":"2024-06-11T17:40:38+08:00","created_at":"2024-05-04T23:58:51+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":41896873951331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31480030494819,"product_id":7411278020707,"position":6,"created_at":"2024-05-04T23:59:05+08:00","updated_at":"2024-05-04T23:59:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345","variant_ids":[41896873951331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23885281198179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896874082403,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31480028397667,"product_id":7411278020707,"position":3,"created_at":"2024-05-04T23:58:59+08:00","updated_at":"2024-05-04T23:58:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/511ed7041429bfbcf9e2c7f42be70d4e892a738c_482a1a7a-62ef-4182-858a-acf3f4a67456.webp?v=1714838339","variant_ids":[41896874082403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23885279330403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/511ed7041429bfbcf9e2c7f42be70d4e892a738c_482a1a7a-62ef-4182-858a-acf3f4a67456.webp?v=1714838339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896874442851,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31480031608931,"product_id":7411278020707,"position":8,"created_at":"2024-05-04T23:59:10+08:00","updated_at":"2024-05-04T23:59:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e51dcecbde53b34951a772d38c92159c76f4d85_f73d0ba6-a87d-4ddf-b02c-d7b56182179e.webp?v=1714838350","variant_ids":[41896874442851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23885282213987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e51dcecbde53b34951a772d38c92159c76f4d85_f73d0ba6-a87d-4ddf-b02c-d7b56182179e.webp?v=1714838350"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4971053a001c883cd01b12ea9142c4860872c16_e409a993-a74d-4358-89a3-f74f2e4ef8fa.webp?v=1714838334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a38e80301ba05a3b2f523d96a774717a3c6a2f_5adb5389-6997-4cc8-a3f2-e0316c717221.webp?v=1714838336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/511ed7041429bfbcf9e2c7f42be70d4e892a738c_482a1a7a-62ef-4182-858a-acf3f4a67456.webp?v=1714838339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c140330e0a9f933b7e3e29967b71a14bbabd731c_e68c70ca-6215-44e4-8ee0-120b2ddc4678.webp?v=1714838341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24df1d043e23658889749caabacef99524b4d363_b09cd1fa-11b6-45bb-b540-16b72eb37714.webp?v=1714838343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edd3e1d4cdaf0095ba1b00f51b1cf18e7a1053ae_384f793b-eedb-4f73-b683-6ea5da9b8abb.webp?v=1714838348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e51dcecbde53b34951a772d38c92159c76f4d85_f73d0ba6-a87d-4ddf-b02c-d7b56182179e.webp?v=1714838350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a9c82f02803c6530b4ceadddf265e472fbb7fc_e51867c8-fa80-41b5-97f3-931218dfa956.webp?v=1714838352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09de3c1dd09e583d447bf211f81f011128730f2f_b51bc203-a974-4f48-b13b-209db38389ef.webp?v=1714838355"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4971053a001c883cd01b12ea9142c4860872c16_e409a993-a74d-4358-89a3-f74f2e4ef8fa.webp?v=1714838334","options":["color"],"media":[{"alt":null,"id":23885277921379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4971053a001c883cd01b12ea9142c4860872c16_e409a993-a74d-4358-89a3-f74f2e4ef8fa.webp?v=1714838334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4971053a001c883cd01b12ea9142c4860872c16_e409a993-a74d-4358-89a3-f74f2e4ef8fa.webp?v=1714838334","width":2000},{"alt":null,"id":23885278511203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a38e80301ba05a3b2f523d96a774717a3c6a2f_5adb5389-6997-4cc8-a3f2-e0316c717221.webp?v=1714838336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a38e80301ba05a3b2f523d96a774717a3c6a2f_5adb5389-6997-4cc8-a3f2-e0316c717221.webp?v=1714838336","width":2000},{"alt":null,"id":23885279330403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/511ed7041429bfbcf9e2c7f42be70d4e892a738c_482a1a7a-62ef-4182-858a-acf3f4a67456.webp?v=1714838339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/511ed7041429bfbcf9e2c7f42be70d4e892a738c_482a1a7a-62ef-4182-858a-acf3f4a67456.webp?v=1714838339","width":2000},{"alt":null,"id":23885280313443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c140330e0a9f933b7e3e29967b71a14bbabd731c_e68c70ca-6215-44e4-8ee0-120b2ddc4678.webp?v=1714838341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c140330e0a9f933b7e3e29967b71a14bbabd731c_e68c70ca-6215-44e4-8ee0-120b2ddc4678.webp?v=1714838341","width":2000},{"alt":null,"id":23885280673891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24df1d043e23658889749caabacef99524b4d363_b09cd1fa-11b6-45bb-b540-16b72eb37714.webp?v=1714838343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24df1d043e23658889749caabacef99524b4d363_b09cd1fa-11b6-45bb-b540-16b72eb37714.webp?v=1714838343","width":2000},{"alt":null,"id":23885281198179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345","width":2000},{"alt":null,"id":23885281722467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edd3e1d4cdaf0095ba1b00f51b1cf18e7a1053ae_384f793b-eedb-4f73-b683-6ea5da9b8abb.webp?v=1714838348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edd3e1d4cdaf0095ba1b00f51b1cf18e7a1053ae_384f793b-eedb-4f73-b683-6ea5da9b8abb.webp?v=1714838348","width":2000},{"alt":null,"id":23885282213987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e51dcecbde53b34951a772d38c92159c76f4d85_f73d0ba6-a87d-4ddf-b02c-d7b56182179e.webp?v=1714838350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e51dcecbde53b34951a772d38c92159c76f4d85_f73d0ba6-a87d-4ddf-b02c-d7b56182179e.webp?v=1714838350","width":2000},{"alt":null,"id":23885282639971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a9c82f02803c6530b4ceadddf265e472fbb7fc_e51867c8-fa80-41b5-97f3-931218dfa956.webp?v=1714838352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a9c82f02803c6530b4ceadddf265e472fbb7fc_e51867c8-fa80-41b5-97f3-931218dfa956.webp?v=1714838352","width":2000},{"alt":null,"id":23885283164259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09de3c1dd09e583d447bf211f81f011128730f2f_b51bc203-a974-4f48-b13b-209db38389ef.webp?v=1714838355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09de3c1dd09e583d447bf211f81f011128730f2f_b51bc203-a974-4f48-b13b-209db38389ef.webp?v=1714838355","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896873951331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31480030494819,"product_id":7411278020707,"position":6,"created_at":"2024-05-04T23:59:05+08:00","updated_at":"2024-05-04T23:59:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345","variant_ids":[41896873951331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23885281198179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896874082403,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31480028397667,"product_id":7411278020707,"position":3,"created_at":"2024-05-04T23:58:59+08:00","updated_at":"2024-05-04T23:58:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/511ed7041429bfbcf9e2c7f42be70d4e892a738c_482a1a7a-62ef-4182-858a-acf3f4a67456.webp?v=1714838339","variant_ids":[41896874082403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23885279330403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/511ed7041429bfbcf9e2c7f42be70d4e892a738c_482a1a7a-62ef-4182-858a-acf3f4a67456.webp?v=1714838339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896874442851,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31480031608931,"product_id":7411278020707,"position":8,"created_at":"2024-05-04T23:59:10+08:00","updated_at":"2024-05-04T23:59:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e51dcecbde53b34951a772d38c92159c76f4d85_f73d0ba6-a87d-4ddf-b02c-d7b56182179e.webp?v=1714838350","variant_ids":[41896874442851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23885282213987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e51dcecbde53b34951a772d38c92159c76f4d85_f73d0ba6-a87d-4ddf-b02c-d7b56182179e.webp?v=1714838350"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896873951331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB68","requires_shipping":true,"taxable":true,"featured_image":{"id":31480030494819,"product_id":7411278020707,"position":6,"created_at":"2024-05-04T23:59:05+08:00","updated_at":"2024-05-04T23:59:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345","variant_ids":[41896873951331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - K2SO 1-俠盜一號 - 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-PB68","featured_media":{"alt":null,"id":23885281198179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e72ab89f3daf8b4c01a6d4cbfcd48aa1720024a0_3de0df9b-828a-4995-b900-5b0d7f021a87.webp?v=1714838345"}},"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: "停產"
}