$product = {"id":7414221537379,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌","handle":"iphone-13-mini-mod-nx-magsafe-printable-sb15","description":null,"published_at":"2024-06-11T17:49:59+08:00","created_at":"2024-05-05T14:16:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41904978362467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31484953886819,"product_id":7414221537379,"position":5,"created_at":"2024-05-05T14:17:11+08:00","updated_at":"2024-05-05T14:17:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831","variant_ids":[41904978362467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23890265604195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904978493539,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31484963258467,"product_id":7414221537379,"position":10,"created_at":"2024-05-05T14:17:31+08:00","updated_at":"2024-05-05T14:17:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bf3caa8f6e3ba988e9cff5126b1d700e0d56c8_8318dfa2-a822-4a0f-984d-7ecb6a5d267a.webp?v=1714889851","variant_ids":[41904978493539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23890277269603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bf3caa8f6e3ba988e9cff5126b1d700e0d56c8_8318dfa2-a822-4a0f-984d-7ecb6a5d267a.webp?v=1714889851"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904978985059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31484947988579,"product_id":7414221537379,"position":2,"created_at":"2024-05-05T14:16:48+08:00","updated_at":"2024-05-05T14:16:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190f0f7d434c7da64c393caccf56ec5c90421220_44f738b1-a50e-4d7b-8adc-b7ef4b0001ca.webp?v=1714889808","variant_ids":[41904978985059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23890259804259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190f0f7d434c7da64c393caccf56ec5c90421220_44f738b1-a50e-4d7b-8adc-b7ef4b0001ca.webp?v=1714889808"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e5d333d00d643bd01089151f649b542e8ec8e_2a6a1c1c-0138-48aa-bef6-2d31a74c6bb5.webp?v=1714889806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190f0f7d434c7da64c393caccf56ec5c90421220_44f738b1-a50e-4d7b-8adc-b7ef4b0001ca.webp?v=1714889808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8c7617d7212c5572d7eb75f722edeb6ac11b99_b54e75da-7ed4-4dc6-8be7-59eba42cc824.webp?v=1714889826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96968bc023679bae789f7605fa0cafb78ccbf920_77c6842a-b9da-4213-9f62-9b21582dc7a8.webp?v=1714889829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f891f54e3919f39d29a03e42dbf781a283d71364_3539e36e-31fe-4a63-ab05-98ed41872c52.webp?v=1714889842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce301e5a538dfad61d37b0b52ed93bed72f38fc_73279664-a24e-4779-abf1-c8d8481e6e9d.webp?v=1714889844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e8a25a4ab22823b292f044002e000ba6618256_8fa73318-e796-472c-add3-90b915277a1f.webp?v=1714889846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/493f028431dd4b04f6b6dc190bc3688345c2c50c_ac65361b-0ca7-41df-94b7-5b2ba7809b8c.webp?v=1714889849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bf3caa8f6e3ba988e9cff5126b1d700e0d56c8_8318dfa2-a822-4a0f-984d-7ecb6a5d267a.webp?v=1714889851"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e5d333d00d643bd01089151f649b542e8ec8e_2a6a1c1c-0138-48aa-bef6-2d31a74c6bb5.webp?v=1714889806","options":["color"],"media":[{"alt":null,"id":23890258657379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e5d333d00d643bd01089151f649b542e8ec8e_2a6a1c1c-0138-48aa-bef6-2d31a74c6bb5.webp?v=1714889806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c55e5d333d00d643bd01089151f649b542e8ec8e_2a6a1c1c-0138-48aa-bef6-2d31a74c6bb5.webp?v=1714889806","width":2000},{"alt":null,"id":23890259804259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190f0f7d434c7da64c393caccf56ec5c90421220_44f738b1-a50e-4d7b-8adc-b7ef4b0001ca.webp?v=1714889808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190f0f7d434c7da64c393caccf56ec5c90421220_44f738b1-a50e-4d7b-8adc-b7ef4b0001ca.webp?v=1714889808","width":2000},{"alt":null,"id":23890264064099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8c7617d7212c5572d7eb75f722edeb6ac11b99_b54e75da-7ed4-4dc6-8be7-59eba42cc824.webp?v=1714889826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b8c7617d7212c5572d7eb75f722edeb6ac11b99_b54e75da-7ed4-4dc6-8be7-59eba42cc824.webp?v=1714889826","width":2000},{"alt":null,"id":23890265047139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96968bc023679bae789f7605fa0cafb78ccbf920_77c6842a-b9da-4213-9f62-9b21582dc7a8.webp?v=1714889829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96968bc023679bae789f7605fa0cafb78ccbf920_77c6842a-b9da-4213-9f62-9b21582dc7a8.webp?v=1714889829","width":2000},{"alt":null,"id":23890265604195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831","width":2000},{"alt":null,"id":23890268586083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f891f54e3919f39d29a03e42dbf781a283d71364_3539e36e-31fe-4a63-ab05-98ed41872c52.webp?v=1714889842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f891f54e3919f39d29a03e42dbf781a283d71364_3539e36e-31fe-4a63-ab05-98ed41872c52.webp?v=1714889842","width":2000},{"alt":null,"id":23890270978147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce301e5a538dfad61d37b0b52ed93bed72f38fc_73279664-a24e-4779-abf1-c8d8481e6e9d.webp?v=1714889844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ce301e5a538dfad61d37b0b52ed93bed72f38fc_73279664-a24e-4779-abf1-c8d8481e6e9d.webp?v=1714889844","width":2000},{"alt":null,"id":23890273239139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e8a25a4ab22823b292f044002e000ba6618256_8fa73318-e796-472c-add3-90b915277a1f.webp?v=1714889846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5e8a25a4ab22823b292f044002e000ba6618256_8fa73318-e796-472c-add3-90b915277a1f.webp?v=1714889846","width":2000},{"alt":null,"id":23890275205219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/493f028431dd4b04f6b6dc190bc3688345c2c50c_ac65361b-0ca7-41df-94b7-5b2ba7809b8c.webp?v=1714889849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/493f028431dd4b04f6b6dc190bc3688345c2c50c_ac65361b-0ca7-41df-94b7-5b2ba7809b8c.webp?v=1714889849","width":2000},{"alt":null,"id":23890277269603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bf3caa8f6e3ba988e9cff5126b1d700e0d56c8_8318dfa2-a822-4a0f-984d-7ecb6a5d267a.webp?v=1714889851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bf3caa8f6e3ba988e9cff5126b1d700e0d56c8_8318dfa2-a822-4a0f-984d-7ecb6a5d267a.webp?v=1714889851","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904978362467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31484953886819,"product_id":7414221537379,"position":5,"created_at":"2024-05-05T14:17:11+08:00","updated_at":"2024-05-05T14:17:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831","variant_ids":[41904978362467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23890265604195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904978493539,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31484963258467,"product_id":7414221537379,"position":10,"created_at":"2024-05-05T14:17:31+08:00","updated_at":"2024-05-05T14:17:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bf3caa8f6e3ba988e9cff5126b1d700e0d56c8_8318dfa2-a822-4a0f-984d-7ecb6a5d267a.webp?v=1714889851","variant_ids":[41904978493539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23890277269603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5bf3caa8f6e3ba988e9cff5126b1d700e0d56c8_8318dfa2-a822-4a0f-984d-7ecb6a5d267a.webp?v=1714889851"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904978985059,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31484947988579,"product_id":7414221537379,"position":2,"created_at":"2024-05-05T14:16:48+08:00","updated_at":"2024-05-05T14:16:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190f0f7d434c7da64c393caccf56ec5c90421220_44f738b1-a50e-4d7b-8adc-b7ef4b0001ca.webp?v=1714889808","variant_ids":[41904978985059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23890259804259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/190f0f7d434c7da64c393caccf56ec5c90421220_44f738b1-a50e-4d7b-8adc-b7ef4b0001ca.webp?v=1714889808"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904978362467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31484953886819,"product_id":7414221537379,"position":5,"created_at":"2024-05-05T14:17:11+08:00","updated_at":"2024-05-05T14:17:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831","variant_ids":[41904978362467]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑與蝙蝠俠撲克牌 - 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-SB15","featured_media":{"alt":null,"id":23890265604195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f1e6d291416bf2fd12ca9764ce2c3fead667dc3_bd29b562-460c-4aeb-a369-28eaa172bce9.webp?v=1714889831"}},"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: "停產"
}