$product = {"id":7408098738275,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列","handle":"iphone-13-mini-mod-nx-printable-pb85","description":null,"published_at":"2024-06-11T16:31:21+08:00","created_at":"2024-05-03T11:59:38+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 13 mini","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":41882656702563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31471191687267,"product_id":7408098738275,"position":9,"created_at":"2024-05-03T11:59:59+08:00","updated_at":"2024-05-03T11:59:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799","variant_ids":[41882656702563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"NPB0122824-PB85","featured_media":{"alt":null,"id":23876096950371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882656768099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31471190999139,"product_id":7408098738275,"position":8,"created_at":"2024-05-03T11:59:57+08:00","updated_at":"2024-05-03T11:59:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611e26b8b641db2d220298446b9d337f1c65a4_49d1406a-4201-4d1c-bb3a-a7d98adf8284.webp?v=1714708797","variant_ids":[41882656768099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"NPB0122804-PB85","featured_media":{"alt":null,"id":23876096229475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611e26b8b641db2d220298446b9d337f1c65a4_49d1406a-4201-4d1c-bb3a-a7d98adf8284.webp?v=1714708797"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882657030243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31471190540387,"product_id":7408098738275,"position":7,"created_at":"2024-05-03T11:59:55+08:00","updated_at":"2024-05-03T11:59:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1729b57db08ed812f5161c4b303f35b0acff6d3_08bf5c52-4b3a-455f-b6c5-4d3115c04e84.webp?v=1714708795","variant_ids":[41882657030243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"NPB01228J5-PB85","featured_media":{"alt":null,"id":23876095803491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1729b57db08ed812f5161c4b303f35b0acff6d3_08bf5c52-4b3a-455f-b6c5-4d3115c04e84.webp?v=1714708795"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6bc3e6a70c13fd3cb824c5161f721a0f5085b9_5426b994-5601-4b99-83fc-6c7bcfced742.webp?v=1714708781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0bb09ef7c64bdd13d5d18bda35ae075aee73c_c053b37f-cb27-4c78-8e64-6a7b0f17828c.webp?v=1714708783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/243eb45082e71822988a17288a62eef1ee3cb910_e2e7e829-1204-49bc-a1d3-afe3a40a31f1.webp?v=1714708785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ecfd7d3a816c925a3437489f6b9a916dc50a3a_1fe4e884-229a-4a65-8d1c-bf22cd0e626e.webp?v=1714708788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8df31a6d42fd9feb4367e24ca277fc7e415c28ee_358ba8eb-8a76-47a6-9a6c-ae7566265996.webp?v=1714708790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b88ac0dc171f2a0f18e63355833d02139bf8522_bc685435-9876-4509-9f14-1464105650fe.webp?v=1714708792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1729b57db08ed812f5161c4b303f35b0acff6d3_08bf5c52-4b3a-455f-b6c5-4d3115c04e84.webp?v=1714708795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611e26b8b641db2d220298446b9d337f1c65a4_49d1406a-4201-4d1c-bb3a-a7d98adf8284.webp?v=1714708797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098cebef7fdeb9e210d9809b80825b27ba096e2a_466726cf-c593-4691-b18e-ab95092c1dc1.webp?v=1714708801"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6bc3e6a70c13fd3cb824c5161f721a0f5085b9_5426b994-5601-4b99-83fc-6c7bcfced742.webp?v=1714708781","options":["color"],"media":[{"alt":null,"id":23876092952675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6bc3e6a70c13fd3cb824c5161f721a0f5085b9_5426b994-5601-4b99-83fc-6c7bcfced742.webp?v=1714708781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd6bc3e6a70c13fd3cb824c5161f721a0f5085b9_5426b994-5601-4b99-83fc-6c7bcfced742.webp?v=1714708781","width":2000},{"alt":null,"id":23876093476963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0bb09ef7c64bdd13d5d18bda35ae075aee73c_c053b37f-cb27-4c78-8e64-6a7b0f17828c.webp?v=1714708783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f0bb09ef7c64bdd13d5d18bda35ae075aee73c_c053b37f-cb27-4c78-8e64-6a7b0f17828c.webp?v=1714708783","width":2000},{"alt":null,"id":23876093837411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/243eb45082e71822988a17288a62eef1ee3cb910_e2e7e829-1204-49bc-a1d3-afe3a40a31f1.webp?v=1714708785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/243eb45082e71822988a17288a62eef1ee3cb910_e2e7e829-1204-49bc-a1d3-afe3a40a31f1.webp?v=1714708785","width":2000},{"alt":null,"id":23876094492771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ecfd7d3a816c925a3437489f6b9a916dc50a3a_1fe4e884-229a-4a65-8d1c-bf22cd0e626e.webp?v=1714708788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ecfd7d3a816c925a3437489f6b9a916dc50a3a_1fe4e884-229a-4a65-8d1c-bf22cd0e626e.webp?v=1714708788","width":2000},{"alt":null,"id":23876094853219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8df31a6d42fd9feb4367e24ca277fc7e415c28ee_358ba8eb-8a76-47a6-9a6c-ae7566265996.webp?v=1714708790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8df31a6d42fd9feb4367e24ca277fc7e415c28ee_358ba8eb-8a76-47a6-9a6c-ae7566265996.webp?v=1714708790","width":2000},{"alt":null,"id":23876095377507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b88ac0dc171f2a0f18e63355833d02139bf8522_bc685435-9876-4509-9f14-1464105650fe.webp?v=1714708792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b88ac0dc171f2a0f18e63355833d02139bf8522_bc685435-9876-4509-9f14-1464105650fe.webp?v=1714708792","width":2000},{"alt":null,"id":23876095803491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1729b57db08ed812f5161c4b303f35b0acff6d3_08bf5c52-4b3a-455f-b6c5-4d3115c04e84.webp?v=1714708795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1729b57db08ed812f5161c4b303f35b0acff6d3_08bf5c52-4b3a-455f-b6c5-4d3115c04e84.webp?v=1714708795","width":2000},{"alt":null,"id":23876096229475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611e26b8b641db2d220298446b9d337f1c65a4_49d1406a-4201-4d1c-bb3a-a7d98adf8284.webp?v=1714708797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611e26b8b641db2d220298446b9d337f1c65a4_49d1406a-4201-4d1c-bb3a-a7d98adf8284.webp?v=1714708797","width":2000},{"alt":null,"id":23876096950371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799","width":2000},{"alt":null,"id":23876097474659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098cebef7fdeb9e210d9809b80825b27ba096e2a_466726cf-c593-4691-b18e-ab95092c1dc1.webp?v=1714708801"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098cebef7fdeb9e210d9809b80825b27ba096e2a_466726cf-c593-4691-b18e-ab95092c1dc1.webp?v=1714708801","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882656702563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31471191687267,"product_id":7408098738275,"position":9,"created_at":"2024-05-03T11:59:59+08:00","updated_at":"2024-05-03T11:59:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799","variant_ids":[41882656702563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"NPB0122824-PB85","featured_media":{"alt":null,"id":23876096950371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882656768099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31471190999139,"product_id":7408098738275,"position":8,"created_at":"2024-05-03T11:59:57+08:00","updated_at":"2024-05-03T11:59:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611e26b8b641db2d220298446b9d337f1c65a4_49d1406a-4201-4d1c-bb3a-a7d98adf8284.webp?v=1714708797","variant_ids":[41882656768099]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"NPB0122804-PB85","featured_media":{"alt":null,"id":23876096229475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e611e26b8b641db2d220298446b9d337f1c65a4_49d1406a-4201-4d1c-bb3a-a7d98adf8284.webp?v=1714708797"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882657030243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31471190540387,"product_id":7408098738275,"position":7,"created_at":"2024-05-03T11:59:55+08:00","updated_at":"2024-05-03T11:59:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1729b57db08ed812f5161c4b303f35b0acff6d3_08bf5c52-4b3a-455f-b6c5-4d3115c04e84.webp?v=1714708795","variant_ids":[41882657030243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"NPB01228J5-PB85","featured_media":{"alt":null,"id":23876095803491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1729b57db08ed812f5161c4b303f35b0acff6d3_08bf5c52-4b3a-455f-b6c5-4d3115c04e84.webp?v=1714708795"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882656702563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31471191687267,"product_id":7408098738275,"position":9,"created_at":"2024-05-03T11:59:59+08:00","updated_at":"2024-05-03T11:59:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799","variant_ids":[41882656702563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"NPB0122824-PB85","featured_media":{"alt":null,"id":23876096950371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf027e0788432ee6bf561dafdab752828c4c02c_507f1980-7a8e-439a-95a8-065a0ba31fd7.webp?v=1714708799"}},"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: "停產"
}