$product = {"id":7411416727651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc04","description":null,"published_at":"2024-06-11T17:44:24+08:00","created_at":"2024-05-05T00:25:42+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":41898617340003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480373575779,"product_id":7411416727651,"position":3,"created_at":"2024-05-05T00:25:49+08:00","updated_at":"2024-05-05T00:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949","variant_ids":[41898617340003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23885625327715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898617405539,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480375672931,"product_id":7411416727651,"position":7,"created_at":"2024-05-05T00:25:59+08:00","updated_at":"2024-05-05T00:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e8773816d78927ae1b9d682da611f07b6591fc_e792fdd8-cb6b-43a2-b166-d74da9125464.webp?v=1714839959","variant_ids":[41898617405539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23885627424867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e8773816d78927ae1b9d682da611f07b6591fc_e792fdd8-cb6b-43a2-b166-d74da9125464.webp?v=1714839959"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898617765987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480375148643,"product_id":7411416727651,"position":6,"created_at":"2024-05-05T00:25:57+08:00","updated_at":"2024-05-05T00:25:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60482852ef7370d5e9419430d02a3b7f518fe3d2_34f0ed3f-c9b3-4772-9a0f-50b233764a3c.webp?v=1714839957","variant_ids":[41898617765987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23885626966115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60482852ef7370d5e9419430d02a3b7f518fe3d2_34f0ed3f-c9b3-4772-9a0f-50b233764a3c.webp?v=1714839957"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01bd3bd38a8927e6546ea068da51835595558b9b_23b4d791-626e-468e-b519-bc165d6895b2.webp?v=1714839945","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23b56fa369720def6c3441062457b6266b344b1_87d0f3d6-7355-48c7-9a69-787660a46ef0.webp?v=1714839947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fcf1d965cef972aad29c9be4bb44ce8263ce250_5752aa8c-629b-41d2-98b2-45b441bb009b.webp?v=1714839952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39c8e8bf6aae707b78cfdc6643e231a31b81312_8d9ac588-35fd-4430-8851-381682ae617f.webp?v=1714839954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60482852ef7370d5e9419430d02a3b7f518fe3d2_34f0ed3f-c9b3-4772-9a0f-50b233764a3c.webp?v=1714839957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e8773816d78927ae1b9d682da611f07b6591fc_e792fdd8-cb6b-43a2-b166-d74da9125464.webp?v=1714839959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c978dc809d1f1fce56f9e7c25ca7920c561a52_c3746adc-165d-4e0d-9f20-22ad39bb6ee3.webp?v=1714839961","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04bd6595ef89242b9e93a0f352fd51ef573eba4_e33e73f9-97f3-4912-b642-e2a8de9603b1.webp?v=1714839964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8feda8ceee5d00e45540961d7ee6f8c7719d4ce_6091f6cf-9b07-487b-9774-aa8c7c9ab752.webp?v=1714839967"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01bd3bd38a8927e6546ea068da51835595558b9b_23b4d791-626e-468e-b519-bc165d6895b2.webp?v=1714839945","options":["color"],"media":[{"alt":null,"id":23885624344675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01bd3bd38a8927e6546ea068da51835595558b9b_23b4d791-626e-468e-b519-bc165d6895b2.webp?v=1714839945"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01bd3bd38a8927e6546ea068da51835595558b9b_23b4d791-626e-468e-b519-bc165d6895b2.webp?v=1714839945","width":2000},{"alt":null,"id":23885624803427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23b56fa369720def6c3441062457b6266b344b1_87d0f3d6-7355-48c7-9a69-787660a46ef0.webp?v=1714839947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c23b56fa369720def6c3441062457b6266b344b1_87d0f3d6-7355-48c7-9a69-787660a46ef0.webp?v=1714839947","width":2000},{"alt":null,"id":23885625327715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949","width":2000},{"alt":null,"id":23885625852003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fcf1d965cef972aad29c9be4bb44ce8263ce250_5752aa8c-629b-41d2-98b2-45b441bb009b.webp?v=1714839952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fcf1d965cef972aad29c9be4bb44ce8263ce250_5752aa8c-629b-41d2-98b2-45b441bb009b.webp?v=1714839952","width":2000},{"alt":null,"id":23885626376291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39c8e8bf6aae707b78cfdc6643e231a31b81312_8d9ac588-35fd-4430-8851-381682ae617f.webp?v=1714839954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39c8e8bf6aae707b78cfdc6643e231a31b81312_8d9ac588-35fd-4430-8851-381682ae617f.webp?v=1714839954","width":2000},{"alt":null,"id":23885626966115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60482852ef7370d5e9419430d02a3b7f518fe3d2_34f0ed3f-c9b3-4772-9a0f-50b233764a3c.webp?v=1714839957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60482852ef7370d5e9419430d02a3b7f518fe3d2_34f0ed3f-c9b3-4772-9a0f-50b233764a3c.webp?v=1714839957","width":2000},{"alt":null,"id":23885627424867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e8773816d78927ae1b9d682da611f07b6591fc_e792fdd8-cb6b-43a2-b166-d74da9125464.webp?v=1714839959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e8773816d78927ae1b9d682da611f07b6591fc_e792fdd8-cb6b-43a2-b166-d74da9125464.webp?v=1714839959","width":2000},{"alt":null,"id":23885627916387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c978dc809d1f1fce56f9e7c25ca7920c561a52_c3746adc-165d-4e0d-9f20-22ad39bb6ee3.webp?v=1714839961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50c978dc809d1f1fce56f9e7c25ca7920c561a52_c3746adc-165d-4e0d-9f20-22ad39bb6ee3.webp?v=1714839961","width":2000},{"alt":null,"id":23885628309603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04bd6595ef89242b9e93a0f352fd51ef573eba4_e33e73f9-97f3-4912-b642-e2a8de9603b1.webp?v=1714839964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04bd6595ef89242b9e93a0f352fd51ef573eba4_e33e73f9-97f3-4912-b642-e2a8de9603b1.webp?v=1714839964","width":2000},{"alt":null,"id":23885628768355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8feda8ceee5d00e45540961d7ee6f8c7719d4ce_6091f6cf-9b07-487b-9774-aa8c7c9ab752.webp?v=1714839967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8feda8ceee5d00e45540961d7ee6f8c7719d4ce_6091f6cf-9b07-487b-9774-aa8c7c9ab752.webp?v=1714839967","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898617340003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480373575779,"product_id":7411416727651,"position":3,"created_at":"2024-05-05T00:25:49+08:00","updated_at":"2024-05-05T00:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949","variant_ids":[41898617340003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23885625327715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898617405539,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480375672931,"product_id":7411416727651,"position":7,"created_at":"2024-05-05T00:25:59+08:00","updated_at":"2024-05-05T00:25:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e8773816d78927ae1b9d682da611f07b6591fc_e792fdd8-cb6b-43a2-b166-d74da9125464.webp?v=1714839959","variant_ids":[41898617405539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23885627424867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8e8773816d78927ae1b9d682da611f07b6591fc_e792fdd8-cb6b-43a2-b166-d74da9125464.webp?v=1714839959"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898617765987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480375148643,"product_id":7411416727651,"position":6,"created_at":"2024-05-05T00:25:57+08:00","updated_at":"2024-05-05T00:25:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60482852ef7370d5e9419430d02a3b7f518fe3d2_34f0ed3f-c9b3-4772-9a0f-50b233764a3c.webp?v=1714839957","variant_ids":[41898617765987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23885626966115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60482852ef7370d5e9419430d02a3b7f518fe3d2_34f0ed3f-c9b3-4772-9a0f-50b233764a3c.webp?v=1714839957"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898617340003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480373575779,"product_id":7411416727651,"position":3,"created_at":"2024-05-05T00:25:49+08:00","updated_at":"2024-05-05T00:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949","variant_ids":[41898617340003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23885625327715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9b292da61a62376fb0a6ccac00c827e60a2943_b38963ea-f591-4b99-9268-29c729f3dd9e.webp?v=1714839949"}},"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: "停產"
}