$product = {"id":7413950775395,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday","handle":"iphone-13-mini-mod-nx-magsafe-printable-rl01","description":null,"published_at":"2024-06-11T17:45:55+08:00","created_at":"2024-05-05T13:48:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Twenty One Point Five - 21.5","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-twenty-one-point-five","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-twenty-one-point-five","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":41902602190947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484303245411,"product_id":7413950775395,"position":4,"created_at":"2024-05-05T13:48:56+08:00","updated_at":"2024-05-05T13:48:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136","variant_ids":[41902602190947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23889596809315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902602289251,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302852195,"product_id":7413950775395,"position":3,"created_at":"2024-05-05T13:48:53+08:00","updated_at":"2024-05-05T13:48:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4190ae3789c5e4e2d9b5d8e1e3b7f8927118a6a2_72244a0d-9bf9-4909-a4c6-035968ea79b5.webp?v=1714888133","variant_ids":[41902602289251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23889596448867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4190ae3789c5e4e2d9b5d8e1e3b7f8927118a6a2_72244a0d-9bf9-4909-a4c6-035968ea79b5.webp?v=1714888133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902602748003,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302393443,"product_id":7413950775395,"position":2,"created_at":"2024-05-05T13:48:51+08:00","updated_at":"2024-05-05T13:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59122d52bc7cc9dec84e2473745a2e11389aa965_a3ef9c18-2b70-4bf6-af09-0dd6189206c1.webp?v=1714888131","variant_ids":[41902602748003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23889595957347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59122d52bc7cc9dec84e2473745a2e11389aa965_a3ef9c18-2b70-4bf6-af09-0dd6189206c1.webp?v=1714888131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9417377939a4d1b7343f6cd6785d608d86a53a71_7410f741-99a0-40f8-ae03-07b63b21d60a.webp?v=1714888129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59122d52bc7cc9dec84e2473745a2e11389aa965_a3ef9c18-2b70-4bf6-af09-0dd6189206c1.webp?v=1714888131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4190ae3789c5e4e2d9b5d8e1e3b7f8927118a6a2_72244a0d-9bf9-4909-a4c6-035968ea79b5.webp?v=1714888133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f3326094e8cf721192da1ac8810c5d2f6f1690_54de4ab7-5e27-4a89-85fa-9ef4c6c75e9c.webp?v=1714888138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/245e8c8f3080a72fc5799547018c26962dedaa47_a32a900c-b7bf-469b-b6e7-be0a5e1079b1.webp?v=1714888140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15efbe36455b213682a2b64e39801edb9883f079_16985f0f-e2e8-4ae0-ab09-31883550ca34.webp?v=1714888143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2575a82bdc3518a90d3acb325d181b86fc0250c_fbca3502-bfbe-4f96-8562-4c4b5ddb26ac.webp?v=1714888145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc74a9ef3f0629d078d1bb0a843b2398afa0251a_631f898b-65b2-483b-b6d2-f0353aca7a29.webp?v=1714888148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae84b4deda1888496562ea7f43544280ccf97fb_afcdebfb-55d0-4813-b413-10d7d342e6b7.webp?v=1714888150"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9417377939a4d1b7343f6cd6785d608d86a53a71_7410f741-99a0-40f8-ae03-07b63b21d60a.webp?v=1714888129","options":["color"],"media":[{"alt":null,"id":23889595596899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9417377939a4d1b7343f6cd6785d608d86a53a71_7410f741-99a0-40f8-ae03-07b63b21d60a.webp?v=1714888129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9417377939a4d1b7343f6cd6785d608d86a53a71_7410f741-99a0-40f8-ae03-07b63b21d60a.webp?v=1714888129","width":2000},{"alt":null,"id":23889595957347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59122d52bc7cc9dec84e2473745a2e11389aa965_a3ef9c18-2b70-4bf6-af09-0dd6189206c1.webp?v=1714888131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59122d52bc7cc9dec84e2473745a2e11389aa965_a3ef9c18-2b70-4bf6-af09-0dd6189206c1.webp?v=1714888131","width":2000},{"alt":null,"id":23889596448867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4190ae3789c5e4e2d9b5d8e1e3b7f8927118a6a2_72244a0d-9bf9-4909-a4c6-035968ea79b5.webp?v=1714888133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4190ae3789c5e4e2d9b5d8e1e3b7f8927118a6a2_72244a0d-9bf9-4909-a4c6-035968ea79b5.webp?v=1714888133","width":2000},{"alt":null,"id":23889596809315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136","width":2000},{"alt":null,"id":23889597366371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f3326094e8cf721192da1ac8810c5d2f6f1690_54de4ab7-5e27-4a89-85fa-9ef4c6c75e9c.webp?v=1714888138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f3326094e8cf721192da1ac8810c5d2f6f1690_54de4ab7-5e27-4a89-85fa-9ef4c6c75e9c.webp?v=1714888138","width":2000},{"alt":null,"id":23889598087267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/245e8c8f3080a72fc5799547018c26962dedaa47_a32a900c-b7bf-469b-b6e7-be0a5e1079b1.webp?v=1714888140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/245e8c8f3080a72fc5799547018c26962dedaa47_a32a900c-b7bf-469b-b6e7-be0a5e1079b1.webp?v=1714888140","width":2000},{"alt":null,"id":23889598644323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15efbe36455b213682a2b64e39801edb9883f079_16985f0f-e2e8-4ae0-ab09-31883550ca34.webp?v=1714888143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15efbe36455b213682a2b64e39801edb9883f079_16985f0f-e2e8-4ae0-ab09-31883550ca34.webp?v=1714888143","width":2000},{"alt":null,"id":23889599234147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2575a82bdc3518a90d3acb325d181b86fc0250c_fbca3502-bfbe-4f96-8562-4c4b5ddb26ac.webp?v=1714888145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2575a82bdc3518a90d3acb325d181b86fc0250c_fbca3502-bfbe-4f96-8562-4c4b5ddb26ac.webp?v=1714888145","width":2000},{"alt":null,"id":23889599725667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc74a9ef3f0629d078d1bb0a843b2398afa0251a_631f898b-65b2-483b-b6d2-f0353aca7a29.webp?v=1714888148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc74a9ef3f0629d078d1bb0a843b2398afa0251a_631f898b-65b2-483b-b6d2-f0353aca7a29.webp?v=1714888148","width":2000},{"alt":null,"id":23889600118883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae84b4deda1888496562ea7f43544280ccf97fb_afcdebfb-55d0-4813-b413-10d7d342e6b7.webp?v=1714888150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ae84b4deda1888496562ea7f43544280ccf97fb_afcdebfb-55d0-4813-b413-10d7d342e6b7.webp?v=1714888150","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902602190947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484303245411,"product_id":7413950775395,"position":4,"created_at":"2024-05-05T13:48:56+08:00","updated_at":"2024-05-05T13:48:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136","variant_ids":[41902602190947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23889596809315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902602289251,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302852195,"product_id":7413950775395,"position":3,"created_at":"2024-05-05T13:48:53+08:00","updated_at":"2024-05-05T13:48:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4190ae3789c5e4e2d9b5d8e1e3b7f8927118a6a2_72244a0d-9bf9-4909-a4c6-035968ea79b5.webp?v=1714888133","variant_ids":[41902602289251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23889596448867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4190ae3789c5e4e2d9b5d8e1e3b7f8927118a6a2_72244a0d-9bf9-4909-a4c6-035968ea79b5.webp?v=1714888133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902602748003,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484302393443,"product_id":7413950775395,"position":2,"created_at":"2024-05-05T13:48:51+08:00","updated_at":"2024-05-05T13:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59122d52bc7cc9dec84e2473745a2e11389aa965_a3ef9c18-2b70-4bf6-af09-0dd6189206c1.webp?v=1714888131","variant_ids":[41902602748003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23889595957347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59122d52bc7cc9dec84e2473745a2e11389aa965_a3ef9c18-2b70-4bf6-af09-0dd6189206c1.webp?v=1714888131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902602190947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484303245411,"product_id":7413950775395,"position":4,"created_at":"2024-05-05T13:48:56+08:00","updated_at":"2024-05-05T13:48:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136","variant_ids":[41902602190947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Twenty One Point Five - 21.5 - Mundane Everyday - 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-RL01","featured_media":{"alt":null,"id":23889596809315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/365644a1edb6136249afdaa2ca727e4db170b57d_21e345d7-2c8f-4ae0-8973-e362eb112fc8.webp?v=1714888136"}},"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: "停產"
}