$product = {"id":7411360202851,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb109","description":null,"published_at":"2024-06-11T17:42:51+08:00","created_at":"2024-05-05T00:14:40+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":41897913417827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227070051,"product_id":7411360202851,"position":2,"created_at":"2024-05-05T00:14:45+08:00","updated_at":"2024-05-05T00:14:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285","variant_ids":[41897913417827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23885478330467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897913483363,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31480229625955,"product_id":7411360202851,"position":7,"created_at":"2024-05-05T00:14:57+08:00","updated_at":"2024-05-05T00:14:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3d1c685a6fad10291275a483fa123d131666f4_941ad1cd-8365-4baf-adc1-d59426d3451e.webp?v=1714839297","variant_ids":[41897913483363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23885480886371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3d1c685a6fad10291275a483fa123d131666f4_941ad1cd-8365-4baf-adc1-d59426d3451e.webp?v=1714839297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897913712739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31480230772835,"product_id":7411360202851,"position":9,"created_at":"2024-05-05T00:15:02+08:00","updated_at":"2024-05-05T00:15:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/498f0942c2356969885499eb5b2e4ab72b62c0f4_8cb56ec5-b8a6-4fa1-b6b6-b6fe5c06c6cf.webp?v=1714839302","variant_ids":[41897913712739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23885482033251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/498f0942c2356969885499eb5b2e4ab72b62c0f4_8cb56ec5-b8a6-4fa1-b6b6-b6fe5c06c6cf.webp?v=1714839302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2497282ebb94d96319deb7fee181dc4688bd5a82_4001a1ef-a0ed-481a-af2b-a5e01b85f8c7.webp?v=1714839282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc34a28b0ac165db7e286b3320ad492ad595e142_84bc89ec-13dd-4458-9af0-7eb4d9b20927.webp?v=1714839287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61dc9ec84aa9916141c9d614a948c280784a7833_828d5e77-50d1-4b8f-a3fc-0640a26eb436.webp?v=1714839289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a62d24a02f9c582254b611b2ce27e688e89d91_3a366ee8-bd1a-41cc-ba98-9738a4e13f7f.webp?v=1714839292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/093d2f3e5cd9c2224702eea9a81cbdce011ff576_862167d3-e190-431e-993e-a3ada1240e83.webp?v=1714839294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3d1c685a6fad10291275a483fa123d131666f4_941ad1cd-8365-4baf-adc1-d59426d3451e.webp?v=1714839297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b115f02798cc9604569b3b9439df4cfe4955c65b_a2afa66c-5e17-47fb-8d52-f15666760ef8.webp?v=1714839299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/498f0942c2356969885499eb5b2e4ab72b62c0f4_8cb56ec5-b8a6-4fa1-b6b6-b6fe5c06c6cf.webp?v=1714839302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae405a25993a2e2608e13724be4c904ccc05c60b_0f908e2f-5a77-4bdb-8da4-1129d3998a36.webp?v=1714839305"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2497282ebb94d96319deb7fee181dc4688bd5a82_4001a1ef-a0ed-481a-af2b-a5e01b85f8c7.webp?v=1714839282","options":["color"],"media":[{"alt":null,"id":23885477970019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2497282ebb94d96319deb7fee181dc4688bd5a82_4001a1ef-a0ed-481a-af2b-a5e01b85f8c7.webp?v=1714839282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2497282ebb94d96319deb7fee181dc4688bd5a82_4001a1ef-a0ed-481a-af2b-a5e01b85f8c7.webp?v=1714839282","width":2000},{"alt":null,"id":23885478330467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285","width":2000},{"alt":null,"id":23885478756451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc34a28b0ac165db7e286b3320ad492ad595e142_84bc89ec-13dd-4458-9af0-7eb4d9b20927.webp?v=1714839287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc34a28b0ac165db7e286b3320ad492ad595e142_84bc89ec-13dd-4458-9af0-7eb4d9b20927.webp?v=1714839287","width":2000},{"alt":null,"id":23885479149667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61dc9ec84aa9916141c9d614a948c280784a7833_828d5e77-50d1-4b8f-a3fc-0640a26eb436.webp?v=1714839289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61dc9ec84aa9916141c9d614a948c280784a7833_828d5e77-50d1-4b8f-a3fc-0640a26eb436.webp?v=1714839289","width":2000},{"alt":null,"id":23885479805027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a62d24a02f9c582254b611b2ce27e688e89d91_3a366ee8-bd1a-41cc-ba98-9738a4e13f7f.webp?v=1714839292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a62d24a02f9c582254b611b2ce27e688e89d91_3a366ee8-bd1a-41cc-ba98-9738a4e13f7f.webp?v=1714839292","width":2000},{"alt":null,"id":23885480198243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/093d2f3e5cd9c2224702eea9a81cbdce011ff576_862167d3-e190-431e-993e-a3ada1240e83.webp?v=1714839294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/093d2f3e5cd9c2224702eea9a81cbdce011ff576_862167d3-e190-431e-993e-a3ada1240e83.webp?v=1714839294","width":2000},{"alt":null,"id":23885480886371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3d1c685a6fad10291275a483fa123d131666f4_941ad1cd-8365-4baf-adc1-d59426d3451e.webp?v=1714839297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3d1c685a6fad10291275a483fa123d131666f4_941ad1cd-8365-4baf-adc1-d59426d3451e.webp?v=1714839297","width":2000},{"alt":null,"id":23885481279587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b115f02798cc9604569b3b9439df4cfe4955c65b_a2afa66c-5e17-47fb-8d52-f15666760ef8.webp?v=1714839299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b115f02798cc9604569b3b9439df4cfe4955c65b_a2afa66c-5e17-47fb-8d52-f15666760ef8.webp?v=1714839299","width":2000},{"alt":null,"id":23885482033251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/498f0942c2356969885499eb5b2e4ab72b62c0f4_8cb56ec5-b8a6-4fa1-b6b6-b6fe5c06c6cf.webp?v=1714839302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/498f0942c2356969885499eb5b2e4ab72b62c0f4_8cb56ec5-b8a6-4fa1-b6b6-b6fe5c06c6cf.webp?v=1714839302","width":2000},{"alt":null,"id":23885482459235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae405a25993a2e2608e13724be4c904ccc05c60b_0f908e2f-5a77-4bdb-8da4-1129d3998a36.webp?v=1714839305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae405a25993a2e2608e13724be4c904ccc05c60b_0f908e2f-5a77-4bdb-8da4-1129d3998a36.webp?v=1714839305","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897913417827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227070051,"product_id":7411360202851,"position":2,"created_at":"2024-05-05T00:14:45+08:00","updated_at":"2024-05-05T00:14:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285","variant_ids":[41897913417827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23885478330467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897913483363,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31480229625955,"product_id":7411360202851,"position":7,"created_at":"2024-05-05T00:14:57+08:00","updated_at":"2024-05-05T00:14:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3d1c685a6fad10291275a483fa123d131666f4_941ad1cd-8365-4baf-adc1-d59426d3451e.webp?v=1714839297","variant_ids":[41897913483363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23885480886371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3d1c685a6fad10291275a483fa123d131666f4_941ad1cd-8365-4baf-adc1-d59426d3451e.webp?v=1714839297"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897913712739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31480230772835,"product_id":7411360202851,"position":9,"created_at":"2024-05-05T00:15:02+08:00","updated_at":"2024-05-05T00:15:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/498f0942c2356969885499eb5b2e4ab72b62c0f4_8cb56ec5-b8a6-4fa1-b6b6-b6fe5c06c6cf.webp?v=1714839302","variant_ids":[41897913712739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23885482033251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/498f0942c2356969885499eb5b2e4ab72b62c0f4_8cb56ec5-b8a6-4fa1-b6b6-b6fe5c06c6cf.webp?v=1714839302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897913417827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31480227070051,"product_id":7411360202851,"position":2,"created_at":"2024-05-05T00:14:45+08:00","updated_at":"2024-05-05T00:14:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285","variant_ids":[41897913417827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23885478330467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12199bb5f85e4031890f40a046d37089337b61ac_285338eb-0832-4563-8ccd-228dbabe170a.webp?v=1714839285"}},"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: "停產"
}