$product = {"id":7407838658659,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑","handle":"iphone-14-pro-mod-nx-printable-pb07","description":null,"published_at":"2024-06-11T16:24:16+08:00","created_at":"2024-05-03T10:59:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41879462543459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470495629411,"product_id":7407838658659,"position":5,"created_at":"2024-05-03T11:00:11+08:00","updated_at":"2024-05-03T11:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211","variant_ids":[41879462543459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB07","featured_media":{"alt":null,"id":23875399417955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879462608995,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470494089315,"product_id":7407838658659,"position":2,"created_at":"2024-05-03T11:00:04+08:00","updated_at":"2024-05-03T11:00:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b910f8b93e4ceb0b04b93ad2c151172fa59b44e5_73dff9e1-5329-4d10-8566-8a6f371d8592.webp?v=1714705204","variant_ids":[41879462608995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB07","featured_media":{"alt":null,"id":23875397845091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b910f8b93e4ceb0b04b93ad2c151172fa59b44e5_73dff9e1-5329-4d10-8566-8a6f371d8592.webp?v=1714705204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879462838371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470494679139,"product_id":7407838658659,"position":3,"created_at":"2024-05-03T11:00:06+08:00","updated_at":"2024-05-03T11:00:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5791d4fbd4e86c63e5e3b6d9ffe636682b80b448_21ae1a54-8009-4853-84d9-f1c8a19ea63f.webp?v=1714705206","variant_ids":[41879462838371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB07","featured_media":{"alt":null,"id":23875398500451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5791d4fbd4e86c63e5e3b6d9ffe636682b80b448_21ae1a54-8009-4853-84d9-f1c8a19ea63f.webp?v=1714705206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6172f4a8167d7ca6cb7a818e1886096d932d6653_2a1e6fa1-0702-466a-88f2-559aff751db2.webp?v=1714705202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b910f8b93e4ceb0b04b93ad2c151172fa59b44e5_73dff9e1-5329-4d10-8566-8a6f371d8592.webp?v=1714705204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5791d4fbd4e86c63e5e3b6d9ffe636682b80b448_21ae1a54-8009-4853-84d9-f1c8a19ea63f.webp?v=1714705206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/150164f8631ce9b1f606ed498755a8807a4185ec_9ce749f5-99e8-410c-a685-e55745fe34fe.webp?v=1714705209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e74cc012c6344196c46ecd9e16339b44416fda_59c9c5b9-2910-4a91-ae08-3d5630d02eff.webp?v=1714705214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de7d88c64356635685671cab96a093a188aa5a6_0d442d43-c706-486a-b89a-41cac0592ef9.webp?v=1714705216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c923b13669f5e890dc399e91ff6007223fc124d9_94df2012-5b68-4f75-bfa5-eb1e5719610d.webp?v=1714705218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a355ce21e4bc633d8b348e131ba42a3238ce956_613083f4-78a4-4674-8d8d-b296c8ba6638.webp?v=1714705220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0db7913b90fb6931885aa72144a785471d7c8ebf_7ea6b960-8325-4fa1-8e36-d68f6866b72f.webp?v=1714705223"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6172f4a8167d7ca6cb7a818e1886096d932d6653_2a1e6fa1-0702-466a-88f2-559aff751db2.webp?v=1714705202","options":["color"],"media":[{"alt":null,"id":23875397419107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6172f4a8167d7ca6cb7a818e1886096d932d6653_2a1e6fa1-0702-466a-88f2-559aff751db2.webp?v=1714705202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6172f4a8167d7ca6cb7a818e1886096d932d6653_2a1e6fa1-0702-466a-88f2-559aff751db2.webp?v=1714705202","width":2000},{"alt":null,"id":23875397845091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b910f8b93e4ceb0b04b93ad2c151172fa59b44e5_73dff9e1-5329-4d10-8566-8a6f371d8592.webp?v=1714705204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b910f8b93e4ceb0b04b93ad2c151172fa59b44e5_73dff9e1-5329-4d10-8566-8a6f371d8592.webp?v=1714705204","width":2000},{"alt":null,"id":23875398500451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5791d4fbd4e86c63e5e3b6d9ffe636682b80b448_21ae1a54-8009-4853-84d9-f1c8a19ea63f.webp?v=1714705206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5791d4fbd4e86c63e5e3b6d9ffe636682b80b448_21ae1a54-8009-4853-84d9-f1c8a19ea63f.webp?v=1714705206","width":2000},{"alt":null,"id":23875398991971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/150164f8631ce9b1f606ed498755a8807a4185ec_9ce749f5-99e8-410c-a685-e55745fe34fe.webp?v=1714705209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/150164f8631ce9b1f606ed498755a8807a4185ec_9ce749f5-99e8-410c-a685-e55745fe34fe.webp?v=1714705209","width":2000},{"alt":null,"id":23875399417955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211","width":2000},{"alt":null,"id":23875399876707,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e74cc012c6344196c46ecd9e16339b44416fda_59c9c5b9-2910-4a91-ae08-3d5630d02eff.webp?v=1714705214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e74cc012c6344196c46ecd9e16339b44416fda_59c9c5b9-2910-4a91-ae08-3d5630d02eff.webp?v=1714705214","width":2000},{"alt":null,"id":23875400400995,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de7d88c64356635685671cab96a093a188aa5a6_0d442d43-c706-486a-b89a-41cac0592ef9.webp?v=1714705216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5de7d88c64356635685671cab96a093a188aa5a6_0d442d43-c706-486a-b89a-41cac0592ef9.webp?v=1714705216","width":2000},{"alt":null,"id":23875400761443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c923b13669f5e890dc399e91ff6007223fc124d9_94df2012-5b68-4f75-bfa5-eb1e5719610d.webp?v=1714705218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c923b13669f5e890dc399e91ff6007223fc124d9_94df2012-5b68-4f75-bfa5-eb1e5719610d.webp?v=1714705218","width":2000},{"alt":null,"id":23875401220195,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a355ce21e4bc633d8b348e131ba42a3238ce956_613083f4-78a4-4674-8d8d-b296c8ba6638.webp?v=1714705220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a355ce21e4bc633d8b348e131ba42a3238ce956_613083f4-78a4-4674-8d8d-b296c8ba6638.webp?v=1714705220","width":2000},{"alt":null,"id":23875401646179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0db7913b90fb6931885aa72144a785471d7c8ebf_7ea6b960-8325-4fa1-8e36-d68f6866b72f.webp?v=1714705223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0db7913b90fb6931885aa72144a785471d7c8ebf_7ea6b960-8325-4fa1-8e36-d68f6866b72f.webp?v=1714705223","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41879462543459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470495629411,"product_id":7407838658659,"position":5,"created_at":"2024-05-03T11:00:11+08:00","updated_at":"2024-05-03T11:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211","variant_ids":[41879462543459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB07","featured_media":{"alt":null,"id":23875399417955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879462608995,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470494089315,"product_id":7407838658659,"position":2,"created_at":"2024-05-03T11:00:04+08:00","updated_at":"2024-05-03T11:00:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b910f8b93e4ceb0b04b93ad2c151172fa59b44e5_73dff9e1-5329-4d10-8566-8a6f371d8592.webp?v=1714705204","variant_ids":[41879462608995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB07","featured_media":{"alt":null,"id":23875397845091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b910f8b93e4ceb0b04b93ad2c151172fa59b44e5_73dff9e1-5329-4d10-8566-8a6f371d8592.webp?v=1714705204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879462838371,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470494679139,"product_id":7407838658659,"position":3,"created_at":"2024-05-03T11:00:06+08:00","updated_at":"2024-05-03T11:00:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5791d4fbd4e86c63e5e3b6d9ffe636682b80b448_21ae1a54-8009-4853-84d9-f1c8a19ea63f.webp?v=1714705206","variant_ids":[41879462838371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB07","featured_media":{"alt":null,"id":23875398500451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5791d4fbd4e86c63e5e3b6d9ffe636682b80b448_21ae1a54-8009-4853-84d9-f1c8a19ea63f.webp?v=1714705206"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41879462543459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470495629411,"product_id":7407838658659,"position":5,"created_at":"2024-05-03T11:00:11+08:00","updated_at":"2024-05-03T11:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211","variant_ids":[41879462543459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB07","featured_media":{"alt":null,"id":23875399417955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38ca7dddf4b75ada9b59ac246797a1c7afbca841_0a852830-9c18-45a6-8309-b9b4cd93ab9f.webp?v=1714705211"}},"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: "停產"
}