$product = {"id":7408145793123,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白","handle":"iphone-13-mini-mod-nx-printable-pb12","description":null,"published_at":"2024-06-11T16:32:37+08:00","created_at":"2024-05-03T12:08:53+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":41883185709155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31471311650915,"product_id":7408145793123,"position":5,"created_at":"2024-05-03T12:09:05+08:00","updated_at":"2024-05-03T12:09:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345","variant_ids":[41883185709155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23876217274467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883185774691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31471312502883,"product_id":7408145793123,"position":7,"created_at":"2024-05-03T12:09:10+08:00","updated_at":"2024-05-03T12:09:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93195c7a0407cae8b0d5014ce6bbc8afdce9d6f1_d59b37f9-55c7-479a-a0e9-730728703090.webp?v=1714709350","variant_ids":[41883185774691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23876218191971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93195c7a0407cae8b0d5014ce6bbc8afdce9d6f1_d59b37f9-55c7-479a-a0e9-730728703090.webp?v=1714709350"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883186004067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31471310635107,"product_id":7408145793123,"position":3,"created_at":"2024-05-03T12:09:01+08:00","updated_at":"2024-05-03T12:09:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc6e82f9cdbff0aa5b0c671ec93a064b99dcd39_62e9d9c4-88a9-4a19-907f-bc6123f40ea8.webp?v=1714709341","variant_ids":[41883186004067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23876216291427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc6e82f9cdbff0aa5b0c671ec93a064b99dcd39_62e9d9c4-88a9-4a19-907f-bc6123f40ea8.webp?v=1714709341"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a6f42d16318c4b473c1e34a719a7497c39a30f_204b7250-0df3-4761-93c5-c9a774d9f69c.webp?v=1714709336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d84e9e104426eff27b1d520201ea3752c218ffa3_e849a757-8031-4604-9aae-56c7831f1644.webp?v=1714709338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc6e82f9cdbff0aa5b0c671ec93a064b99dcd39_62e9d9c4-88a9-4a19-907f-bc6123f40ea8.webp?v=1714709341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a3a0b882481ad428bb0463e744edf29de8a05a_50bfda48-51de-4f43-883f-d5b9b5869fd1.webp?v=1714709343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0901a07b8d34f560b6db3946310e4b5a4acf2bcb_1de194b1-1904-4a8f-8fe2-51201f3dce6c.webp?v=1714709348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93195c7a0407cae8b0d5014ce6bbc8afdce9d6f1_d59b37f9-55c7-479a-a0e9-730728703090.webp?v=1714709350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1264a314db3600f3257207eedfd810581aec514_17488f27-d255-45dc-bc3e-22316ecad01b.webp?v=1714709352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1a0d38fea7d359a4d4ccd574a757284d13e6f18_2a8979a5-aa4a-4a51-ad87-1776c7c8e0b1.webp?v=1714709354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e249bfb80a0563fe43771be6dedf74943ddd94ae_1027790c-154d-4b89-a89f-e21b16fccb76.webp?v=1714709357"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a6f42d16318c4b473c1e34a719a7497c39a30f_204b7250-0df3-4761-93c5-c9a774d9f69c.webp?v=1714709336","options":["color"],"media":[{"alt":null,"id":23876215210083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a6f42d16318c4b473c1e34a719a7497c39a30f_204b7250-0df3-4761-93c5-c9a774d9f69c.webp?v=1714709336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4a6f42d16318c4b473c1e34a719a7497c39a30f_204b7250-0df3-4761-93c5-c9a774d9f69c.webp?v=1714709336","width":2000},{"alt":null,"id":23876215767139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d84e9e104426eff27b1d520201ea3752c218ffa3_e849a757-8031-4604-9aae-56c7831f1644.webp?v=1714709338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d84e9e104426eff27b1d520201ea3752c218ffa3_e849a757-8031-4604-9aae-56c7831f1644.webp?v=1714709338","width":2000},{"alt":null,"id":23876216291427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc6e82f9cdbff0aa5b0c671ec93a064b99dcd39_62e9d9c4-88a9-4a19-907f-bc6123f40ea8.webp?v=1714709341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc6e82f9cdbff0aa5b0c671ec93a064b99dcd39_62e9d9c4-88a9-4a19-907f-bc6123f40ea8.webp?v=1714709341","width":2000},{"alt":null,"id":23876216881251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a3a0b882481ad428bb0463e744edf29de8a05a_50bfda48-51de-4f43-883f-d5b9b5869fd1.webp?v=1714709343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09a3a0b882481ad428bb0463e744edf29de8a05a_50bfda48-51de-4f43-883f-d5b9b5869fd1.webp?v=1714709343","width":2000},{"alt":null,"id":23876217274467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345","width":2000},{"alt":null,"id":23876217733219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0901a07b8d34f560b6db3946310e4b5a4acf2bcb_1de194b1-1904-4a8f-8fe2-51201f3dce6c.webp?v=1714709348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0901a07b8d34f560b6db3946310e4b5a4acf2bcb_1de194b1-1904-4a8f-8fe2-51201f3dce6c.webp?v=1714709348","width":2000},{"alt":null,"id":23876218191971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93195c7a0407cae8b0d5014ce6bbc8afdce9d6f1_d59b37f9-55c7-479a-a0e9-730728703090.webp?v=1714709350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93195c7a0407cae8b0d5014ce6bbc8afdce9d6f1_d59b37f9-55c7-479a-a0e9-730728703090.webp?v=1714709350","width":2000},{"alt":null,"id":23876218585187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1264a314db3600f3257207eedfd810581aec514_17488f27-d255-45dc-bc3e-22316ecad01b.webp?v=1714709352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1264a314db3600f3257207eedfd810581aec514_17488f27-d255-45dc-bc3e-22316ecad01b.webp?v=1714709352","width":2000},{"alt":null,"id":23876219142243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1a0d38fea7d359a4d4ccd574a757284d13e6f18_2a8979a5-aa4a-4a51-ad87-1776c7c8e0b1.webp?v=1714709354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1a0d38fea7d359a4d4ccd574a757284d13e6f18_2a8979a5-aa4a-4a51-ad87-1776c7c8e0b1.webp?v=1714709354","width":2000},{"alt":null,"id":23876219535459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e249bfb80a0563fe43771be6dedf74943ddd94ae_1027790c-154d-4b89-a89f-e21b16fccb76.webp?v=1714709357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e249bfb80a0563fe43771be6dedf74943ddd94ae_1027790c-154d-4b89-a89f-e21b16fccb76.webp?v=1714709357","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883185709155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31471311650915,"product_id":7408145793123,"position":5,"created_at":"2024-05-03T12:09:05+08:00","updated_at":"2024-05-03T12:09:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345","variant_ids":[41883185709155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23876217274467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883185774691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31471312502883,"product_id":7408145793123,"position":7,"created_at":"2024-05-03T12:09:10+08:00","updated_at":"2024-05-03T12:09:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93195c7a0407cae8b0d5014ce6bbc8afdce9d6f1_d59b37f9-55c7-479a-a0e9-730728703090.webp?v=1714709350","variant_ids":[41883185774691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23876218191971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93195c7a0407cae8b0d5014ce6bbc8afdce9d6f1_d59b37f9-55c7-479a-a0e9-730728703090.webp?v=1714709350"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883186004067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31471310635107,"product_id":7408145793123,"position":3,"created_at":"2024-05-03T12:09:01+08:00","updated_at":"2024-05-03T12:09:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc6e82f9cdbff0aa5b0c671ec93a064b99dcd39_62e9d9c4-88a9-4a19-907f-bc6123f40ea8.webp?v=1714709341","variant_ids":[41883186004067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23876216291427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fdc6e82f9cdbff0aa5b0c671ec93a064b99dcd39_62e9d9c4-88a9-4a19-907f-bc6123f40ea8.webp?v=1714709341"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883185709155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31471311650915,"product_id":7408145793123,"position":5,"created_at":"2024-05-03T12:09:05+08:00","updated_at":"2024-05-03T12:09:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345","variant_ids":[41883185709155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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-PB12","featured_media":{"alt":null,"id":23876217274467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82ceff2d6f41611a5a1d6e7052cf58c04b56e65c_1c24a990-160a-4ddc-870a-147fe79bd355.webp?v=1714709345"}},"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: "停產"
}