$product = {"id":7411346178147,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 死星-黑白條紋","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb21","description":null,"published_at":"2024-06-11T17:42:28+08:00","created_at":"2024-05-05T00:11:54+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":41897730736227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31480197677155,"product_id":7411346178147,"position":9,"created_at":"2024-05-05T00:12:16+08:00","updated_at":"2024-05-05T00:12:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136","variant_ids":[41897730736227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB21","featured_media":{"alt":null,"id":23885448708195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897730801763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31480193482851,"product_id":7411346178147,"position":1,"created_at":"2024-05-05T00:11:57+08:00","updated_at":"2024-05-05T00:11:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117","variant_ids":[41897730801763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB21","featured_media":{"alt":null,"id":23885444481123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897731031139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31480195022947,"product_id":7411346178147,"position":4,"created_at":"2024-05-05T00:12:04+08:00","updated_at":"2024-05-05T00:12:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00dcbfb175079988d358fb3f55284676f4bb095e_032a6aca-9bca-4706-bad5-818dde5b3df2.webp?v=1714839124","variant_ids":[41897731031139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB21","featured_media":{"alt":null,"id":23885446053987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00dcbfb175079988d358fb3f55284676f4bb095e_032a6aca-9bca-4706-bad5-818dde5b3df2.webp?v=1714839124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af180e71388de1ca405a0470a8c384e5cf051aa_00ac5c3a-c3fe-4de2-8f9a-588951b76b39.webp?v=1714839119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea47d7e8e5a8a6e61a91a8c9c2ac2765d9a6e943_ecee42d9-c709-458e-86dd-255b061211d6.webp?v=1714839121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00dcbfb175079988d358fb3f55284676f4bb095e_032a6aca-9bca-4706-bad5-818dde5b3df2.webp?v=1714839124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df23b3419d4cbd00e2c59c1fc5a304214f609702_efbfb4cd-64a3-4248-bd3e-4f633b5b6c85.webp?v=1714839126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0829d315ce61b179fdb879ddb3bc6083e57909fb_43d3aab5-b177-4b41-a009-9a7886ed0962.webp?v=1714839129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d04b355d20b3420f286c2e0620a13e0761177904_de0a759a-489e-4355-92a7-b957755fcba4.webp?v=1714839131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf4c14150ff412b687cbd5612bc0425c2343510_f5db8b6c-9b13-4f5c-8002-a330e3a642e7.webp?v=1714839134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53bac9d64b204469954196fed465ebaf49370e2a_a1037c60-5a07-40fb-817a-5d8f51b3afc9.webp?v=1714839139"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117","options":["color"],"media":[{"alt":null,"id":23885444481123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117","width":2000},{"alt":null,"id":23885445103715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af180e71388de1ca405a0470a8c384e5cf051aa_00ac5c3a-c3fe-4de2-8f9a-588951b76b39.webp?v=1714839119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6af180e71388de1ca405a0470a8c384e5cf051aa_00ac5c3a-c3fe-4de2-8f9a-588951b76b39.webp?v=1714839119","width":2000},{"alt":null,"id":23885445431395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea47d7e8e5a8a6e61a91a8c9c2ac2765d9a6e943_ecee42d9-c709-458e-86dd-255b061211d6.webp?v=1714839121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea47d7e8e5a8a6e61a91a8c9c2ac2765d9a6e943_ecee42d9-c709-458e-86dd-255b061211d6.webp?v=1714839121","width":2000},{"alt":null,"id":23885446053987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00dcbfb175079988d358fb3f55284676f4bb095e_032a6aca-9bca-4706-bad5-818dde5b3df2.webp?v=1714839124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00dcbfb175079988d358fb3f55284676f4bb095e_032a6aca-9bca-4706-bad5-818dde5b3df2.webp?v=1714839124","width":2000},{"alt":null,"id":23885446545507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df23b3419d4cbd00e2c59c1fc5a304214f609702_efbfb4cd-64a3-4248-bd3e-4f633b5b6c85.webp?v=1714839126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df23b3419d4cbd00e2c59c1fc5a304214f609702_efbfb4cd-64a3-4248-bd3e-4f633b5b6c85.webp?v=1714839126","width":2000},{"alt":null,"id":23885447102563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0829d315ce61b179fdb879ddb3bc6083e57909fb_43d3aab5-b177-4b41-a009-9a7886ed0962.webp?v=1714839129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0829d315ce61b179fdb879ddb3bc6083e57909fb_43d3aab5-b177-4b41-a009-9a7886ed0962.webp?v=1714839129","width":2000},{"alt":null,"id":23885447725155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d04b355d20b3420f286c2e0620a13e0761177904_de0a759a-489e-4355-92a7-b957755fcba4.webp?v=1714839131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d04b355d20b3420f286c2e0620a13e0761177904_de0a759a-489e-4355-92a7-b957755fcba4.webp?v=1714839131","width":2000},{"alt":null,"id":23885448282211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf4c14150ff412b687cbd5612bc0425c2343510_f5db8b6c-9b13-4f5c-8002-a330e3a642e7.webp?v=1714839134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf4c14150ff412b687cbd5612bc0425c2343510_f5db8b6c-9b13-4f5c-8002-a330e3a642e7.webp?v=1714839134","width":2000},{"alt":null,"id":23885448708195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136","width":2000},{"alt":null,"id":23885449265251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53bac9d64b204469954196fed465ebaf49370e2a_a1037c60-5a07-40fb-817a-5d8f51b3afc9.webp?v=1714839139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53bac9d64b204469954196fed465ebaf49370e2a_a1037c60-5a07-40fb-817a-5d8f51b3afc9.webp?v=1714839139","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897730736227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31480197677155,"product_id":7411346178147,"position":9,"created_at":"2024-05-05T00:12:16+08:00","updated_at":"2024-05-05T00:12:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136","variant_ids":[41897730736227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB21","featured_media":{"alt":null,"id":23885448708195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897730801763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31480193482851,"product_id":7411346178147,"position":1,"created_at":"2024-05-05T00:11:57+08:00","updated_at":"2024-05-05T00:11:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117","variant_ids":[41897730801763]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126204-PB21","featured_media":{"alt":null,"id":23885444481123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eddb68370d1040254f3e245ef205adab53896198_452fb5a6-7cf9-423b-95cd-bd2e64e3c9e9.webp?v=1714839117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897731031139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31480195022947,"product_id":7411346178147,"position":4,"created_at":"2024-05-05T00:12:04+08:00","updated_at":"2024-05-05T00:12:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00dcbfb175079988d358fb3f55284676f4bb095e_032a6aca-9bca-4706-bad5-818dde5b3df2.webp?v=1714839124","variant_ids":[41897731031139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB01262J5-PB21","featured_media":{"alt":null,"id":23885446053987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00dcbfb175079988d358fb3f55284676f4bb095e_032a6aca-9bca-4706-bad5-818dde5b3df2.webp?v=1714839124"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897730736227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB21","requires_shipping":true,"taxable":true,"featured_image":{"id":31480197677155,"product_id":7411346178147,"position":9,"created_at":"2024-05-05T00:12:16+08:00","updated_at":"2024-05-05T00:12:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136","variant_ids":[41897730736227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 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":"MPB0126224-PB21","featured_media":{"alt":null,"id":23885448708195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd0ce7258c91980c1e1d242371a6c2cffa16d64c_bce00c91-ee47-4f96-bb06-56aafd1e221f.webp?v=1714839136"}},"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: "停產"
}