$product = {"id":7414283468899,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pc12","description":null,"published_at":"2024-06-11T17:50:29+08:00","created_at":"2024-05-05T14:20:05+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":41905415782499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485064740963,"product_id":7414283468899,"position":3,"created_at":"2024-05-05T14:20:13+08:00","updated_at":"2024-05-05T14:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013","variant_ids":[41905415782499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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-PC12","featured_media":{"alt":null,"id":23890379505763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905415848035,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485069656163,"product_id":7414283468899,"position":6,"created_at":"2024-05-05T14:20:20+08:00","updated_at":"2024-05-05T14:20:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1113135d126fbaf98c2a53f3fbff0217d8dd8785_f08ef338-6387-4dd3-b2c0-b49ad4c34adf.webp?v=1714890020","variant_ids":[41905415848035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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-PC12","featured_media":{"alt":null,"id":23890384781411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1113135d126fbaf98c2a53f3fbff0217d8dd8785_f08ef338-6387-4dd3-b2c0-b49ad4c34adf.webp?v=1714890020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905416142947,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485063233635,"product_id":7414283468899,"position":2,"created_at":"2024-05-05T14:20:10+08:00","updated_at":"2024-05-05T14:20:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e63cb66f9867e5a8a26aba94e7b0b0c1154bec74_fc316182-362f-4829-af8c-b4949b920132.webp?v=1714890010","variant_ids":[41905416142947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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-PC12","featured_media":{"alt":null,"id":23890378096739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e63cb66f9867e5a8a26aba94e7b0b0c1154bec74_fc316182-362f-4829-af8c-b4949b920132.webp?v=1714890010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905b11473458f851496920b52c214d79ae5cf383_d5708a54-1620-4e32-bc57-46a672076887.webp?v=1714890008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e63cb66f9867e5a8a26aba94e7b0b0c1154bec74_fc316182-362f-4829-af8c-b4949b920132.webp?v=1714890010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bb58f6f4caf7e191d4d9a3ef5be06cf6f6c643_feaffa31-cfaf-40a2-a7a4-4deae80e6b7f.webp?v=1714890015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2253ef7e0c6658208d55a0ce91dbdbbd3559b86f_36b74f0a-b158-4957-81a2-e07e255f15d1.webp?v=1714890018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1113135d126fbaf98c2a53f3fbff0217d8dd8785_f08ef338-6387-4dd3-b2c0-b49ad4c34adf.webp?v=1714890020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0048fff0562b0534bbcade068aa7c870812c31a0_cf7a820b-db29-405d-89da-71c02957cae7.webp?v=1714890022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6c12d8a5904a97b16e9524fb34c94efc47dece_d0d53de5-1cdd-43d3-ac32-fda9f13501dc.webp?v=1714890025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701cc212834e98d04638b1087008f2d43ac35e52_445b3753-b723-4575-bcda-d726e38b14a4.webp?v=1714890028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097442514b944db1a208ff515ca140d4c342a06c_73abb51f-61f4-4a0f-9b41-e1de261fd781.webp?v=1714890030"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905b11473458f851496920b52c214d79ae5cf383_d5708a54-1620-4e32-bc57-46a672076887.webp?v=1714890008","options":["color"],"media":[{"alt":null,"id":23890376654947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905b11473458f851496920b52c214d79ae5cf383_d5708a54-1620-4e32-bc57-46a672076887.webp?v=1714890008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/905b11473458f851496920b52c214d79ae5cf383_d5708a54-1620-4e32-bc57-46a672076887.webp?v=1714890008","width":2000},{"alt":null,"id":23890378096739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e63cb66f9867e5a8a26aba94e7b0b0c1154bec74_fc316182-362f-4829-af8c-b4949b920132.webp?v=1714890010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e63cb66f9867e5a8a26aba94e7b0b0c1154bec74_fc316182-362f-4829-af8c-b4949b920132.webp?v=1714890010","width":2000},{"alt":null,"id":23890379505763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013","width":2000},{"alt":null,"id":23890381471843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bb58f6f4caf7e191d4d9a3ef5be06cf6f6c643_feaffa31-cfaf-40a2-a7a4-4deae80e6b7f.webp?v=1714890015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74bb58f6f4caf7e191d4d9a3ef5be06cf6f6c643_feaffa31-cfaf-40a2-a7a4-4deae80e6b7f.webp?v=1714890015","width":2000},{"alt":null,"id":23890383241315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2253ef7e0c6658208d55a0ce91dbdbbd3559b86f_36b74f0a-b158-4957-81a2-e07e255f15d1.webp?v=1714890018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2253ef7e0c6658208d55a0ce91dbdbbd3559b86f_36b74f0a-b158-4957-81a2-e07e255f15d1.webp?v=1714890018","width":2000},{"alt":null,"id":23890384781411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1113135d126fbaf98c2a53f3fbff0217d8dd8785_f08ef338-6387-4dd3-b2c0-b49ad4c34adf.webp?v=1714890020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1113135d126fbaf98c2a53f3fbff0217d8dd8785_f08ef338-6387-4dd3-b2c0-b49ad4c34adf.webp?v=1714890020","width":2000},{"alt":null,"id":23890386649187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0048fff0562b0534bbcade068aa7c870812c31a0_cf7a820b-db29-405d-89da-71c02957cae7.webp?v=1714890022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0048fff0562b0534bbcade068aa7c870812c31a0_cf7a820b-db29-405d-89da-71c02957cae7.webp?v=1714890022","width":2000},{"alt":null,"id":23890389237859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6c12d8a5904a97b16e9524fb34c94efc47dece_d0d53de5-1cdd-43d3-ac32-fda9f13501dc.webp?v=1714890025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6c12d8a5904a97b16e9524fb34c94efc47dece_d0d53de5-1cdd-43d3-ac32-fda9f13501dc.webp?v=1714890025","width":2000},{"alt":null,"id":23890395136099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701cc212834e98d04638b1087008f2d43ac35e52_445b3753-b723-4575-bcda-d726e38b14a4.webp?v=1714890028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701cc212834e98d04638b1087008f2d43ac35e52_445b3753-b723-4575-bcda-d726e38b14a4.webp?v=1714890028","width":2000},{"alt":null,"id":23890397102179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097442514b944db1a208ff515ca140d4c342a06c_73abb51f-61f4-4a0f-9b41-e1de261fd781.webp?v=1714890030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097442514b944db1a208ff515ca140d4c342a06c_73abb51f-61f4-4a0f-9b41-e1de261fd781.webp?v=1714890030","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905415782499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485064740963,"product_id":7414283468899,"position":3,"created_at":"2024-05-05T14:20:13+08:00","updated_at":"2024-05-05T14:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013","variant_ids":[41905415782499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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-PC12","featured_media":{"alt":null,"id":23890379505763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905415848035,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485069656163,"product_id":7414283468899,"position":6,"created_at":"2024-05-05T14:20:20+08:00","updated_at":"2024-05-05T14:20:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1113135d126fbaf98c2a53f3fbff0217d8dd8785_f08ef338-6387-4dd3-b2c0-b49ad4c34adf.webp?v=1714890020","variant_ids":[41905415848035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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-PC12","featured_media":{"alt":null,"id":23890384781411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1113135d126fbaf98c2a53f3fbff0217d8dd8785_f08ef338-6387-4dd3-b2c0-b49ad4c34adf.webp?v=1714890020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905416142947,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485063233635,"product_id":7414283468899,"position":2,"created_at":"2024-05-05T14:20:10+08:00","updated_at":"2024-05-05T14:20:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e63cb66f9867e5a8a26aba94e7b0b0c1154bec74_fc316182-362f-4829-af8c-b4949b920132.webp?v=1714890010","variant_ids":[41905416142947]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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-PC12","featured_media":{"alt":null,"id":23890378096739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e63cb66f9867e5a8a26aba94e7b0b0c1154bec74_fc316182-362f-4829-af8c-b4949b920132.webp?v=1714890010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905415782499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485064740963,"product_id":7414283468899,"position":3,"created_at":"2024-05-05T14:20:13+08:00","updated_at":"2024-05-05T14:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013","variant_ids":[41905415782499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-園丁-幽默系列 - 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-PC12","featured_media":{"alt":null,"id":23890379505763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/301d3028d49cf42dd9643721858b4f25bb613a87_d4d195d8-49c1-4032-b725-f684b0fa3ff8.webp?v=1714890013"}},"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: "停產"
}