$product = {"id":7414326624355,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear","handle":"iphone-13-mini-mod-nx-magsafe-printable-yb06","description":null,"published_at":"2024-06-11T17:50:48+08:00","created_at":"2024-05-05T14:22:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41905741922403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485189554275,"product_id":7414326624355,"position":8,"created_at":"2024-05-05T14:22:25+08:00","updated_at":"2024-05-05T14:22:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145","variant_ids":[41905741922403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-YB06","featured_media":{"alt":null,"id":23890505957475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905742217315,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485176316003,"product_id":7414326624355,"position":4,"created_at":"2024-05-05T14:22:16+08:00","updated_at":"2024-05-05T14:22:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa49f9f5c99701378be3b6d85c57163b1a9566e_2d5ac684-c30f-4a81-bda9-ecf43cb634dc.webp?v=1714890136","variant_ids":[41905742217315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-YB06","featured_media":{"alt":null,"id":23890492555363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa49f9f5c99701378be3b6d85c57163b1a9566e_2d5ac684-c30f-4a81-bda9-ecf43cb634dc.webp?v=1714890136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905742774371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485173432419,"product_id":7414326624355,"position":3,"created_at":"2024-05-05T14:22:14+08:00","updated_at":"2024-05-05T14:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e65d468553afb3f8d22d91100cb7dffcecfd9_729e9aa6-61dc-4e98-ac8f-9498ea7b0ed7.webp?v=1714890134","variant_ids":[41905742774371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-YB06","featured_media":{"alt":null,"id":23890489704547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e65d468553afb3f8d22d91100cb7dffcecfd9_729e9aa6-61dc-4e98-ac8f-9498ea7b0ed7.webp?v=1714890134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fafbf51a2f1f99c6bf4a4d6164701378bccb8c45_c67e421b-03fb-4fe4-a9ce-b2688d2393b9.webp?v=1714890129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d58bc4875028204c769da33060327c9ba9e8574_dbb147d0-651b-45ac-878b-512bb7b43692.webp?v=1714890131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e65d468553afb3f8d22d91100cb7dffcecfd9_729e9aa6-61dc-4e98-ac8f-9498ea7b0ed7.webp?v=1714890134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa49f9f5c99701378be3b6d85c57163b1a9566e_2d5ac684-c30f-4a81-bda9-ecf43cb634dc.webp?v=1714890136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c37f9ad1c7f71481680ff69c9541ea8a377eda2_5579c6fe-bcd2-4cc8-a4a2-a23fb078cff9.webp?v=1714890138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83c372ee72ffb104be79a278636460f4b0391ea1_b3209de9-48f6-4dfe-8b76-8d0d5b0dc9d1.webp?v=1714890140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd5497361f053497134bc22307d357cde6d4f253_bde4657a-b72c-47a1-860f-da2af499bf0e.webp?v=1714890143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/571ff732f3b93f9834ff211c4140d22b6d51e9a6_b53a2ef8-eac4-4409-ae23-3028973a9127.webp?v=1714890147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51103b58928146a79c4ffafdda85b7847433d03a_fee83b93-6013-47fb-9505-4c8f7fd1c197.webp?v=1714890149"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fafbf51a2f1f99c6bf4a4d6164701378bccb8c45_c67e421b-03fb-4fe4-a9ce-b2688d2393b9.webp?v=1714890129","options":["color"],"media":[{"alt":null,"id":23890483576931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fafbf51a2f1f99c6bf4a4d6164701378bccb8c45_c67e421b-03fb-4fe4-a9ce-b2688d2393b9.webp?v=1714890129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fafbf51a2f1f99c6bf4a4d6164701378bccb8c45_c67e421b-03fb-4fe4-a9ce-b2688d2393b9.webp?v=1714890129","width":2000},{"alt":null,"id":23890486591587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d58bc4875028204c769da33060327c9ba9e8574_dbb147d0-651b-45ac-878b-512bb7b43692.webp?v=1714890131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d58bc4875028204c769da33060327c9ba9e8574_dbb147d0-651b-45ac-878b-512bb7b43692.webp?v=1714890131","width":2000},{"alt":null,"id":23890489704547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e65d468553afb3f8d22d91100cb7dffcecfd9_729e9aa6-61dc-4e98-ac8f-9498ea7b0ed7.webp?v=1714890134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e65d468553afb3f8d22d91100cb7dffcecfd9_729e9aa6-61dc-4e98-ac8f-9498ea7b0ed7.webp?v=1714890134","width":2000},{"alt":null,"id":23890492555363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa49f9f5c99701378be3b6d85c57163b1a9566e_2d5ac684-c30f-4a81-bda9-ecf43cb634dc.webp?v=1714890136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa49f9f5c99701378be3b6d85c57163b1a9566e_2d5ac684-c30f-4a81-bda9-ecf43cb634dc.webp?v=1714890136","width":2000},{"alt":null,"id":23890495930467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c37f9ad1c7f71481680ff69c9541ea8a377eda2_5579c6fe-bcd2-4cc8-a4a2-a23fb078cff9.webp?v=1714890138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c37f9ad1c7f71481680ff69c9541ea8a377eda2_5579c6fe-bcd2-4cc8-a4a2-a23fb078cff9.webp?v=1714890138","width":2000},{"alt":null,"id":23890499534947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83c372ee72ffb104be79a278636460f4b0391ea1_b3209de9-48f6-4dfe-8b76-8d0d5b0dc9d1.webp?v=1714890140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83c372ee72ffb104be79a278636460f4b0391ea1_b3209de9-48f6-4dfe-8b76-8d0d5b0dc9d1.webp?v=1714890140","width":2000},{"alt":null,"id":23890502811747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd5497361f053497134bc22307d357cde6d4f253_bde4657a-b72c-47a1-860f-da2af499bf0e.webp?v=1714890143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd5497361f053497134bc22307d357cde6d4f253_bde4657a-b72c-47a1-860f-da2af499bf0e.webp?v=1714890143","width":2000},{"alt":null,"id":23890505957475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145","width":2000},{"alt":null,"id":23890508873827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/571ff732f3b93f9834ff211c4140d22b6d51e9a6_b53a2ef8-eac4-4409-ae23-3028973a9127.webp?v=1714890147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/571ff732f3b93f9834ff211c4140d22b6d51e9a6_b53a2ef8-eac4-4409-ae23-3028973a9127.webp?v=1714890147","width":2000},{"alt":null,"id":23890512904291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51103b58928146a79c4ffafdda85b7847433d03a_fee83b93-6013-47fb-9505-4c8f7fd1c197.webp?v=1714890149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51103b58928146a79c4ffafdda85b7847433d03a_fee83b93-6013-47fb-9505-4c8f7fd1c197.webp?v=1714890149","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41905741922403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485189554275,"product_id":7414326624355,"position":8,"created_at":"2024-05-05T14:22:25+08:00","updated_at":"2024-05-05T14:22:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145","variant_ids":[41905741922403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-YB06","featured_media":{"alt":null,"id":23890505957475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905742217315,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485176316003,"product_id":7414326624355,"position":4,"created_at":"2024-05-05T14:22:16+08:00","updated_at":"2024-05-05T14:22:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa49f9f5c99701378be3b6d85c57163b1a9566e_2d5ac684-c30f-4a81-bda9-ecf43cb634dc.webp?v=1714890136","variant_ids":[41905742217315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-YB06","featured_media":{"alt":null,"id":23890492555363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa49f9f5c99701378be3b6d85c57163b1a9566e_2d5ac684-c30f-4a81-bda9-ecf43cb634dc.webp?v=1714890136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905742774371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485173432419,"product_id":7414326624355,"position":3,"created_at":"2024-05-05T14:22:14+08:00","updated_at":"2024-05-05T14:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e65d468553afb3f8d22d91100cb7dffcecfd9_729e9aa6-61dc-4e98-ac8f-9498ea7b0ed7.webp?v=1714890134","variant_ids":[41905742774371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-YB06","featured_media":{"alt":null,"id":23890489704547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e5e65d468553afb3f8d22d91100cb7dffcecfd9_729e9aa6-61dc-4e98-ac8f-9498ea7b0ed7.webp?v=1714890134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905741922403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485189554275,"product_id":7414326624355,"position":8,"created_at":"2024-05-05T14:22:25+08:00","updated_at":"2024-05-05T14:22:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145","variant_ids":[41905741922403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Funshine Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-YB06","featured_media":{"alt":null,"id":23890505957475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3dc24fb23ed7e2fa5f67c1d2ebde6c442afdc8_2e5a3138-dddd-45ef-af95-c16cd99af048.webp?v=1714890145"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}