$product = {"id":7408068296803,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡","handle":"iphone-13-mini-mod-nx-printable-pc07","description":null,"published_at":"2024-06-11T16:30:32+08:00","created_at":"2024-05-03T11:52:58+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":41882316898403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31471109701731,"product_id":7408068296803,"position":4,"created_at":"2024-05-03T11:53:08+08:00","updated_at":"2024-05-03T11:53:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388","variant_ids":[41882316898403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PC07","featured_media":{"alt":null,"id":23876014932067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882317029475,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31471112421475,"product_id":7408068296803,"position":9,"created_at":"2024-05-03T11:53:20+08:00","updated_at":"2024-05-03T11:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f7558dedaf9e5e0535ebdd961a835455872d48_e78ba2cc-24f2-4607-b079-48ef15522900.webp?v=1714708400","variant_ids":[41882317029475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PC07","featured_media":{"alt":null,"id":23876017619043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f7558dedaf9e5e0535ebdd961a835455872d48_e78ba2cc-24f2-4607-b079-48ef15522900.webp?v=1714708400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882317520995,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31471111733347,"product_id":7408068296803,"position":8,"created_at":"2024-05-03T11:53:18+08:00","updated_at":"2024-05-03T11:53:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8733450176855814870d7eb94ff893e2d3f0e31c_0d3c605e-81ae-4087-95bb-c6532cdcd1a9.webp?v=1714708398","variant_ids":[41882317520995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PC07","featured_media":{"alt":null,"id":23876017029219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8733450176855814870d7eb94ff893e2d3f0e31c_0d3c605e-81ae-4087-95bb-c6532cdcd1a9.webp?v=1714708398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b2240beb1a8fdb415037ca2b73222b4b5a5f61_ffaf338d-13f2-498e-af24-54c20fae9571.webp?v=1714708381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d98a6c6354e4bb1090a5e446cc2cd8c718c1f27_f851c542-9fca-443f-92d7-35c283ce2eab.webp?v=1714708383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c71c4fca352d9eb8aeeb930caec54060d1242d80_e0f1b243-630c-489b-91c0-fb6f76e9a005.webp?v=1714708385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6dcf051afe8d0279d3e8078124d9aa01c11f5b9_99caf2b8-4a88-4203-8576-95ed49fd9eb6.webp?v=1714708390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa7727d2f3f03b72c41301cdbeefd6195e2df6c_22bf817a-f7d9-4123-b1e1-21bf5e4eeff7.webp?v=1714708393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/753d535b58a6a360cffc647b829d8f2ac1355e5e_d5510f74-c7eb-49ae-a109-ecd10ab86510.webp?v=1714708395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8733450176855814870d7eb94ff893e2d3f0e31c_0d3c605e-81ae-4087-95bb-c6532cdcd1a9.webp?v=1714708398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f7558dedaf9e5e0535ebdd961a835455872d48_e78ba2cc-24f2-4607-b079-48ef15522900.webp?v=1714708400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1605e910990177038330fbbfa6f24ea5a5381b_16b809fa-1e19-43cb-b19b-6062d2ef64ef.webp?v=1714708402"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b2240beb1a8fdb415037ca2b73222b4b5a5f61_ffaf338d-13f2-498e-af24-54c20fae9571.webp?v=1714708381","options":["color"],"media":[{"alt":null,"id":23876013260899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b2240beb1a8fdb415037ca2b73222b4b5a5f61_ffaf338d-13f2-498e-af24-54c20fae9571.webp?v=1714708381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b2240beb1a8fdb415037ca2b73222b4b5a5f61_ffaf338d-13f2-498e-af24-54c20fae9571.webp?v=1714708381","width":2000},{"alt":null,"id":23876013686883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d98a6c6354e4bb1090a5e446cc2cd8c718c1f27_f851c542-9fca-443f-92d7-35c283ce2eab.webp?v=1714708383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d98a6c6354e4bb1090a5e446cc2cd8c718c1f27_f851c542-9fca-443f-92d7-35c283ce2eab.webp?v=1714708383","width":2000},{"alt":null,"id":23876014047331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c71c4fca352d9eb8aeeb930caec54060d1242d80_e0f1b243-630c-489b-91c0-fb6f76e9a005.webp?v=1714708385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c71c4fca352d9eb8aeeb930caec54060d1242d80_e0f1b243-630c-489b-91c0-fb6f76e9a005.webp?v=1714708385","width":2000},{"alt":null,"id":23876014932067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388","width":2000},{"alt":null,"id":23876015489123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6dcf051afe8d0279d3e8078124d9aa01c11f5b9_99caf2b8-4a88-4203-8576-95ed49fd9eb6.webp?v=1714708390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6dcf051afe8d0279d3e8078124d9aa01c11f5b9_99caf2b8-4a88-4203-8576-95ed49fd9eb6.webp?v=1714708390","width":2000},{"alt":null,"id":23876016078947,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa7727d2f3f03b72c41301cdbeefd6195e2df6c_22bf817a-f7d9-4123-b1e1-21bf5e4eeff7.webp?v=1714708393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa7727d2f3f03b72c41301cdbeefd6195e2df6c_22bf817a-f7d9-4123-b1e1-21bf5e4eeff7.webp?v=1714708393","width":2000},{"alt":null,"id":23876016472163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/753d535b58a6a360cffc647b829d8f2ac1355e5e_d5510f74-c7eb-49ae-a109-ecd10ab86510.webp?v=1714708395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/753d535b58a6a360cffc647b829d8f2ac1355e5e_d5510f74-c7eb-49ae-a109-ecd10ab86510.webp?v=1714708395","width":2000},{"alt":null,"id":23876017029219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8733450176855814870d7eb94ff893e2d3f0e31c_0d3c605e-81ae-4087-95bb-c6532cdcd1a9.webp?v=1714708398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8733450176855814870d7eb94ff893e2d3f0e31c_0d3c605e-81ae-4087-95bb-c6532cdcd1a9.webp?v=1714708398","width":2000},{"alt":null,"id":23876017619043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f7558dedaf9e5e0535ebdd961a835455872d48_e78ba2cc-24f2-4607-b079-48ef15522900.webp?v=1714708400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f7558dedaf9e5e0535ebdd961a835455872d48_e78ba2cc-24f2-4607-b079-48ef15522900.webp?v=1714708400","width":2000},{"alt":null,"id":23876018012259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1605e910990177038330fbbfa6f24ea5a5381b_16b809fa-1e19-43cb-b19b-6062d2ef64ef.webp?v=1714708402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1605e910990177038330fbbfa6f24ea5a5381b_16b809fa-1e19-43cb-b19b-6062d2ef64ef.webp?v=1714708402","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882316898403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31471109701731,"product_id":7408068296803,"position":4,"created_at":"2024-05-03T11:53:08+08:00","updated_at":"2024-05-03T11:53:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388","variant_ids":[41882316898403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PC07","featured_media":{"alt":null,"id":23876014932067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882317029475,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31471112421475,"product_id":7408068296803,"position":9,"created_at":"2024-05-03T11:53:20+08:00","updated_at":"2024-05-03T11:53:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f7558dedaf9e5e0535ebdd961a835455872d48_e78ba2cc-24f2-4607-b079-48ef15522900.webp?v=1714708400","variant_ids":[41882317029475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122804-PC07","featured_media":{"alt":null,"id":23876017619043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11f7558dedaf9e5e0535ebdd961a835455872d48_e78ba2cc-24f2-4607-b079-48ef15522900.webp?v=1714708400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882317520995,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31471111733347,"product_id":7408068296803,"position":8,"created_at":"2024-05-03T11:53:18+08:00","updated_at":"2024-05-03T11:53:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8733450176855814870d7eb94ff893e2d3f0e31c_0d3c605e-81ae-4087-95bb-c6532cdcd1a9.webp?v=1714708398","variant_ids":[41882317520995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01228J5-PC07","featured_media":{"alt":null,"id":23876017029219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8733450176855814870d7eb94ff893e2d3f0e31c_0d3c605e-81ae-4087-95bb-c6532cdcd1a9.webp?v=1714708398"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882316898403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31471109701731,"product_id":7408068296803,"position":4,"created_at":"2024-05-03T11:53:08+08:00","updated_at":"2024-05-03T11:53:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388","variant_ids":[41882316898403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0122824-PC07","featured_media":{"alt":null,"id":23876014932067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a55075ef46d47ac9ed3cf3bed243509c21a060_c3a3c2f4-7445-4487-b586-629a8fe543a6.webp?v=1714708388"}},"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: "停產"
}