$product = {"id":7414387441763,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pc14","description":null,"published_at":"2024-06-11T17:51:03+08:00","created_at":"2024-05-05T14:23:52+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":41906113413219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485320167523,"product_id":7414387441763,"position":5,"created_at":"2024-05-05T14:24:03+08:00","updated_at":"2024-05-05T14:24:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243","variant_ids":[41906113413219]},"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-PC14","featured_media":{"alt":null,"id":23890637127779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906113511523,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485333143651,"product_id":7414387441763,"position":9,"created_at":"2024-05-05T14:24:12+08:00","updated_at":"2024-05-05T14:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734060f4eed804627a19d48f9afe557559219e99_54c961eb-c0c2-491f-8683-18baaaecc231.webp?v=1714890252","variant_ids":[41906113511523]},"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-PC14","featured_media":{"alt":null,"id":23890650824803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734060f4eed804627a19d48f9afe557559219e99_54c961eb-c0c2-491f-8683-18baaaecc231.webp?v=1714890252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906114101347,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485314170979,"product_id":7414387441763,"position":3,"created_at":"2024-05-05T14:23:58+08:00","updated_at":"2024-05-05T14:23:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ace039533e66b28cfd4b94d52f376ded1e3c27_7e704167-2728-436a-a4c0-bfc8656c1bf1.webp?v=1714890238","variant_ids":[41906114101347]},"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-PC14","featured_media":{"alt":null,"id":23890631098467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ace039533e66b28cfd4b94d52f376ded1e3c27_7e704167-2728-436a-a4c0-bfc8656c1bf1.webp?v=1714890238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b16bdad13b9bc3e181ed27af4f48e25aa65fda4_8e4f4b6d-653e-4358-ad47-16dc5098e9aa.webp?v=1714890234","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7a46dd5ea605bbf9f06a824f61eb8230e76468e_82c666f4-4cd2-4ca5-baab-44326e3c094d.webp?v=1714890236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ace039533e66b28cfd4b94d52f376ded1e3c27_7e704167-2728-436a-a4c0-bfc8656c1bf1.webp?v=1714890238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7beab039c2611028d08da638f9bffdcf47d99441_6149b2fc-2296-4293-8545-87fa9d2ff316.webp?v=1714890241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e26f1fbb870d4cddfd33e2b3cf96ac666a34697_14de1bec-0119-4a06-a5c7-a136fad90cd7.webp?v=1714890245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aff5fb502032b08c8fb994931861a10a3ceaf19_08f53fe8-e543-40cf-ad0d-2dc770d5472f.webp?v=1714890247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81b9c205addb735f73d50760bb3d30c01724c4_31055a7b-5669-4630-b8f9-b04d7b75a62b.webp?v=1714890250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734060f4eed804627a19d48f9afe557559219e99_54c961eb-c0c2-491f-8683-18baaaecc231.webp?v=1714890252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521be59ee2c712f00448f09e1ba870d241873060_7468942a-1859-45c8-a28c-71130f45a270.webp?v=1714890254"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b16bdad13b9bc3e181ed27af4f48e25aa65fda4_8e4f4b6d-653e-4358-ad47-16dc5098e9aa.webp?v=1714890234","options":["color"],"media":[{"alt":null,"id":23890625167459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b16bdad13b9bc3e181ed27af4f48e25aa65fda4_8e4f4b6d-653e-4358-ad47-16dc5098e9aa.webp?v=1714890234"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b16bdad13b9bc3e181ed27af4f48e25aa65fda4_8e4f4b6d-653e-4358-ad47-16dc5098e9aa.webp?v=1714890234","width":2000},{"alt":null,"id":23890628018275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7a46dd5ea605bbf9f06a824f61eb8230e76468e_82c666f4-4cd2-4ca5-baab-44326e3c094d.webp?v=1714890236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7a46dd5ea605bbf9f06a824f61eb8230e76468e_82c666f4-4cd2-4ca5-baab-44326e3c094d.webp?v=1714890236","width":2000},{"alt":null,"id":23890631098467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ace039533e66b28cfd4b94d52f376ded1e3c27_7e704167-2728-436a-a4c0-bfc8656c1bf1.webp?v=1714890238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ace039533e66b28cfd4b94d52f376ded1e3c27_7e704167-2728-436a-a4c0-bfc8656c1bf1.webp?v=1714890238","width":2000},{"alt":null,"id":23890634244195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7beab039c2611028d08da638f9bffdcf47d99441_6149b2fc-2296-4293-8545-87fa9d2ff316.webp?v=1714890241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7beab039c2611028d08da638f9bffdcf47d99441_6149b2fc-2296-4293-8545-87fa9d2ff316.webp?v=1714890241","width":2000},{"alt":null,"id":23890637127779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243","width":2000},{"alt":null,"id":23890640961635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e26f1fbb870d4cddfd33e2b3cf96ac666a34697_14de1bec-0119-4a06-a5c7-a136fad90cd7.webp?v=1714890245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e26f1fbb870d4cddfd33e2b3cf96ac666a34697_14de1bec-0119-4a06-a5c7-a136fad90cd7.webp?v=1714890245","width":2000},{"alt":null,"id":23890644303971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aff5fb502032b08c8fb994931861a10a3ceaf19_08f53fe8-e543-40cf-ad0d-2dc770d5472f.webp?v=1714890247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5aff5fb502032b08c8fb994931861a10a3ceaf19_08f53fe8-e543-40cf-ad0d-2dc770d5472f.webp?v=1714890247","width":2000},{"alt":null,"id":23890647351395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81b9c205addb735f73d50760bb3d30c01724c4_31055a7b-5669-4630-b8f9-b04d7b75a62b.webp?v=1714890250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed81b9c205addb735f73d50760bb3d30c01724c4_31055a7b-5669-4630-b8f9-b04d7b75a62b.webp?v=1714890250","width":2000},{"alt":null,"id":23890650824803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734060f4eed804627a19d48f9afe557559219e99_54c961eb-c0c2-491f-8683-18baaaecc231.webp?v=1714890252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734060f4eed804627a19d48f9afe557559219e99_54c961eb-c0c2-491f-8683-18baaaecc231.webp?v=1714890252","width":2000},{"alt":null,"id":23890653904995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521be59ee2c712f00448f09e1ba870d241873060_7468942a-1859-45c8-a28c-71130f45a270.webp?v=1714890254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/521be59ee2c712f00448f09e1ba870d241873060_7468942a-1859-45c8-a28c-71130f45a270.webp?v=1714890254","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906113413219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485320167523,"product_id":7414387441763,"position":5,"created_at":"2024-05-05T14:24:03+08:00","updated_at":"2024-05-05T14:24:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243","variant_ids":[41906113413219]},"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-PC14","featured_media":{"alt":null,"id":23890637127779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906113511523,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485333143651,"product_id":7414387441763,"position":9,"created_at":"2024-05-05T14:24:12+08:00","updated_at":"2024-05-05T14:24:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734060f4eed804627a19d48f9afe557559219e99_54c961eb-c0c2-491f-8683-18baaaecc231.webp?v=1714890252","variant_ids":[41906113511523]},"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-PC14","featured_media":{"alt":null,"id":23890650824803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734060f4eed804627a19d48f9afe557559219e99_54c961eb-c0c2-491f-8683-18baaaecc231.webp?v=1714890252"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906114101347,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485314170979,"product_id":7414387441763,"position":3,"created_at":"2024-05-05T14:23:58+08:00","updated_at":"2024-05-05T14:23:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ace039533e66b28cfd4b94d52f376ded1e3c27_7e704167-2728-436a-a4c0-bfc8656c1bf1.webp?v=1714890238","variant_ids":[41906114101347]},"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-PC14","featured_media":{"alt":null,"id":23890631098467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ace039533e66b28cfd4b94d52f376ded1e3c27_7e704167-2728-436a-a4c0-bfc8656c1bf1.webp?v=1714890238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906113413219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485320167523,"product_id":7414387441763,"position":5,"created_at":"2024-05-05T14:24:03+08:00","updated_at":"2024-05-05T14:24:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243","variant_ids":[41906113413219]},"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-PC14","featured_media":{"alt":null,"id":23890637127779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfe370e5521aac71af185477efb460f2aa3000ec_d39c5018-32ce-49f9-980a-ae05f784031c.webp?v=1714890243"}},"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: "停產"
}