$product = {"id":7411368165475,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc02","description":null,"published_at":"2024-06-11T17:43:04+08:00","created_at":"2024-05-05T00:16:05+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":41898003038307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480248762467,"product_id":7411368165475,"position":8,"created_at":"2024-05-05T00:16:23+08:00","updated_at":"2024-05-05T00:16:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383","variant_ids":[41898003038307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - 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-PC02","featured_media":{"alt":null,"id":23885499990115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898003103843,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480249253987,"product_id":7411368165475,"position":9,"created_at":"2024-05-05T00:16:25+08:00","updated_at":"2024-05-05T00:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e892e5456a1df7a62d2c641c266c90d04f19ea75_d60da60a-30ea-4f07-a82e-85a3cf07b5ab.webp?v=1714839385","variant_ids":[41898003103843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - 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-PC02","featured_media":{"alt":null,"id":23885500579939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e892e5456a1df7a62d2c641c266c90d04f19ea75_d60da60a-30ea-4f07-a82e-85a3cf07b5ab.webp?v=1714839385"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898003333219,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480244961379,"product_id":7411368165475,"position":1,"created_at":"2024-05-05T00:16:07+08:00","updated_at":"2024-05-05T00:16:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367","variant_ids":[41898003333219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - 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-PC02","featured_media":{"alt":null,"id":23885496189027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f37c16e97c5d010af3ce7b9cf6c731d1ebe1d5eb_42e28eeb-aea9-4087-b020-4994073b4a8b.webp?v=1714839370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436444322ce0cc377d89dcad7e371ca7505116ad_9919100b-6235-4c76-90a7-52228df24ae1.webp?v=1714839372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198740277a2f1f070c24e2c67dbedc2b9e0b038d_c04226dd-355d-426f-acb1-6dcd9846f318.webp?v=1714839374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5823cf9136d01a470542ed8e19cf234735fcc9de_4884e375-09ae-40b8-bd52-cb1cea560ee1.webp?v=1714839377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aadb7122616038ea900898d5d6f48178fc330a0_d8603ec6-2ff0-4939-9aa9-4afe1245fe2a.webp?v=1714839379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8444281c3d7641b066fdf0aa7eee2b20d87a3490_ff65a682-b64a-49f8-9298-99fff8f23c29.webp?v=1714839381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e892e5456a1df7a62d2c641c266c90d04f19ea75_d60da60a-30ea-4f07-a82e-85a3cf07b5ab.webp?v=1714839385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca15d65ec9668f6a02e9a03ac856218629801ff4_035468da-b2b0-498c-aa52-2a51fcd425c9.webp?v=1714839388"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367","options":["color"],"media":[{"alt":null,"id":23885496189027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367","width":2000},{"alt":null,"id":23885496680547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f37c16e97c5d010af3ce7b9cf6c731d1ebe1d5eb_42e28eeb-aea9-4087-b020-4994073b4a8b.webp?v=1714839370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f37c16e97c5d010af3ce7b9cf6c731d1ebe1d5eb_42e28eeb-aea9-4087-b020-4994073b4a8b.webp?v=1714839370","width":2000},{"alt":null,"id":23885497172067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436444322ce0cc377d89dcad7e371ca7505116ad_9919100b-6235-4c76-90a7-52228df24ae1.webp?v=1714839372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/436444322ce0cc377d89dcad7e371ca7505116ad_9919100b-6235-4c76-90a7-52228df24ae1.webp?v=1714839372","width":2000},{"alt":null,"id":23885497958499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198740277a2f1f070c24e2c67dbedc2b9e0b038d_c04226dd-355d-426f-acb1-6dcd9846f318.webp?v=1714839374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/198740277a2f1f070c24e2c67dbedc2b9e0b038d_c04226dd-355d-426f-acb1-6dcd9846f318.webp?v=1714839374","width":2000},{"alt":null,"id":23885498384483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5823cf9136d01a470542ed8e19cf234735fcc9de_4884e375-09ae-40b8-bd52-cb1cea560ee1.webp?v=1714839377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5823cf9136d01a470542ed8e19cf234735fcc9de_4884e375-09ae-40b8-bd52-cb1cea560ee1.webp?v=1714839377","width":2000},{"alt":null,"id":23885498941539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aadb7122616038ea900898d5d6f48178fc330a0_d8603ec6-2ff0-4939-9aa9-4afe1245fe2a.webp?v=1714839379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aadb7122616038ea900898d5d6f48178fc330a0_d8603ec6-2ff0-4939-9aa9-4afe1245fe2a.webp?v=1714839379","width":2000},{"alt":null,"id":23885499498595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8444281c3d7641b066fdf0aa7eee2b20d87a3490_ff65a682-b64a-49f8-9298-99fff8f23c29.webp?v=1714839381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8444281c3d7641b066fdf0aa7eee2b20d87a3490_ff65a682-b64a-49f8-9298-99fff8f23c29.webp?v=1714839381","width":2000},{"alt":null,"id":23885499990115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383","width":2000},{"alt":null,"id":23885500579939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e892e5456a1df7a62d2c641c266c90d04f19ea75_d60da60a-30ea-4f07-a82e-85a3cf07b5ab.webp?v=1714839385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e892e5456a1df7a62d2c641c266c90d04f19ea75_d60da60a-30ea-4f07-a82e-85a3cf07b5ab.webp?v=1714839385","width":2000},{"alt":null,"id":23885501136995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca15d65ec9668f6a02e9a03ac856218629801ff4_035468da-b2b0-498c-aa52-2a51fcd425c9.webp?v=1714839388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca15d65ec9668f6a02e9a03ac856218629801ff4_035468da-b2b0-498c-aa52-2a51fcd425c9.webp?v=1714839388","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898003038307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480248762467,"product_id":7411368165475,"position":8,"created_at":"2024-05-05T00:16:23+08:00","updated_at":"2024-05-05T00:16:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383","variant_ids":[41898003038307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - 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-PC02","featured_media":{"alt":null,"id":23885499990115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898003103843,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480249253987,"product_id":7411368165475,"position":9,"created_at":"2024-05-05T00:16:25+08:00","updated_at":"2024-05-05T00:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e892e5456a1df7a62d2c641c266c90d04f19ea75_d60da60a-30ea-4f07-a82e-85a3cf07b5ab.webp?v=1714839385","variant_ids":[41898003103843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - 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-PC02","featured_media":{"alt":null,"id":23885500579939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e892e5456a1df7a62d2c641c266c90d04f19ea75_d60da60a-30ea-4f07-a82e-85a3cf07b5ab.webp?v=1714839385"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898003333219,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480244961379,"product_id":7411368165475,"position":1,"created_at":"2024-05-05T00:16:07+08:00","updated_at":"2024-05-05T00:16:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367","variant_ids":[41898003333219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - 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-PC02","featured_media":{"alt":null,"id":23885496189027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13d32f3b1160613223525e94e8ab69c4317742b_2a8a5e53-ae04-4c51-a9f3-1881606151dc.webp?v=1714839367"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898003038307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480248762467,"product_id":7411368165475,"position":8,"created_at":"2024-05-05T00:16:23+08:00","updated_at":"2024-05-05T00:16:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383","variant_ids":[41898003038307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 眾紅風暴兵 - 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-PC02","featured_media":{"alt":null,"id":23885499990115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba063a00716d1e6422e32d37a89c975f55f660a7_2a3b62e5-5d60-48b2-ae66-7eac49cd616f.webp?v=1714839383"}},"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: "停產"
}