$product = {"id":7411314884707,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉","handle":"iphone-14-pro-mod-nx-magsafe-printable-yb08","description":null,"published_at":"2024-06-11T17:41:36+08:00","created_at":"2024-05-05T00:05:53+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 14 Pro","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":41897330278499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480121360483,"product_id":7411314884707,"position":8,"created_at":"2024-05-05T00:06:12+08:00","updated_at":"2024-05-05T00:06:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772","variant_ids":[41897330278499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉 - 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":"MPB0126224-YB08","featured_media":{"alt":null,"id":23885372620899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897330409571,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480117559395,"product_id":7411314884707,"position":1,"created_at":"2024-05-05T00:05:55+08:00","updated_at":"2024-05-05T00:05:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755","variant_ids":[41897330409571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉 - 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":"MPB0126204-YB08","featured_media":{"alt":null,"id":23885368459363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897330802787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480119722083,"product_id":7411314884707,"position":5,"created_at":"2024-05-05T00:06:05+08:00","updated_at":"2024-05-05T00:06:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d8818cbc5fc6fbc2f37692465fd649fe2e7eee_06abe685-87ea-4ea9-b438-6f79d3bd9373.webp?v=1714838765","variant_ids":[41897330802787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉 - 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":"MPB01262J5-YB08","featured_media":{"alt":null,"id":23885370589283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d8818cbc5fc6fbc2f37692465fd649fe2e7eee_06abe685-87ea-4ea9-b438-6f79d3bd9373.webp?v=1714838765"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c0fdaed80298819e22027877228396a599128d_e3a42dea-e62d-4e4e-afea-07b0acbf6b20.webp?v=1714838758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f474fb2bb2c0a30dce2fdc4a7ab88f8a80f4c637_b4fab13a-73a2-4533-807a-bebf1a042885.webp?v=1714838760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9829a5b04d5748585fbdf8c2c755e88a18552cf2_7cd677c4-82ba-45d6-b23d-a9ef4ba35509.webp?v=1714838762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d8818cbc5fc6fbc2f37692465fd649fe2e7eee_06abe685-87ea-4ea9-b438-6f79d3bd9373.webp?v=1714838765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f679648b0f772dec8b7331b1e25134ef02b96623_404525e0-82ea-4e57-b66b-97e66454fc1a.webp?v=1714838767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d775434d2194624ddccd5f9dff28c2644c09f43_a161b1ce-3da1-4c59-8997-0575789da78b.webp?v=1714838770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019b17fa2331b9fc992620f163523b509fa3febe_5f5b3a3d-1f9c-4ec0-8e45-85d945a35447.webp?v=1714838774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86300b0032d963dc03a44966f73ff1e878b77291_09009192-efd3-495e-9909-548b88c8ef9f.webp?v=1714838776"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755","options":["color"],"media":[{"alt":null,"id":23885368459363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755","width":2000},{"alt":null,"id":23885369049187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c0fdaed80298819e22027877228396a599128d_e3a42dea-e62d-4e4e-afea-07b0acbf6b20.webp?v=1714838758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c0fdaed80298819e22027877228396a599128d_e3a42dea-e62d-4e4e-afea-07b0acbf6b20.webp?v=1714838758","width":2000},{"alt":null,"id":23885369475171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f474fb2bb2c0a30dce2fdc4a7ab88f8a80f4c637_b4fab13a-73a2-4533-807a-bebf1a042885.webp?v=1714838760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f474fb2bb2c0a30dce2fdc4a7ab88f8a80f4c637_b4fab13a-73a2-4533-807a-bebf1a042885.webp?v=1714838760","width":2000},{"alt":null,"id":23885370032227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9829a5b04d5748585fbdf8c2c755e88a18552cf2_7cd677c4-82ba-45d6-b23d-a9ef4ba35509.webp?v=1714838762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9829a5b04d5748585fbdf8c2c755e88a18552cf2_7cd677c4-82ba-45d6-b23d-a9ef4ba35509.webp?v=1714838762","width":2000},{"alt":null,"id":23885370589283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d8818cbc5fc6fbc2f37692465fd649fe2e7eee_06abe685-87ea-4ea9-b438-6f79d3bd9373.webp?v=1714838765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d8818cbc5fc6fbc2f37692465fd649fe2e7eee_06abe685-87ea-4ea9-b438-6f79d3bd9373.webp?v=1714838765","width":2000},{"alt":null,"id":23885371146339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f679648b0f772dec8b7331b1e25134ef02b96623_404525e0-82ea-4e57-b66b-97e66454fc1a.webp?v=1714838767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f679648b0f772dec8b7331b1e25134ef02b96623_404525e0-82ea-4e57-b66b-97e66454fc1a.webp?v=1714838767","width":2000},{"alt":null,"id":23885371801699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d775434d2194624ddccd5f9dff28c2644c09f43_a161b1ce-3da1-4c59-8997-0575789da78b.webp?v=1714838770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d775434d2194624ddccd5f9dff28c2644c09f43_a161b1ce-3da1-4c59-8997-0575789da78b.webp?v=1714838770","width":2000},{"alt":null,"id":23885372620899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772","width":2000},{"alt":null,"id":23885373046883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019b17fa2331b9fc992620f163523b509fa3febe_5f5b3a3d-1f9c-4ec0-8e45-85d945a35447.webp?v=1714838774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/019b17fa2331b9fc992620f163523b509fa3febe_5f5b3a3d-1f9c-4ec0-8e45-85d945a35447.webp?v=1714838774","width":2000},{"alt":null,"id":23885373472867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86300b0032d963dc03a44966f73ff1e878b77291_09009192-efd3-495e-9909-548b88c8ef9f.webp?v=1714838776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86300b0032d963dc03a44966f73ff1e878b77291_09009192-efd3-495e-9909-548b88c8ef9f.webp?v=1714838776","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897330278499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480121360483,"product_id":7411314884707,"position":8,"created_at":"2024-05-05T00:06:12+08:00","updated_at":"2024-05-05T00:06:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772","variant_ids":[41897330278499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉 - 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":"MPB0126224-YB08","featured_media":{"alt":null,"id":23885372620899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897330409571,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480117559395,"product_id":7411314884707,"position":1,"created_at":"2024-05-05T00:05:55+08:00","updated_at":"2024-05-05T00:05:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755","variant_ids":[41897330409571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉 - 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":"MPB0126204-YB08","featured_media":{"alt":null,"id":23885368459363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed4c63fec9f9ab84bfd5a409ff5d9c97ff8bca5a_e7e76d8c-0fe2-408f-9c3a-da6dd4fda58f.webp?v=1714838755"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897330802787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480119722083,"product_id":7411314884707,"position":5,"created_at":"2024-05-05T00:06:05+08:00","updated_at":"2024-05-05T00:06:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d8818cbc5fc6fbc2f37692465fd649fe2e7eee_06abe685-87ea-4ea9-b438-6f79d3bd9373.webp?v=1714838765","variant_ids":[41897330802787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉 - 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":"MPB01262J5-YB08","featured_media":{"alt":null,"id":23885370589283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22d8818cbc5fc6fbc2f37692465fd649fe2e7eee_06abe685-87ea-4ea9-b438-6f79d3bd9373.webp?v=1714838765"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897330278499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-YB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480121360483,"product_id":7411314884707,"position":8,"created_at":"2024-05-05T00:06:12+08:00","updated_at":"2024-05-05T00:06:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772","variant_ids":[41897330278499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Care Bears - 雨愛灌溉 - 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":"MPB0126224-YB08","featured_media":{"alt":null,"id":23885372620899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a16dfdf02577cb156c883ba6d67b8ec8854e6f_da345cdb-5d27-46b7-8e7c-ed605ef5dee0.webp?v=1714838772"}},"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: "停產"
}