$product = {"id":7414044033123,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb97","description":null,"published_at":"2024-06-11T17:48:30+08:00","created_at":"2024-05-05T14:06:30+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":41903685369955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484548546659,"product_id":7414044033123,"position":7,"created_at":"2024-05-05T14:06:46+08:00","updated_at":"2024-05-05T14:06:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206","variant_ids":[41903685369955]},"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-PB97","featured_media":{"alt":null,"id":23889843945571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903685435491,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484546941027,"product_id":7414044033123,"position":6,"created_at":"2024-05-05T14:06:44+08:00","updated_at":"2024-05-05T14:06:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89c8af2678e06a73cfb2ea132dca74d2923be003_ed9ed022-4f90-4ff1-a4c4-8de844257124.webp?v=1714889204","variant_ids":[41903685435491]},"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-PB97","featured_media":{"alt":null,"id":23889842372707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89c8af2678e06a73cfb2ea132dca74d2923be003_ed9ed022-4f90-4ff1-a4c4-8de844257124.webp?v=1714889204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903685664867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484543631459,"product_id":7414044033123,"position":4,"created_at":"2024-05-05T14:06:39+08:00","updated_at":"2024-05-05T14:06:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd0164de5187cc5e141930a186edd7e8bf1f9bf_163e563c-40b3-4b75-9b4a-bee44877481b.webp?v=1714889199","variant_ids":[41903685664867]},"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-PB97","featured_media":{"alt":null,"id":23889838833763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd0164de5187cc5e141930a186edd7e8bf1f9bf_163e563c-40b3-4b75-9b4a-bee44877481b.webp?v=1714889199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82b748d6ad4292a31045a3e7724ba7b1802dfd2f_f569947a-cbe0-4124-b30d-6efe7ff6e70c.webp?v=1714889192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56376913c760522d1dfad442fdf356f8fcfcd97e_03ca3b6c-658d-4803-ac66-e23f4796ca67.webp?v=1714889194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715cc5778040fa92edba0e197a3052d2da552d17_706f8928-4ab5-4769-adb9-09e8e46f662a.webp?v=1714889197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd0164de5187cc5e141930a186edd7e8bf1f9bf_163e563c-40b3-4b75-9b4a-bee44877481b.webp?v=1714889199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dddd71d675c0353db3182a1a1ebd1c73fd61aa0_931f81f1-75c6-4dab-b028-dc21d07ce1bb.webp?v=1714889201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89c8af2678e06a73cfb2ea132dca74d2923be003_ed9ed022-4f90-4ff1-a4c4-8de844257124.webp?v=1714889204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d120d5637c9ddef9488e1cf83c4c8f3e2948efb8_5b6a6abf-571e-48ed-a222-0b81eab1d10d.webp?v=1714889208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf315e4db863dfc291df7243f0daab53745871f_2515bc84-8fb3-4a90-a9ba-33f657ee13a7.webp?v=1714889211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a4bd7fa9216831bf7872c6358a8aa0fcd4ea3f9_838d4865-8025-452b-b05e-77b3214cb47c.webp?v=1714889213"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82b748d6ad4292a31045a3e7724ba7b1802dfd2f_f569947a-cbe0-4124-b30d-6efe7ff6e70c.webp?v=1714889192","options":["color"],"media":[{"alt":null,"id":23889833492579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82b748d6ad4292a31045a3e7724ba7b1802dfd2f_f569947a-cbe0-4124-b30d-6efe7ff6e70c.webp?v=1714889192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82b748d6ad4292a31045a3e7724ba7b1802dfd2f_f569947a-cbe0-4124-b30d-6efe7ff6e70c.webp?v=1714889192","width":2000},{"alt":null,"id":23889835229283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56376913c760522d1dfad442fdf356f8fcfcd97e_03ca3b6c-658d-4803-ac66-e23f4796ca67.webp?v=1714889194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56376913c760522d1dfad442fdf356f8fcfcd97e_03ca3b6c-658d-4803-ac66-e23f4796ca67.webp?v=1714889194","width":2000},{"alt":null,"id":23889837097059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715cc5778040fa92edba0e197a3052d2da552d17_706f8928-4ab5-4769-adb9-09e8e46f662a.webp?v=1714889197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715cc5778040fa92edba0e197a3052d2da552d17_706f8928-4ab5-4769-adb9-09e8e46f662a.webp?v=1714889197","width":2000},{"alt":null,"id":23889838833763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd0164de5187cc5e141930a186edd7e8bf1f9bf_163e563c-40b3-4b75-9b4a-bee44877481b.webp?v=1714889199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd0164de5187cc5e141930a186edd7e8bf1f9bf_163e563c-40b3-4b75-9b4a-bee44877481b.webp?v=1714889199","width":2000},{"alt":null,"id":23889840603235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dddd71d675c0353db3182a1a1ebd1c73fd61aa0_931f81f1-75c6-4dab-b028-dc21d07ce1bb.webp?v=1714889201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dddd71d675c0353db3182a1a1ebd1c73fd61aa0_931f81f1-75c6-4dab-b028-dc21d07ce1bb.webp?v=1714889201","width":2000},{"alt":null,"id":23889842372707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89c8af2678e06a73cfb2ea132dca74d2923be003_ed9ed022-4f90-4ff1-a4c4-8de844257124.webp?v=1714889204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89c8af2678e06a73cfb2ea132dca74d2923be003_ed9ed022-4f90-4ff1-a4c4-8de844257124.webp?v=1714889204","width":2000},{"alt":null,"id":23889843945571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206","width":2000},{"alt":null,"id":23889846206563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d120d5637c9ddef9488e1cf83c4c8f3e2948efb8_5b6a6abf-571e-48ed-a222-0b81eab1d10d.webp?v=1714889208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d120d5637c9ddef9488e1cf83c4c8f3e2948efb8_5b6a6abf-571e-48ed-a222-0b81eab1d10d.webp?v=1714889208","width":2000},{"alt":null,"id":23889848238179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf315e4db863dfc291df7243f0daab53745871f_2515bc84-8fb3-4a90-a9ba-33f657ee13a7.webp?v=1714889211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf315e4db863dfc291df7243f0daab53745871f_2515bc84-8fb3-4a90-a9ba-33f657ee13a7.webp?v=1714889211","width":2000},{"alt":null,"id":23889850138723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a4bd7fa9216831bf7872c6358a8aa0fcd4ea3f9_838d4865-8025-452b-b05e-77b3214cb47c.webp?v=1714889213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a4bd7fa9216831bf7872c6358a8aa0fcd4ea3f9_838d4865-8025-452b-b05e-77b3214cb47c.webp?v=1714889213","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903685369955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484548546659,"product_id":7414044033123,"position":7,"created_at":"2024-05-05T14:06:46+08:00","updated_at":"2024-05-05T14:06:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206","variant_ids":[41903685369955]},"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-PB97","featured_media":{"alt":null,"id":23889843945571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903685435491,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484546941027,"product_id":7414044033123,"position":6,"created_at":"2024-05-05T14:06:44+08:00","updated_at":"2024-05-05T14:06:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89c8af2678e06a73cfb2ea132dca74d2923be003_ed9ed022-4f90-4ff1-a4c4-8de844257124.webp?v=1714889204","variant_ids":[41903685435491]},"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-PB97","featured_media":{"alt":null,"id":23889842372707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89c8af2678e06a73cfb2ea132dca74d2923be003_ed9ed022-4f90-4ff1-a4c4-8de844257124.webp?v=1714889204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903685664867,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484543631459,"product_id":7414044033123,"position":4,"created_at":"2024-05-05T14:06:39+08:00","updated_at":"2024-05-05T14:06:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd0164de5187cc5e141930a186edd7e8bf1f9bf_163e563c-40b3-4b75-9b4a-bee44877481b.webp?v=1714889199","variant_ids":[41903685664867]},"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-PB97","featured_media":{"alt":null,"id":23889838833763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cd0164de5187cc5e141930a186edd7e8bf1f9bf_163e563c-40b3-4b75-9b4a-bee44877481b.webp?v=1714889199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903685369955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31484548546659,"product_id":7414044033123,"position":7,"created_at":"2024-05-05T14:06:46+08:00","updated_at":"2024-05-05T14:06:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206","variant_ids":[41903685369955]},"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-PB97","featured_media":{"alt":null,"id":23889843945571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a4f798b8f407298819158c21c6dce99fb49529c_8a7d9921-fc82-4be3-b102-98260c42f39f.webp?v=1714889206"}},"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: "停產"
}