$product = {"id":7414633726051,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb110","description":null,"published_at":"2024-06-11T17:52:40+08:00","created_at":"2024-05-05T14:34:58+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 13 mini","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":41907917422691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31485910745187,"product_id":7414633726051,"position":3,"created_at":"2024-05-05T14:35:05+08:00","updated_at":"2024-05-05T14:35:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905","variant_ids":[41907917422691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - 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":"MPB0122824-PB110","featured_media":{"alt":null,"id":23891245858915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907917488227,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31485911826531,"product_id":7414633726051,"position":4,"created_at":"2024-05-05T14:35:07+08:00","updated_at":"2024-05-05T14:35:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f18c3059cb13420c1be760773aea574530ebcc_2d2e1cbc-683b-4eb3-8147-2b110c6c5f47.webp?v=1714890907","variant_ids":[41907917488227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - 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":"MPB0122804-PB110","featured_media":{"alt":null,"id":23891247267939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f18c3059cb13420c1be760773aea574530ebcc_2d2e1cbc-683b-4eb3-8147-2b110c6c5f47.webp?v=1714890907"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907917815907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31485914644579,"product_id":7414633726051,"position":6,"created_at":"2024-05-05T14:35:12+08:00","updated_at":"2024-05-05T14:35:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7dffd1701f8a1f7380aaba4d693bd1a4d5208_a897d1da-2ac4-4502-80f5-96d87a207b2b.webp?v=1714890912","variant_ids":[41907917815907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - 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":"MPB01228J5-PB110","featured_media":{"alt":null,"id":23891249791075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7dffd1701f8a1f7380aaba4d693bd1a4d5208_a897d1da-2ac4-4502-80f5-96d87a207b2b.webp?v=1714890912"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ff5b2cb541072df6298361dd915b71bccd5cad_705f6dd8-9995-4370-a660-78f85c5d7b9b.webp?v=1714890901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e432448bb55a1eb0731c6c13e0987523d95722d_206d7ed3-42a7-4957-b235-1c1c3b7cc8e6.webp?v=1714890903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f18c3059cb13420c1be760773aea574530ebcc_2d2e1cbc-683b-4eb3-8147-2b110c6c5f47.webp?v=1714890907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a3985c7eb8e68ddc9544aa59f9691e4f9ce585_4dc23917-e0bf-4690-96d7-b6005ce5d1ff.webp?v=1714890910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7dffd1701f8a1f7380aaba4d693bd1a4d5208_a897d1da-2ac4-4502-80f5-96d87a207b2b.webp?v=1714890912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0db9287ad29c3aa4ff514a2b9ed36cbcf32008c_4b26a951-e292-44a2-a250-d10383abb429.webp?v=1714890914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2e10f296a90daaa10d2c7d0920ff817f33abfd_5897d92c-7f6c-4d38-b3ca-f3a366e8d931.webp?v=1714890917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a9f351e673057e774bff33da691c0431eba680_7642e148-72b7-4b83-b928-de2093ea085e.webp?v=1714890920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3425dbb5ac9fb30b595fc2cb177028ddfe3f5446_d03d444c-6875-40c5-b262-a36d3dab5e0a.webp?v=1714890922"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ff5b2cb541072df6298361dd915b71bccd5cad_705f6dd8-9995-4370-a660-78f85c5d7b9b.webp?v=1714890901","options":["color"],"media":[{"alt":null,"id":23891243466851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ff5b2cb541072df6298361dd915b71bccd5cad_705f6dd8-9995-4370-a660-78f85c5d7b9b.webp?v=1714890901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ff5b2cb541072df6298361dd915b71bccd5cad_705f6dd8-9995-4370-a660-78f85c5d7b9b.webp?v=1714890901","width":2000},{"alt":null,"id":23891244482659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e432448bb55a1eb0731c6c13e0987523d95722d_206d7ed3-42a7-4957-b235-1c1c3b7cc8e6.webp?v=1714890903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e432448bb55a1eb0731c6c13e0987523d95722d_206d7ed3-42a7-4957-b235-1c1c3b7cc8e6.webp?v=1714890903","width":2000},{"alt":null,"id":23891245858915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905","width":2000},{"alt":null,"id":23891247267939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f18c3059cb13420c1be760773aea574530ebcc_2d2e1cbc-683b-4eb3-8147-2b110c6c5f47.webp?v=1714890907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f18c3059cb13420c1be760773aea574530ebcc_2d2e1cbc-683b-4eb3-8147-2b110c6c5f47.webp?v=1714890907","width":2000},{"alt":null,"id":23891248644195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a3985c7eb8e68ddc9544aa59f9691e4f9ce585_4dc23917-e0bf-4690-96d7-b6005ce5d1ff.webp?v=1714890910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a3985c7eb8e68ddc9544aa59f9691e4f9ce585_4dc23917-e0bf-4690-96d7-b6005ce5d1ff.webp?v=1714890910","width":2000},{"alt":null,"id":23891249791075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7dffd1701f8a1f7380aaba4d693bd1a4d5208_a897d1da-2ac4-4502-80f5-96d87a207b2b.webp?v=1714890912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7dffd1701f8a1f7380aaba4d693bd1a4d5208_a897d1da-2ac4-4502-80f5-96d87a207b2b.webp?v=1714890912","width":2000},{"alt":null,"id":23891251069027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0db9287ad29c3aa4ff514a2b9ed36cbcf32008c_4b26a951-e292-44a2-a250-d10383abb429.webp?v=1714890914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0db9287ad29c3aa4ff514a2b9ed36cbcf32008c_4b26a951-e292-44a2-a250-d10383abb429.webp?v=1714890914","width":2000},{"alt":null,"id":23891252478051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2e10f296a90daaa10d2c7d0920ff817f33abfd_5897d92c-7f6c-4d38-b3ca-f3a366e8d931.webp?v=1714890917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2e10f296a90daaa10d2c7d0920ff817f33abfd_5897d92c-7f6c-4d38-b3ca-f3a366e8d931.webp?v=1714890917","width":2000},{"alt":null,"id":23891254214755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a9f351e673057e774bff33da691c0431eba680_7642e148-72b7-4b83-b928-de2093ea085e.webp?v=1714890920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a9f351e673057e774bff33da691c0431eba680_7642e148-72b7-4b83-b928-de2093ea085e.webp?v=1714890920","width":2000},{"alt":null,"id":23891255623779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3425dbb5ac9fb30b595fc2cb177028ddfe3f5446_d03d444c-6875-40c5-b262-a36d3dab5e0a.webp?v=1714890922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3425dbb5ac9fb30b595fc2cb177028ddfe3f5446_d03d444c-6875-40c5-b262-a36d3dab5e0a.webp?v=1714890922","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907917422691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31485910745187,"product_id":7414633726051,"position":3,"created_at":"2024-05-05T14:35:05+08:00","updated_at":"2024-05-05T14:35:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905","variant_ids":[41907917422691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - 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":"MPB0122824-PB110","featured_media":{"alt":null,"id":23891245858915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907917488227,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31485911826531,"product_id":7414633726051,"position":4,"created_at":"2024-05-05T14:35:07+08:00","updated_at":"2024-05-05T14:35:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f18c3059cb13420c1be760773aea574530ebcc_2d2e1cbc-683b-4eb3-8147-2b110c6c5f47.webp?v=1714890907","variant_ids":[41907917488227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - 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":"MPB0122804-PB110","featured_media":{"alt":null,"id":23891247267939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f18c3059cb13420c1be760773aea574530ebcc_2d2e1cbc-683b-4eb3-8147-2b110c6c5f47.webp?v=1714890907"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907917815907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31485914644579,"product_id":7414633726051,"position":6,"created_at":"2024-05-05T14:35:12+08:00","updated_at":"2024-05-05T14:35:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7dffd1701f8a1f7380aaba4d693bd1a4d5208_a897d1da-2ac4-4502-80f5-96d87a207b2b.webp?v=1714890912","variant_ids":[41907917815907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - 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":"MPB01228J5-PB110","featured_media":{"alt":null,"id":23891249791075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7dffd1701f8a1f7380aaba4d693bd1a4d5208_a897d1da-2ac4-4502-80f5-96d87a207b2b.webp?v=1714890912"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907917422691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB110","requires_shipping":true,"taxable":true,"featured_image":{"id":31485910745187,"product_id":7414633726051,"position":3,"created_at":"2024-05-05T14:35:05+08:00","updated_at":"2024-05-05T14:35:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905","variant_ids":[41907917422691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2-D2-復古系列 - 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":"MPB0122824-PB110","featured_media":{"alt":null,"id":23891245858915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/394e950c637d6d35fbab5e615d62c2d791006f43_508e6497-0ffa-4e47-9cbc-bd642ecf62dc.webp?v=1714890905"}},"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: "停產"
}