$product = {"id":7408222830691,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3","handle":"iphone-13-mini-mod-nx-printable-pb26","description":null,"published_at":"2024-06-11T16:34:40+08:00","created_at":"2024-05-03T12:23:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41884029780067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31471510978659,"product_id":7408222830691,"position":3,"created_at":"2024-05-03T12:23:56+08:00","updated_at":"2024-05-03T12:23:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236","variant_ids":[41884029780067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB26","featured_media":{"alt":null,"id":23876417519715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884029943907,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31471513174115,"product_id":7408222830691,"position":7,"created_at":"2024-05-03T12:24:06+08:00","updated_at":"2024-05-03T12:24:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba6294b3f3b03f53bc09af67b48bdabea86d85dd_e786ba40-bdb8-4227-8f73-b76a22fa26a5.webp?v=1714710246","variant_ids":[41884029943907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB26","featured_media":{"alt":null,"id":23876419747939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba6294b3f3b03f53bc09af67b48bdabea86d85dd_e786ba40-bdb8-4227-8f73-b76a22fa26a5.webp?v=1714710246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884030271587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31471515041891,"product_id":7408222830691,"position":10,"created_at":"2024-05-03T12:24:13+08:00","updated_at":"2024-05-03T12:24:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc361ca63e0a0a808406168b872f68371984f15b_e1a35351-4a02-4727-ae45-0c39d302e923.webp?v=1714710253","variant_ids":[41884030271587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB26","featured_media":{"alt":null,"id":23876421550179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc361ca63e0a0a808406168b872f68371984f15b_e1a35351-4a02-4727-ae45-0c39d302e923.webp?v=1714710253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9346f08aef8e76f144bb20b1ff96ef4bfebed3cd_3955ce31-f567-4e20-8137-88af82cd9faf.webp?v=1714710231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1834dcca6813f1040fbbba3f140686bd2b5133fa_0b2257f0-03fd-430a-b4bd-c1b5d45b1748.webp?v=1714710234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145d794d768342a16036adc737cb681e27e9bdaf_911d87d8-7537-4166-9124-e5ea13e4e6b9.webp?v=1714710239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1222b1b8002f49a3634d35b4c29c083bae3fa4d5_ceb0ef52-8f2c-44bd-a43a-57821002ae87.webp?v=1714710241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c3982764bcd8d179e5db51c16b6bc901564b7_6e7e5f0e-f201-4b4f-a6eb-507fe4dddd2e.webp?v=1714710244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba6294b3f3b03f53bc09af67b48bdabea86d85dd_e786ba40-bdb8-4227-8f73-b76a22fa26a5.webp?v=1714710246","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4cc2948682b6a9e365440c5f005a4ff154e1aa_0e80d36f-b974-4ecf-a869-0e3321e54c34.webp?v=1714710248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3c26c6a5f45105ab64b56ece54bee53fe29954_060ee591-371d-4489-995f-2287d207cee9.webp?v=1714710251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc361ca63e0a0a808406168b872f68371984f15b_e1a35351-4a02-4727-ae45-0c39d302e923.webp?v=1714710253"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9346f08aef8e76f144bb20b1ff96ef4bfebed3cd_3955ce31-f567-4e20-8137-88af82cd9faf.webp?v=1714710231","options":["color"],"media":[{"alt":null,"id":23876416241763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9346f08aef8e76f144bb20b1ff96ef4bfebed3cd_3955ce31-f567-4e20-8137-88af82cd9faf.webp?v=1714710231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9346f08aef8e76f144bb20b1ff96ef4bfebed3cd_3955ce31-f567-4e20-8137-88af82cd9faf.webp?v=1714710231","width":2000},{"alt":null,"id":23876416798819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1834dcca6813f1040fbbba3f140686bd2b5133fa_0b2257f0-03fd-430a-b4bd-c1b5d45b1748.webp?v=1714710234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1834dcca6813f1040fbbba3f140686bd2b5133fa_0b2257f0-03fd-430a-b4bd-c1b5d45b1748.webp?v=1714710234","width":2000},{"alt":null,"id":23876417519715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236","width":2000},{"alt":null,"id":23876418175075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145d794d768342a16036adc737cb681e27e9bdaf_911d87d8-7537-4166-9124-e5ea13e4e6b9.webp?v=1714710239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145d794d768342a16036adc737cb681e27e9bdaf_911d87d8-7537-4166-9124-e5ea13e4e6b9.webp?v=1714710239","width":2000},{"alt":null,"id":23876418764899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1222b1b8002f49a3634d35b4c29c083bae3fa4d5_ceb0ef52-8f2c-44bd-a43a-57821002ae87.webp?v=1714710241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1222b1b8002f49a3634d35b4c29c083bae3fa4d5_ceb0ef52-8f2c-44bd-a43a-57821002ae87.webp?v=1714710241","width":2000},{"alt":null,"id":23876419190883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c3982764bcd8d179e5db51c16b6bc901564b7_6e7e5f0e-f201-4b4f-a6eb-507fe4dddd2e.webp?v=1714710244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c3982764bcd8d179e5db51c16b6bc901564b7_6e7e5f0e-f201-4b4f-a6eb-507fe4dddd2e.webp?v=1714710244","width":2000},{"alt":null,"id":23876419747939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba6294b3f3b03f53bc09af67b48bdabea86d85dd_e786ba40-bdb8-4227-8f73-b76a22fa26a5.webp?v=1714710246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba6294b3f3b03f53bc09af67b48bdabea86d85dd_e786ba40-bdb8-4227-8f73-b76a22fa26a5.webp?v=1714710246","width":2000},{"alt":null,"id":23876420436067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4cc2948682b6a9e365440c5f005a4ff154e1aa_0e80d36f-b974-4ecf-a869-0e3321e54c34.webp?v=1714710248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4cc2948682b6a9e365440c5f005a4ff154e1aa_0e80d36f-b974-4ecf-a869-0e3321e54c34.webp?v=1714710248","width":2000},{"alt":null,"id":23876421156963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3c26c6a5f45105ab64b56ece54bee53fe29954_060ee591-371d-4489-995f-2287d207cee9.webp?v=1714710251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf3c26c6a5f45105ab64b56ece54bee53fe29954_060ee591-371d-4489-995f-2287d207cee9.webp?v=1714710251","width":2000},{"alt":null,"id":23876421550179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc361ca63e0a0a808406168b872f68371984f15b_e1a35351-4a02-4727-ae45-0c39d302e923.webp?v=1714710253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc361ca63e0a0a808406168b872f68371984f15b_e1a35351-4a02-4727-ae45-0c39d302e923.webp?v=1714710253","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41884029780067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31471510978659,"product_id":7408222830691,"position":3,"created_at":"2024-05-03T12:23:56+08:00","updated_at":"2024-05-03T12:23:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236","variant_ids":[41884029780067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB26","featured_media":{"alt":null,"id":23876417519715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884029943907,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31471513174115,"product_id":7408222830691,"position":7,"created_at":"2024-05-03T12:24:06+08:00","updated_at":"2024-05-03T12:24:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba6294b3f3b03f53bc09af67b48bdabea86d85dd_e786ba40-bdb8-4227-8f73-b76a22fa26a5.webp?v=1714710246","variant_ids":[41884029943907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB26","featured_media":{"alt":null,"id":23876419747939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba6294b3f3b03f53bc09af67b48bdabea86d85dd_e786ba40-bdb8-4227-8f73-b76a22fa26a5.webp?v=1714710246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884030271587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31471515041891,"product_id":7408222830691,"position":10,"created_at":"2024-05-03T12:24:13+08:00","updated_at":"2024-05-03T12:24:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc361ca63e0a0a808406168b872f68371984f15b_e1a35351-4a02-4727-ae45-0c39d302e923.webp?v=1714710253","variant_ids":[41884030271587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB26","featured_media":{"alt":null,"id":23876421550179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc361ca63e0a0a808406168b872f68371984f15b_e1a35351-4a02-4727-ae45-0c39d302e923.webp?v=1714710253"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41884029780067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31471510978659,"product_id":7408222830691,"position":3,"created_at":"2024-05-03T12:23:56+08:00","updated_at":"2024-05-03T12:23:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236","variant_ids":[41884029780067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具3 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB26","featured_media":{"alt":null,"id":23876417519715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c37eeab999b8c1a1bf24a3bdfd8e0a74d7c0f6_3672537b-1a3a-494d-882a-208466962f3b.webp?v=1714710236"}},"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: "停產"
}