$product = {"id":7408081207395,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑","handle":"iphone-13-mini-mod-nx-printable-pb17","description":null,"published_at":"2024-06-11T16:30:53+08:00","created_at":"2024-05-03T11:55:51+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":41882456719459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31471144566883,"product_id":7408081207395,"position":8,"created_at":"2024-05-03T11:56:10+08:00","updated_at":"2024-05-03T11:56:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570","variant_ids":[41882456719459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23876049797219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882456784995,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31471141748835,"product_id":7408081207395,"position":2,"created_at":"2024-05-03T11:55:56+08:00","updated_at":"2024-05-03T11:55:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1938ff3d1a1b896479286dcccb11c0585674ce40_6fa91bae-568e-4dec-900b-f2248b20625c.webp?v=1714708556","variant_ids":[41882456784995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23876046946403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1938ff3d1a1b896479286dcccb11c0585674ce40_6fa91bae-568e-4dec-900b-f2248b20625c.webp?v=1714708556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882457047139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31471144108131,"product_id":7408081207395,"position":7,"created_at":"2024-05-03T11:56:07+08:00","updated_at":"2024-05-03T11:56:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13aea561c233d55242b6a7260ea1b6aa40dd755_23a25996-649a-4cfc-9a8d-a69ba6665cfa.webp?v=1714708567","variant_ids":[41882457047139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23876049404003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13aea561c233d55242b6a7260ea1b6aa40dd755_23a25996-649a-4cfc-9a8d-a69ba6665cfa.webp?v=1714708567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836de26f7f68ed9bcbb387cbc70a35cde9227cbf_bf4a23de-9fb1-4361-9846-1b7beaeff2b3.webp?v=1714708554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1938ff3d1a1b896479286dcccb11c0585674ce40_6fa91bae-568e-4dec-900b-f2248b20625c.webp?v=1714708556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8d2689bca2a5d0a1bd69aa06eb6ce137643d59_7a4784ed-22c7-47ff-9a9a-3849473017dc.webp?v=1714708558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f517885f2b145090ad3724ebdbadfe3b2dcbd6ad_7652c466-2840-4347-be0f-8df2250409ac.webp?v=1714708561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632e4419878796095a410ad8cc4892c20823fe50_99e823a5-6504-4576-a2b8-78b96128f995.webp?v=1714708563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9044dd780660105e5d9b24af74642e00f4b1cc8e_42fbc347-ba3c-493a-9ce8-d1cd250d3b3e.webp?v=1714708565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13aea561c233d55242b6a7260ea1b6aa40dd755_23a25996-649a-4cfc-9a8d-a69ba6665cfa.webp?v=1714708567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d590e3e20730ff7e406d1b9782cc553dda8785d7_82828a13-78ec-4769-9c8f-ac31f0528dff.webp?v=1714708572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/665d10b10e5f7335cab70fdb3c4092992fcdbff1_6ce70a14-7233-484a-a318-618922c3beea.webp?v=1714708574"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836de26f7f68ed9bcbb387cbc70a35cde9227cbf_bf4a23de-9fb1-4361-9846-1b7beaeff2b3.webp?v=1714708554","options":["color"],"media":[{"alt":null,"id":23876046684259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836de26f7f68ed9bcbb387cbc70a35cde9227cbf_bf4a23de-9fb1-4361-9846-1b7beaeff2b3.webp?v=1714708554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/836de26f7f68ed9bcbb387cbc70a35cde9227cbf_bf4a23de-9fb1-4361-9846-1b7beaeff2b3.webp?v=1714708554","width":2000},{"alt":null,"id":23876046946403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1938ff3d1a1b896479286dcccb11c0585674ce40_6fa91bae-568e-4dec-900b-f2248b20625c.webp?v=1714708556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1938ff3d1a1b896479286dcccb11c0585674ce40_6fa91bae-568e-4dec-900b-f2248b20625c.webp?v=1714708556","width":2000},{"alt":null,"id":23876047437923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8d2689bca2a5d0a1bd69aa06eb6ce137643d59_7a4784ed-22c7-47ff-9a9a-3849473017dc.webp?v=1714708558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc8d2689bca2a5d0a1bd69aa06eb6ce137643d59_7a4784ed-22c7-47ff-9a9a-3849473017dc.webp?v=1714708558","width":2000},{"alt":null,"id":23876047896675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f517885f2b145090ad3724ebdbadfe3b2dcbd6ad_7652c466-2840-4347-be0f-8df2250409ac.webp?v=1714708561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f517885f2b145090ad3724ebdbadfe3b2dcbd6ad_7652c466-2840-4347-be0f-8df2250409ac.webp?v=1714708561","width":2000},{"alt":null,"id":23876048388195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632e4419878796095a410ad8cc4892c20823fe50_99e823a5-6504-4576-a2b8-78b96128f995.webp?v=1714708563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/632e4419878796095a410ad8cc4892c20823fe50_99e823a5-6504-4576-a2b8-78b96128f995.webp?v=1714708563","width":2000},{"alt":null,"id":23876048814179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9044dd780660105e5d9b24af74642e00f4b1cc8e_42fbc347-ba3c-493a-9ce8-d1cd250d3b3e.webp?v=1714708565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9044dd780660105e5d9b24af74642e00f4b1cc8e_42fbc347-ba3c-493a-9ce8-d1cd250d3b3e.webp?v=1714708565","width":2000},{"alt":null,"id":23876049404003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13aea561c233d55242b6a7260ea1b6aa40dd755_23a25996-649a-4cfc-9a8d-a69ba6665cfa.webp?v=1714708567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13aea561c233d55242b6a7260ea1b6aa40dd755_23a25996-649a-4cfc-9a8d-a69ba6665cfa.webp?v=1714708567","width":2000},{"alt":null,"id":23876049797219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570","width":2000},{"alt":null,"id":23876050419811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d590e3e20730ff7e406d1b9782cc553dda8785d7_82828a13-78ec-4769-9c8f-ac31f0528dff.webp?v=1714708572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d590e3e20730ff7e406d1b9782cc553dda8785d7_82828a13-78ec-4769-9c8f-ac31f0528dff.webp?v=1714708572","width":2000},{"alt":null,"id":23876050845795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/665d10b10e5f7335cab70fdb3c4092992fcdbff1_6ce70a14-7233-484a-a318-618922c3beea.webp?v=1714708574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/665d10b10e5f7335cab70fdb3c4092992fcdbff1_6ce70a14-7233-484a-a318-618922c3beea.webp?v=1714708574","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882456719459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31471144566883,"product_id":7408081207395,"position":8,"created_at":"2024-05-03T11:56:10+08:00","updated_at":"2024-05-03T11:56:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570","variant_ids":[41882456719459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23876049797219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882456784995,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31471141748835,"product_id":7408081207395,"position":2,"created_at":"2024-05-03T11:55:56+08:00","updated_at":"2024-05-03T11:55:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1938ff3d1a1b896479286dcccb11c0585674ce40_6fa91bae-568e-4dec-900b-f2248b20625c.webp?v=1714708556","variant_ids":[41882456784995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23876046946403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1938ff3d1a1b896479286dcccb11c0585674ce40_6fa91bae-568e-4dec-900b-f2248b20625c.webp?v=1714708556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882457047139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31471144108131,"product_id":7408081207395,"position":7,"created_at":"2024-05-03T11:56:07+08:00","updated_at":"2024-05-03T11:56:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13aea561c233d55242b6a7260ea1b6aa40dd755_23a25996-649a-4cfc-9a8d-a69ba6665cfa.webp?v=1714708567","variant_ids":[41882457047139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23876049404003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d13aea561c233d55242b6a7260ea1b6aa40dd755_23a25996-649a-4cfc-9a8d-a69ba6665cfa.webp?v=1714708567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882456719459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31471144566883,"product_id":7408081207395,"position":8,"created_at":"2024-05-03T11:56:10+08:00","updated_at":"2024-05-03T11:56:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570","variant_ids":[41882456719459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23876049797219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba685ddf4105379b319cadb9fdd09a66d16e9a4_02873aa2-df11-44b0-b275-273d0c6f3a97.webp?v=1714708570"}},"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: "停產"
}