$product = {"id":7407908094051,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古","handle":"iphone-14-pro-mod-nx-printable-pb99","description":null,"published_at":"2024-06-11T16:26:13+08:00","created_at":"2024-05-03T11:13:44+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":41880378540131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470675198051,"product_id":7407908094051,"position":9,"created_at":"2024-05-03T11:14:05+08:00","updated_at":"2024-05-03T11:14:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045","variant_ids":[41880378540131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23875579215971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880378605667,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470671724643,"product_id":7407908094051,"position":2,"created_at":"2024-05-03T11:13:49+08:00","updated_at":"2024-05-03T11:13:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1b7ea1b2a917d2c0d5a626f4b60edadbd5212f_c3d5e740-6b72-43e3-a58f-392dd94f1e6f.webp?v=1714706029","variant_ids":[41880378605667]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23875575709795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1b7ea1b2a917d2c0d5a626f4b60edadbd5212f_c3d5e740-6b72-43e3-a58f-392dd94f1e6f.webp?v=1714706029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880378835043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470672216163,"product_id":7407908094051,"position":3,"created_at":"2024-05-03T11:13:51+08:00","updated_at":"2024-05-03T11:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781457437ccb1998f24240fc13411b71323b148c_56a45ec1-12ff-4c30-a526-ec178b1ea632.webp?v=1714706031","variant_ids":[41880378835043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23875576234083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781457437ccb1998f24240fc13411b71323b148c_56a45ec1-12ff-4c30-a526-ec178b1ea632.webp?v=1714706031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/910e6da1517725431cd73fb2c3b57d9ddda0714c_ec770826-b89c-49c0-aa06-d5894de10b00.webp?v=1714706027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1b7ea1b2a917d2c0d5a626f4b60edadbd5212f_c3d5e740-6b72-43e3-a58f-392dd94f1e6f.webp?v=1714706029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781457437ccb1998f24240fc13411b71323b148c_56a45ec1-12ff-4c30-a526-ec178b1ea632.webp?v=1714706031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/520a2653e220003c63bd9f07caacae643646a84c_3dd3ad0e-ce41-416f-a2e6-739b61869105.webp?v=1714706034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b192a2931aaa08a5e3c07b71296d884cfa7f393_f0d59e18-18a8-4584-82d1-dd6914136adb.webp?v=1714706036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749ae1f158ca68b2753de6a77084f0b71b626a8c_ae4d26c9-98c7-49ee-ab2c-49f1abe58ec5.webp?v=1714706038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f82eea7f9b12436bcc0d30c2b7ec0f22da6a1e_a45e1516-0509-465f-8c24-9aa32718d6a5.webp?v=1714706041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ff36fefd995a1a70036b2db11a8ce62b76b64f_537f1bd6-928c-4541-b034-0907d2454ebe.webp?v=1714706043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f085cb006441e6c52860c77dd6ba8bb0cf567aea_99520a28-b1e1-4208-9748-4c047de02b60.webp?v=1714706048"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/910e6da1517725431cd73fb2c3b57d9ddda0714c_ec770826-b89c-49c0-aa06-d5894de10b00.webp?v=1714706027","options":["color"],"media":[{"alt":null,"id":23875575251043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/910e6da1517725431cd73fb2c3b57d9ddda0714c_ec770826-b89c-49c0-aa06-d5894de10b00.webp?v=1714706027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/910e6da1517725431cd73fb2c3b57d9ddda0714c_ec770826-b89c-49c0-aa06-d5894de10b00.webp?v=1714706027","width":2000},{"alt":null,"id":23875575709795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1b7ea1b2a917d2c0d5a626f4b60edadbd5212f_c3d5e740-6b72-43e3-a58f-392dd94f1e6f.webp?v=1714706029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1b7ea1b2a917d2c0d5a626f4b60edadbd5212f_c3d5e740-6b72-43e3-a58f-392dd94f1e6f.webp?v=1714706029","width":2000},{"alt":null,"id":23875576234083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781457437ccb1998f24240fc13411b71323b148c_56a45ec1-12ff-4c30-a526-ec178b1ea632.webp?v=1714706031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781457437ccb1998f24240fc13411b71323b148c_56a45ec1-12ff-4c30-a526-ec178b1ea632.webp?v=1714706031","width":2000},{"alt":null,"id":23875576660067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/520a2653e220003c63bd9f07caacae643646a84c_3dd3ad0e-ce41-416f-a2e6-739b61869105.webp?v=1714706034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/520a2653e220003c63bd9f07caacae643646a84c_3dd3ad0e-ce41-416f-a2e6-739b61869105.webp?v=1714706034","width":2000},{"alt":null,"id":23875577282659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b192a2931aaa08a5e3c07b71296d884cfa7f393_f0d59e18-18a8-4584-82d1-dd6914136adb.webp?v=1714706036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b192a2931aaa08a5e3c07b71296d884cfa7f393_f0d59e18-18a8-4584-82d1-dd6914136adb.webp?v=1714706036","width":2000},{"alt":null,"id":23875577872483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749ae1f158ca68b2753de6a77084f0b71b626a8c_ae4d26c9-98c7-49ee-ab2c-49f1abe58ec5.webp?v=1714706038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/749ae1f158ca68b2753de6a77084f0b71b626a8c_ae4d26c9-98c7-49ee-ab2c-49f1abe58ec5.webp?v=1714706038","width":2000},{"alt":null,"id":23875578331235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f82eea7f9b12436bcc0d30c2b7ec0f22da6a1e_a45e1516-0509-465f-8c24-9aa32718d6a5.webp?v=1714706041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f82eea7f9b12436bcc0d30c2b7ec0f22da6a1e_a45e1516-0509-465f-8c24-9aa32718d6a5.webp?v=1714706041","width":2000},{"alt":null,"id":23875578724451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ff36fefd995a1a70036b2db11a8ce62b76b64f_537f1bd6-928c-4541-b034-0907d2454ebe.webp?v=1714706043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7ff36fefd995a1a70036b2db11a8ce62b76b64f_537f1bd6-928c-4541-b034-0907d2454ebe.webp?v=1714706043","width":2000},{"alt":null,"id":23875579215971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045","width":2000},{"alt":null,"id":23875579478115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f085cb006441e6c52860c77dd6ba8bb0cf567aea_99520a28-b1e1-4208-9748-4c047de02b60.webp?v=1714706048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f085cb006441e6c52860c77dd6ba8bb0cf567aea_99520a28-b1e1-4208-9748-4c047de02b60.webp?v=1714706048","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41880378540131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470675198051,"product_id":7407908094051,"position":9,"created_at":"2024-05-03T11:14:05+08:00","updated_at":"2024-05-03T11:14:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045","variant_ids":[41880378540131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23875579215971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880378605667,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470671724643,"product_id":7407908094051,"position":2,"created_at":"2024-05-03T11:13:49+08:00","updated_at":"2024-05-03T11:13:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1b7ea1b2a917d2c0d5a626f4b60edadbd5212f_c3d5e740-6b72-43e3-a58f-392dd94f1e6f.webp?v=1714706029","variant_ids":[41880378605667]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23875575709795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c1b7ea1b2a917d2c0d5a626f4b60edadbd5212f_c3d5e740-6b72-43e3-a58f-392dd94f1e6f.webp?v=1714706029"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880378835043,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470672216163,"product_id":7407908094051,"position":3,"created_at":"2024-05-03T11:13:51+08:00","updated_at":"2024-05-03T11:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781457437ccb1998f24240fc13411b71323b148c_56a45ec1-12ff-4c30-a526-ec178b1ea632.webp?v=1714706031","variant_ids":[41880378835043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23875576234083,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/781457437ccb1998f24240fc13411b71323b148c_56a45ec1-12ff-4c30-a526-ec178b1ea632.webp?v=1714706031"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880378540131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31470675198051,"product_id":7407908094051,"position":9,"created_at":"2024-05-03T11:14:05+08:00","updated_at":"2024-05-03T11:14:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045","variant_ids":[41880378540131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古 - 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-PB99","featured_media":{"alt":null,"id":23875579215971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6b7e2bb3746c0bd73acae5762643f712c2d246b_0d3d935c-a982-49c5-a0e0-35850812b42d.webp?v=1714706045"}},"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: "停產"
}