$product = {"id":7407802089571,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士","handle":"iphone-14-pro-mod-nx-printable-pb109","description":null,"published_at":"2024-06-11T16:23:22+08:00","created_at":"2024-05-03T10:53:06+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":41879017488483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470404960355,"product_id":7407802089571,"position":3,"created_at":"2024-05-03T10:53:14+08:00","updated_at":"2024-05-03T10:53:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794","variant_ids":[41879017488483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23875308191843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879017554019,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470407843939,"product_id":7407802089571,"position":8,"created_at":"2024-05-03T10:53:26+08:00","updated_at":"2024-05-03T10:53:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f375ceda0542d143eaee7a971c80562df56ba70b_e31f954f-224c-4e6c-a73b-93e1cc1fc8c1.webp?v=1714704806","variant_ids":[41879017554019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23875311075427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f375ceda0542d143eaee7a971c80562df56ba70b_e31f954f-224c-4e6c-a73b-93e1cc1fc8c1.webp?v=1714704806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879017848931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470409220195,"product_id":7407802089571,"position":10,"created_at":"2024-05-03T10:53:31+08:00","updated_at":"2024-05-03T10:53:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45afeadfe78cadefc707f0e7cdbd0770ee0df30f_1d8cd879-7a55-438d-a462-118c2609a11e.webp?v=1714704811","variant_ids":[41879017848931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23875312517219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45afeadfe78cadefc707f0e7cdbd0770ee0df30f_1d8cd879-7a55-438d-a462-118c2609a11e.webp?v=1714704811"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbae37cb3fabb5468d6f75185c4de57a34aeeb0_aa16063e-156e-4ab8-9676-16ac95607eef.webp?v=1714704789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8086dc17c26e2d13d427a115da12f83d50d576_d3e8c57b-c204-4614-a63b-d956c6abadcf.webp?v=1714704792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8de4d09a48ee7943e63079644812b154947691_1b5ed473-77a2-4d26-bb61-556aeb67beae.webp?v=1714704796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e0830502d50d8e8c2dd2bee2df56d275d785c0_0f6180c4-b946-4c26-b378-6ac4d1bb3362.webp?v=1714704799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7871176e972e1ad222fcc5b155981e7ab4e22e7b_46a98801-ddee-4200-9b98-0ba0217009b8.webp?v=1714704802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf776e43cca87505a89176d4a4749c9212453c5_3bb6b951-c30d-4e26-a829-46004db6089f.webp?v=1714704804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f375ceda0542d143eaee7a971c80562df56ba70b_e31f954f-224c-4e6c-a73b-93e1cc1fc8c1.webp?v=1714704806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3417083eedb54bef72e8fb8fda24fbb0062e59a0_60205bf2-bb31-403d-bf6e-34993a0cada4.webp?v=1714704809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45afeadfe78cadefc707f0e7cdbd0770ee0df30f_1d8cd879-7a55-438d-a462-118c2609a11e.webp?v=1714704811"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbae37cb3fabb5468d6f75185c4de57a34aeeb0_aa16063e-156e-4ab8-9676-16ac95607eef.webp?v=1714704789","options":["color"],"media":[{"alt":null,"id":23875306782819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbae37cb3fabb5468d6f75185c4de57a34aeeb0_aa16063e-156e-4ab8-9676-16ac95607eef.webp?v=1714704789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbae37cb3fabb5468d6f75185c4de57a34aeeb0_aa16063e-156e-4ab8-9676-16ac95607eef.webp?v=1714704789","width":2000},{"alt":null,"id":23875307307107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8086dc17c26e2d13d427a115da12f83d50d576_d3e8c57b-c204-4614-a63b-d956c6abadcf.webp?v=1714704792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab8086dc17c26e2d13d427a115da12f83d50d576_d3e8c57b-c204-4614-a63b-d956c6abadcf.webp?v=1714704792","width":2000},{"alt":null,"id":23875308191843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794","width":2000},{"alt":null,"id":23875308617827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8de4d09a48ee7943e63079644812b154947691_1b5ed473-77a2-4d26-bb61-556aeb67beae.webp?v=1714704796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8de4d09a48ee7943e63079644812b154947691_1b5ed473-77a2-4d26-bb61-556aeb67beae.webp?v=1714704796","width":2000},{"alt":null,"id":23875309142115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e0830502d50d8e8c2dd2bee2df56d275d785c0_0f6180c4-b946-4c26-b378-6ac4d1bb3362.webp?v=1714704799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e0830502d50d8e8c2dd2bee2df56d275d785c0_0f6180c4-b946-4c26-b378-6ac4d1bb3362.webp?v=1714704799","width":2000},{"alt":null,"id":23875309928547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7871176e972e1ad222fcc5b155981e7ab4e22e7b_46a98801-ddee-4200-9b98-0ba0217009b8.webp?v=1714704802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7871176e972e1ad222fcc5b155981e7ab4e22e7b_46a98801-ddee-4200-9b98-0ba0217009b8.webp?v=1714704802","width":2000},{"alt":null,"id":23875310452835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf776e43cca87505a89176d4a4749c9212453c5_3bb6b951-c30d-4e26-a829-46004db6089f.webp?v=1714704804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf776e43cca87505a89176d4a4749c9212453c5_3bb6b951-c30d-4e26-a829-46004db6089f.webp?v=1714704804","width":2000},{"alt":null,"id":23875311075427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f375ceda0542d143eaee7a971c80562df56ba70b_e31f954f-224c-4e6c-a73b-93e1cc1fc8c1.webp?v=1714704806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f375ceda0542d143eaee7a971c80562df56ba70b_e31f954f-224c-4e6c-a73b-93e1cc1fc8c1.webp?v=1714704806","width":2000},{"alt":null,"id":23875311632483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3417083eedb54bef72e8fb8fda24fbb0062e59a0_60205bf2-bb31-403d-bf6e-34993a0cada4.webp?v=1714704809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3417083eedb54bef72e8fb8fda24fbb0062e59a0_60205bf2-bb31-403d-bf6e-34993a0cada4.webp?v=1714704809","width":2000},{"alt":null,"id":23875312517219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45afeadfe78cadefc707f0e7cdbd0770ee0df30f_1d8cd879-7a55-438d-a462-118c2609a11e.webp?v=1714704811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45afeadfe78cadefc707f0e7cdbd0770ee0df30f_1d8cd879-7a55-438d-a462-118c2609a11e.webp?v=1714704811","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41879017488483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470404960355,"product_id":7407802089571,"position":3,"created_at":"2024-05-03T10:53:14+08:00","updated_at":"2024-05-03T10:53:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794","variant_ids":[41879017488483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23875308191843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879017554019,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470407843939,"product_id":7407802089571,"position":8,"created_at":"2024-05-03T10:53:26+08:00","updated_at":"2024-05-03T10:53:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f375ceda0542d143eaee7a971c80562df56ba70b_e31f954f-224c-4e6c-a73b-93e1cc1fc8c1.webp?v=1714704806","variant_ids":[41879017554019]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23875311075427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f375ceda0542d143eaee7a971c80562df56ba70b_e31f954f-224c-4e6c-a73b-93e1cc1fc8c1.webp?v=1714704806"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879017848931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470409220195,"product_id":7407802089571,"position":10,"created_at":"2024-05-03T10:53:31+08:00","updated_at":"2024-05-03T10:53:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45afeadfe78cadefc707f0e7cdbd0770ee0df30f_1d8cd879-7a55-438d-a462-118c2609a11e.webp?v=1714704811","variant_ids":[41879017848931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23875312517219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45afeadfe78cadefc707f0e7cdbd0770ee0df30f_1d8cd879-7a55-438d-a462-118c2609a11e.webp?v=1714704811"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41879017488483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB109","requires_shipping":true,"taxable":true,"featured_image":{"id":31470404960355,"product_id":7407802089571,"position":3,"created_at":"2024-05-03T10:53:14+08:00","updated_at":"2024-05-03T10:53:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794","variant_ids":[41879017488483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克 vs 黑武士 - 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-PB109","featured_media":{"alt":null,"id":23875308191843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f410bf5eae073503bfa57b442ba054dd1ec68_f7b0c2ec-37f1-4a01-a6a2-76715501d7aa.webp?v=1714704794"}},"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: "停產"
}