$product = {"id":7414471917667,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb70","description":null,"published_at":"2024-06-11T17:51:30+08:00","created_at":"2024-05-05T14:26:59+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 13 mini","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":41906753994851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485558095971,"product_id":7414471917667,"position":1,"created_at":"2024-05-05T14:27:02+08:00","updated_at":"2024-05-05T14:27:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422","variant_ids":[41906753994851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - 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":"MPB0122824-PB70","featured_media":{"alt":null,"id":23890875351139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906754060387,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485586800739,"product_id":7414471917667,"position":10,"created_at":"2024-05-05T14:27:24+08:00","updated_at":"2024-05-05T14:27:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193dfc8788bc37427265ba56dc10572aa7a49d29_fea0398b-afbf-42eb-909b-83619d1281a4.webp?v=1714890444","variant_ids":[41906754060387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - 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":"MPB0122804-PB70","featured_media":{"alt":null,"id":23890903236707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193dfc8788bc37427265ba56dc10572aa7a49d29_fea0398b-afbf-42eb-909b-83619d1281a4.webp?v=1714890444"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906754388067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485584179299,"product_id":7414471917667,"position":9,"created_at":"2024-05-05T14:27:21+08:00","updated_at":"2024-05-05T14:27:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908c7ff8361a641bf6f761077ede1c9189ea60a_92909ef4-f607-43dc-bf5e-aa6f69451a8e.webp?v=1714890441","variant_ids":[41906754388067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - 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":"MPB01228J5-PB70","featured_media":{"alt":null,"id":23890900713571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908c7ff8361a641bf6f761077ede1c9189ea60a_92909ef4-f607-43dc-bf5e-aa6f69451a8e.webp?v=1714890441"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f772662cda67d7f285058f3a09527f4e1dc67_96887992-6398-4115-930f-66a2b411f64b.webp?v=1714890424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b471c99aa34a02b7ca4973ed25a907b54c2a392_b81ec373-0669-4309-8a6f-5498cd596d65.webp?v=1714890426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc68af5b5134f05b1aff52fc250851f824dd22da_a2148f6f-45cb-415a-8fb2-e4873bfd31a2.webp?v=1714890429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfaa88773e06f398c2cc093d29f886a05018a30a_c1f7c676-d6bc-4f85-9314-4b5961e74631.webp?v=1714890431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f40ee8c3b894bd176e6e0f511e81ec29d70e4c18_ad5cb314-643c-43ea-ad66-66c84961bf70.webp?v=1714890433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158bbb00016d6fecc1a7ba53dcca4798dc871aba_0a1b9860-d78f-42be-b417-25d052300cc1.webp?v=1714890436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9f029a846a527c35200be52abb18206c8c4ad4_8a5a94fa-2a6d-405d-bc10-8c63bcb1e2fd.webp?v=1714890438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908c7ff8361a641bf6f761077ede1c9189ea60a_92909ef4-f607-43dc-bf5e-aa6f69451a8e.webp?v=1714890441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193dfc8788bc37427265ba56dc10572aa7a49d29_fea0398b-afbf-42eb-909b-83619d1281a4.webp?v=1714890444"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422","options":["color"],"media":[{"alt":null,"id":23890875351139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422","width":2000},{"alt":null,"id":23890878529635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f772662cda67d7f285058f3a09527f4e1dc67_96887992-6398-4115-930f-66a2b411f64b.webp?v=1714890424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9f772662cda67d7f285058f3a09527f4e1dc67_96887992-6398-4115-930f-66a2b411f64b.webp?v=1714890424","width":2000},{"alt":null,"id":23890881183843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b471c99aa34a02b7ca4973ed25a907b54c2a392_b81ec373-0669-4309-8a6f-5498cd596d65.webp?v=1714890426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b471c99aa34a02b7ca4973ed25a907b54c2a392_b81ec373-0669-4309-8a6f-5498cd596d65.webp?v=1714890426","width":2000},{"alt":null,"id":23890884264035,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc68af5b5134f05b1aff52fc250851f824dd22da_a2148f6f-45cb-415a-8fb2-e4873bfd31a2.webp?v=1714890429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc68af5b5134f05b1aff52fc250851f824dd22da_a2148f6f-45cb-415a-8fb2-e4873bfd31a2.webp?v=1714890429","width":2000},{"alt":null,"id":23890886361187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfaa88773e06f398c2cc093d29f886a05018a30a_c1f7c676-d6bc-4f85-9314-4b5961e74631.webp?v=1714890431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfaa88773e06f398c2cc093d29f886a05018a30a_c1f7c676-d6bc-4f85-9314-4b5961e74631.webp?v=1714890431","width":2000},{"alt":null,"id":23890888982627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f40ee8c3b894bd176e6e0f511e81ec29d70e4c18_ad5cb314-643c-43ea-ad66-66c84961bf70.webp?v=1714890433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f40ee8c3b894bd176e6e0f511e81ec29d70e4c18_ad5cb314-643c-43ea-ad66-66c84961bf70.webp?v=1714890433","width":2000},{"alt":null,"id":23890891341923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158bbb00016d6fecc1a7ba53dcca4798dc871aba_0a1b9860-d78f-42be-b417-25d052300cc1.webp?v=1714890436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158bbb00016d6fecc1a7ba53dcca4798dc871aba_0a1b9860-d78f-42be-b417-25d052300cc1.webp?v=1714890436","width":2000},{"alt":null,"id":23890896781411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9f029a846a527c35200be52abb18206c8c4ad4_8a5a94fa-2a6d-405d-bc10-8c63bcb1e2fd.webp?v=1714890438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9f029a846a527c35200be52abb18206c8c4ad4_8a5a94fa-2a6d-405d-bc10-8c63bcb1e2fd.webp?v=1714890438","width":2000},{"alt":null,"id":23890900713571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908c7ff8361a641bf6f761077ede1c9189ea60a_92909ef4-f607-43dc-bf5e-aa6f69451a8e.webp?v=1714890441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908c7ff8361a641bf6f761077ede1c9189ea60a_92909ef4-f607-43dc-bf5e-aa6f69451a8e.webp?v=1714890441","width":2000},{"alt":null,"id":23890903236707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193dfc8788bc37427265ba56dc10572aa7a49d29_fea0398b-afbf-42eb-909b-83619d1281a4.webp?v=1714890444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193dfc8788bc37427265ba56dc10572aa7a49d29_fea0398b-afbf-42eb-909b-83619d1281a4.webp?v=1714890444","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906753994851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485558095971,"product_id":7414471917667,"position":1,"created_at":"2024-05-05T14:27:02+08:00","updated_at":"2024-05-05T14:27:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422","variant_ids":[41906753994851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - 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":"MPB0122824-PB70","featured_media":{"alt":null,"id":23890875351139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906754060387,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485586800739,"product_id":7414471917667,"position":10,"created_at":"2024-05-05T14:27:24+08:00","updated_at":"2024-05-05T14:27:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193dfc8788bc37427265ba56dc10572aa7a49d29_fea0398b-afbf-42eb-909b-83619d1281a4.webp?v=1714890444","variant_ids":[41906754060387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - 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":"MPB0122804-PB70","featured_media":{"alt":null,"id":23890903236707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193dfc8788bc37427265ba56dc10572aa7a49d29_fea0398b-afbf-42eb-909b-83619d1281a4.webp?v=1714890444"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906754388067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485584179299,"product_id":7414471917667,"position":9,"created_at":"2024-05-05T14:27:21+08:00","updated_at":"2024-05-05T14:27:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908c7ff8361a641bf6f761077ede1c9189ea60a_92909ef4-f607-43dc-bf5e-aa6f69451a8e.webp?v=1714890441","variant_ids":[41906754388067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - 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":"MPB01228J5-PB70","featured_media":{"alt":null,"id":23890900713571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6908c7ff8361a641bf6f761077ede1c9189ea60a_92909ef4-f607-43dc-bf5e-aa6f69451a8e.webp?v=1714890441"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906753994851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485558095971,"product_id":7414471917667,"position":1,"created_at":"2024-05-05T14:27:02+08:00","updated_at":"2024-05-05T14:27:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422","variant_ids":[41906753994851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - 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":"MPB0122824-PB70","featured_media":{"alt":null,"id":23890875351139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d07361799ffc426f839c0f54f003d20b7cc74f7_33352c51-16ee-4576-94d2-6bc3f067fcb5.webp?v=1714890422"}},"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: "停產"
}