$product = {"id":7411384844387,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb100","description":null,"published_at":"2024-06-11T17:43:31+08:00","created_at":"2024-05-05T00:19: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 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":41898212786275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480295030883,"product_id":7411384844387,"position":8,"created_at":"2024-05-05T00:19:48+08:00","updated_at":"2024-05-05T00:19:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588","variant_ids":[41898212786275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885546356835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898212851811,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480292245603,"product_id":7411384844387,"position":4,"created_at":"2024-05-05T00:19:39+08:00","updated_at":"2024-05-05T00:19:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dbda8c554256f608774defddfaec9035a1db7_ca39de2f-c7fd-4920-b1bc-dbc054db969b.webp?v=1714839579","variant_ids":[41898212851811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885543571555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dbda8c554256f608774defddfaec9035a1db7_ca39de2f-c7fd-4920-b1bc-dbc054db969b.webp?v=1714839579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898213081187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480291852387,"product_id":7411384844387,"position":3,"created_at":"2024-05-05T00:19:37+08:00","updated_at":"2024-05-05T00:19:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6183cd68009eaaf8f64802f611160d1645ffcc_48a73744-a855-49bf-8917-deac6634b926.webp?v=1714839577","variant_ids":[41898213081187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885543178339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6183cd68009eaaf8f64802f611160d1645ffcc_48a73744-a855-49bf-8917-deac6634b926.webp?v=1714839577"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4975124286dada8f06eb163828f6926daf70f48b_252b7b48-97cb-458d-a384-8164143ff2cb.webp?v=1714839572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e890bc1b484298cd131c6ae6082bc4d1f2d127_202e0224-e525-465f-b332-3c6b259ca2e4.webp?v=1714839574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6183cd68009eaaf8f64802f611160d1645ffcc_48a73744-a855-49bf-8917-deac6634b926.webp?v=1714839577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dbda8c554256f608774defddfaec9035a1db7_ca39de2f-c7fd-4920-b1bc-dbc054db969b.webp?v=1714839579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715823cffde83da65362555c8d81d14457c80ed9_3078c99c-26d8-4bfd-b187-dbce63aeb926.webp?v=1714839581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99f22ea45db24590283341c44c5d0f9c00144fc7_7e84a3a5-300d-4c5a-8dd4-a366efd64cf4.webp?v=1714839584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/799d26437ad77e9461f133563aa114f467e2ca5e_fdb94441-83a8-4138-a3d3-49a11d5114f3.webp?v=1714839586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6905e183dce6e85ba53de3fe30e463f9e115f6a_2e4c5342-654c-40a5-9d13-312445c99c16.webp?v=1714839591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5f2801448738379840b1e1b4a27e09f6db8c4_a3e30ead-9a88-401e-a98d-9758256f6ce3.webp?v=1714839593"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4975124286dada8f06eb163828f6926daf70f48b_252b7b48-97cb-458d-a384-8164143ff2cb.webp?v=1714839572","options":["color"],"media":[{"alt":null,"id":23885542129763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4975124286dada8f06eb163828f6926daf70f48b_252b7b48-97cb-458d-a384-8164143ff2cb.webp?v=1714839572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4975124286dada8f06eb163828f6926daf70f48b_252b7b48-97cb-458d-a384-8164143ff2cb.webp?v=1714839572","width":2000},{"alt":null,"id":23885542621283,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e890bc1b484298cd131c6ae6082bc4d1f2d127_202e0224-e525-465f-b332-3c6b259ca2e4.webp?v=1714839574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57e890bc1b484298cd131c6ae6082bc4d1f2d127_202e0224-e525-465f-b332-3c6b259ca2e4.webp?v=1714839574","width":2000},{"alt":null,"id":23885543178339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6183cd68009eaaf8f64802f611160d1645ffcc_48a73744-a855-49bf-8917-deac6634b926.webp?v=1714839577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6183cd68009eaaf8f64802f611160d1645ffcc_48a73744-a855-49bf-8917-deac6634b926.webp?v=1714839577","width":2000},{"alt":null,"id":23885543571555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dbda8c554256f608774defddfaec9035a1db7_ca39de2f-c7fd-4920-b1bc-dbc054db969b.webp?v=1714839579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dbda8c554256f608774defddfaec9035a1db7_ca39de2f-c7fd-4920-b1bc-dbc054db969b.webp?v=1714839579","width":2000},{"alt":null,"id":23885544718435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715823cffde83da65362555c8d81d14457c80ed9_3078c99c-26d8-4bfd-b187-dbce63aeb926.webp?v=1714839581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/715823cffde83da65362555c8d81d14457c80ed9_3078c99c-26d8-4bfd-b187-dbce63aeb926.webp?v=1714839581","width":2000},{"alt":null,"id":23885545209955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99f22ea45db24590283341c44c5d0f9c00144fc7_7e84a3a5-300d-4c5a-8dd4-a366efd64cf4.webp?v=1714839584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99f22ea45db24590283341c44c5d0f9c00144fc7_7e84a3a5-300d-4c5a-8dd4-a366efd64cf4.webp?v=1714839584","width":2000},{"alt":null,"id":23885545898083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/799d26437ad77e9461f133563aa114f467e2ca5e_fdb94441-83a8-4138-a3d3-49a11d5114f3.webp?v=1714839586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/799d26437ad77e9461f133563aa114f467e2ca5e_fdb94441-83a8-4138-a3d3-49a11d5114f3.webp?v=1714839586","width":2000},{"alt":null,"id":23885546356835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588","width":2000},{"alt":null,"id":23885546946659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6905e183dce6e85ba53de3fe30e463f9e115f6a_2e4c5342-654c-40a5-9d13-312445c99c16.webp?v=1714839591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6905e183dce6e85ba53de3fe30e463f9e115f6a_2e4c5342-654c-40a5-9d13-312445c99c16.webp?v=1714839591","width":2000},{"alt":null,"id":23885547602019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5f2801448738379840b1e1b4a27e09f6db8c4_a3e30ead-9a88-401e-a98d-9758256f6ce3.webp?v=1714839593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa5f2801448738379840b1e1b4a27e09f6db8c4_a3e30ead-9a88-401e-a98d-9758256f6ce3.webp?v=1714839593","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898212786275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480295030883,"product_id":7411384844387,"position":8,"created_at":"2024-05-05T00:19:48+08:00","updated_at":"2024-05-05T00:19:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588","variant_ids":[41898212786275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885546356835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898212851811,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480292245603,"product_id":7411384844387,"position":4,"created_at":"2024-05-05T00:19:39+08:00","updated_at":"2024-05-05T00:19:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dbda8c554256f608774defddfaec9035a1db7_ca39de2f-c7fd-4920-b1bc-dbc054db969b.webp?v=1714839579","variant_ids":[41898212851811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885543571555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dbda8c554256f608774defddfaec9035a1db7_ca39de2f-c7fd-4920-b1bc-dbc054db969b.webp?v=1714839579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898213081187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480291852387,"product_id":7411384844387,"position":3,"created_at":"2024-05-05T00:19:37+08:00","updated_at":"2024-05-05T00:19:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6183cd68009eaaf8f64802f611160d1645ffcc_48a73744-a855-49bf-8917-deac6634b926.webp?v=1714839577","variant_ids":[41898213081187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885543178339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6183cd68009eaaf8f64802f611160d1645ffcc_48a73744-a855-49bf-8917-deac6634b926.webp?v=1714839577"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898212786275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480295030883,"product_id":7411384844387,"position":8,"created_at":"2024-05-05T00:19:48+08:00","updated_at":"2024-05-05T00:19:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588","variant_ids":[41898212786275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885546356835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b7e077608bd1a772a8f8fc795be31eaebbd04c3_cf8b33ec-ddc0-48bb-be85-dd4113c676e8.webp?v=1714839588"}},"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: "停產"
}