$product = {"id":7407866085475,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI","handle":"iphone-14-pro-mod-nx-printable-pb25","description":null,"published_at":"2024-06-11T16:25:02+08:00","created_at":"2024-05-03T11:05:33+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 14 Pro","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":41879828365411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31470572240995,"product_id":7407866085475,"position":5,"created_at":"2024-05-03T11:05:46+08:00","updated_at":"2024-05-03T11:05:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546","variant_ids":[41879828365411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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":"NPB0126224-PB25","featured_media":{"alt":null,"id":23875476095075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879828430947,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31470572699747,"product_id":7407866085475,"position":6,"created_at":"2024-05-03T11:05:49+08:00","updated_at":"2024-05-03T11:05:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f7e7b5a1affa8698ec1fff4473f7aa5d7b74a70_e1d39f5e-c41c-4661-a759-156c81414039.webp?v=1714705549","variant_ids":[41879828430947]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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":"NPB0126204-PB25","featured_media":{"alt":null,"id":23875476553827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f7e7b5a1affa8698ec1fff4473f7aa5d7b74a70_e1d39f5e-c41c-4661-a759-156c81414039.webp?v=1714705549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879828660323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31470570799203,"product_id":7407866085475,"position":2,"created_at":"2024-05-03T11:05:38+08:00","updated_at":"2024-05-03T11:05:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558e7d4684fbc2e12b0ef6d95d6878399066ad61_896fc809-85a0-4293-8f97-7084bfc9d10f.webp?v=1714705538","variant_ids":[41879828660323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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":"NPB01262J5-PB25","featured_media":{"alt":null,"id":23875474686051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558e7d4684fbc2e12b0ef6d95d6878399066ad61_896fc809-85a0-4293-8f97-7084bfc9d10f.webp?v=1714705538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06d2abd0ef3af2ccde6728d0e1478c4ed763592f_f1997e4c-de02-4ec6-821b-6928af7f217a.webp?v=1714705536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558e7d4684fbc2e12b0ef6d95d6878399066ad61_896fc809-85a0-4293-8f97-7084bfc9d10f.webp?v=1714705538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a4080b9f06999e5b0d1090740849c8653da45d_aba22c3c-3419-47c2-aa2f-e754b783f423.webp?v=1714705541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355dd86f9b92b01e0cedb674afa1ae429a416af2_aafa0eac-1ff6-40c2-bb6c-8d86cbd87e70.webp?v=1714705544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f7e7b5a1affa8698ec1fff4473f7aa5d7b74a70_e1d39f5e-c41c-4661-a759-156c81414039.webp?v=1714705549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d0aaadc555488e60db486ebffcd295599aa412_b87753ff-abd1-437c-a3b8-c0ae06974e3b.webp?v=1714705551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75184077d746b8d59c8fbd412c026a84b6d3af8_e0c1cca5-94d5-417e-ad42-aafc9b023b33.webp?v=1714705554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b32069f8e64e30833472c4ae1a1c61fb55f89f7_1f5e7b22-4ce9-47e6-897f-d7f6c88f97ae.webp?v=1714705556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9406e135bceea91d93646c0c5e8be48fe63baddf_5fe277a2-0521-4b4b-b254-c15880b1852a.webp?v=1714705559"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06d2abd0ef3af2ccde6728d0e1478c4ed763592f_f1997e4c-de02-4ec6-821b-6928af7f217a.webp?v=1714705536","options":["color"],"media":[{"alt":null,"id":23875474194531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06d2abd0ef3af2ccde6728d0e1478c4ed763592f_f1997e4c-de02-4ec6-821b-6928af7f217a.webp?v=1714705536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06d2abd0ef3af2ccde6728d0e1478c4ed763592f_f1997e4c-de02-4ec6-821b-6928af7f217a.webp?v=1714705536","width":2000},{"alt":null,"id":23875474686051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558e7d4684fbc2e12b0ef6d95d6878399066ad61_896fc809-85a0-4293-8f97-7084bfc9d10f.webp?v=1714705538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558e7d4684fbc2e12b0ef6d95d6878399066ad61_896fc809-85a0-4293-8f97-7084bfc9d10f.webp?v=1714705538","width":2000},{"alt":null,"id":23875475210339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a4080b9f06999e5b0d1090740849c8653da45d_aba22c3c-3419-47c2-aa2f-e754b783f423.webp?v=1714705541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7a4080b9f06999e5b0d1090740849c8653da45d_aba22c3c-3419-47c2-aa2f-e754b783f423.webp?v=1714705541","width":2000},{"alt":null,"id":23875475603555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355dd86f9b92b01e0cedb674afa1ae429a416af2_aafa0eac-1ff6-40c2-bb6c-8d86cbd87e70.webp?v=1714705544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/355dd86f9b92b01e0cedb674afa1ae429a416af2_aafa0eac-1ff6-40c2-bb6c-8d86cbd87e70.webp?v=1714705544","width":2000},{"alt":null,"id":23875476095075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546","width":2000},{"alt":null,"id":23875476553827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f7e7b5a1affa8698ec1fff4473f7aa5d7b74a70_e1d39f5e-c41c-4661-a759-156c81414039.webp?v=1714705549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f7e7b5a1affa8698ec1fff4473f7aa5d7b74a70_e1d39f5e-c41c-4661-a759-156c81414039.webp?v=1714705549","width":2000},{"alt":null,"id":23875477110883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d0aaadc555488e60db486ebffcd295599aa412_b87753ff-abd1-437c-a3b8-c0ae06974e3b.webp?v=1714705551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d0aaadc555488e60db486ebffcd295599aa412_b87753ff-abd1-437c-a3b8-c0ae06974e3b.webp?v=1714705551","width":2000},{"alt":null,"id":23875477700707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75184077d746b8d59c8fbd412c026a84b6d3af8_e0c1cca5-94d5-417e-ad42-aafc9b023b33.webp?v=1714705554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a75184077d746b8d59c8fbd412c026a84b6d3af8_e0c1cca5-94d5-417e-ad42-aafc9b023b33.webp?v=1714705554","width":2000},{"alt":null,"id":23875478126691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b32069f8e64e30833472c4ae1a1c61fb55f89f7_1f5e7b22-4ce9-47e6-897f-d7f6c88f97ae.webp?v=1714705556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b32069f8e64e30833472c4ae1a1c61fb55f89f7_1f5e7b22-4ce9-47e6-897f-d7f6c88f97ae.webp?v=1714705556","width":2000},{"alt":null,"id":23875478585443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9406e135bceea91d93646c0c5e8be48fe63baddf_5fe277a2-0521-4b4b-b254-c15880b1852a.webp?v=1714705559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9406e135bceea91d93646c0c5e8be48fe63baddf_5fe277a2-0521-4b4b-b254-c15880b1852a.webp?v=1714705559","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41879828365411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31470572240995,"product_id":7407866085475,"position":5,"created_at":"2024-05-03T11:05:46+08:00","updated_at":"2024-05-03T11:05:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546","variant_ids":[41879828365411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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":"NPB0126224-PB25","featured_media":{"alt":null,"id":23875476095075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879828430947,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31470572699747,"product_id":7407866085475,"position":6,"created_at":"2024-05-03T11:05:49+08:00","updated_at":"2024-05-03T11:05:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f7e7b5a1affa8698ec1fff4473f7aa5d7b74a70_e1d39f5e-c41c-4661-a759-156c81414039.webp?v=1714705549","variant_ids":[41879828430947]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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":"NPB0126204-PB25","featured_media":{"alt":null,"id":23875476553827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f7e7b5a1affa8698ec1fff4473f7aa5d7b74a70_e1d39f5e-c41c-4661-a759-156c81414039.webp?v=1714705549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879828660323,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31470570799203,"product_id":7407866085475,"position":2,"created_at":"2024-05-03T11:05:38+08:00","updated_at":"2024-05-03T11:05:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558e7d4684fbc2e12b0ef6d95d6878399066ad61_896fc809-85a0-4293-8f97-7084bfc9d10f.webp?v=1714705538","variant_ids":[41879828660323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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":"NPB01262J5-PB25","featured_media":{"alt":null,"id":23875474686051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558e7d4684fbc2e12b0ef6d95d6878399066ad61_896fc809-85a0-4293-8f97-7084bfc9d10f.webp?v=1714705538"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41879828365411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31470572240995,"product_id":7407866085475,"position":5,"created_at":"2024-05-03T11:05:46+08:00","updated_at":"2024-05-03T11:05:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546","variant_ids":[41879828365411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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":"NPB0126224-PB25","featured_media":{"alt":null,"id":23875476095075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/522fa61da0dd8f4248664d7a245e0deadc9e8367_c540430f-6176-4b9f-9831-7eb5fe771549.webp?v=1714705546"}},"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: "停產"
}