$product = {"id":7414283665507,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb19","description":null,"published_at":"2024-06-11T17:50:29+08:00","created_at":"2024-05-05T14:20:06+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":41905413619811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31485066739811,"product_id":7414283665507,"position":4,"created_at":"2024-05-05T14:20:15+08:00","updated_at":"2024-05-05T14:20:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015","variant_ids":[41905413619811]},"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-PB19","featured_media":{"alt":null,"id":23890381635683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905413750883,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31485068279907,"product_id":7414283665507,"position":5,"created_at":"2024-05-05T14:20:18+08:00","updated_at":"2024-05-05T14:20:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b964306bd63ab0c150a1d1ee08a3b3d5dc9d5e_639a7474-a54b-45d2-b65c-c096b24462f6.webp?v=1714890018","variant_ids":[41905413750883]},"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-PB19","featured_media":{"alt":null,"id":23890383274083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b964306bd63ab0c150a1d1ee08a3b3d5dc9d5e_639a7474-a54b-45d2-b65c-c096b24462f6.webp?v=1714890018"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905414275171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31485069721699,"product_id":7414283665507,"position":6,"created_at":"2024-05-05T14:20:20+08:00","updated_at":"2024-05-05T14:20:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a62c27f166075eb21b73071ad0fcdb0f1ed94f_07706a0d-d870-4fca-8936-74ff2ae9d1bb.webp?v=1714890020","variant_ids":[41905414275171]},"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-PB19","featured_media":{"alt":null,"id":23890384912483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a62c27f166075eb21b73071ad0fcdb0f1ed94f_07706a0d-d870-4fca-8936-74ff2ae9d1bb.webp?v=1714890020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4511ab3f0980849ea639483bf34964ae8b99002_7f56fff5-65f9-4afa-aec2-7a0a3437797f.webp?v=1714890009","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3566504345a24e1c40fc54c9d31dd10e45272cc_532a9e7a-1308-43fa-9da3-7673bdd1a482.webp?v=1714890011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3644d8cb60285738b5c275104dacbd0d49fdd4f7_4357adb0-e7f0-4b27-a379-3ab2e4839ae5.webp?v=1714890013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b964306bd63ab0c150a1d1ee08a3b3d5dc9d5e_639a7474-a54b-45d2-b65c-c096b24462f6.webp?v=1714890018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a62c27f166075eb21b73071ad0fcdb0f1ed94f_07706a0d-d870-4fca-8936-74ff2ae9d1bb.webp?v=1714890020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58d9a54bf580b0da37dcef78597d1420cd8e8af6_06553c82-5e1a-4d18-8939-9cb89d3bfab9.webp?v=1714890023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24c689ea011c152fa49165b6658e567fc4c00831_59a7c7e8-16dc-4a5f-863b-2c115ff2c410.webp?v=1714890025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec707c047b70493e80020caca0b34db3fd2bb12_c99c0e1c-16fd-4ff6-b22c-174392703685.webp?v=1714890027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8995be33eea10a2c682fca1ae319e092d0123782_bd78a619-f019-46bd-8a77-b26554101c58.webp?v=1714890030"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4511ab3f0980849ea639483bf34964ae8b99002_7f56fff5-65f9-4afa-aec2-7a0a3437797f.webp?v=1714890009","options":["color"],"media":[{"alt":null,"id":23890377080931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4511ab3f0980849ea639483bf34964ae8b99002_7f56fff5-65f9-4afa-aec2-7a0a3437797f.webp?v=1714890009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4511ab3f0980849ea639483bf34964ae8b99002_7f56fff5-65f9-4afa-aec2-7a0a3437797f.webp?v=1714890009","width":2000},{"alt":null,"id":23890378424419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3566504345a24e1c40fc54c9d31dd10e45272cc_532a9e7a-1308-43fa-9da3-7673bdd1a482.webp?v=1714890011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3566504345a24e1c40fc54c9d31dd10e45272cc_532a9e7a-1308-43fa-9da3-7673bdd1a482.webp?v=1714890011","width":2000},{"alt":null,"id":23890379767907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3644d8cb60285738b5c275104dacbd0d49fdd4f7_4357adb0-e7f0-4b27-a379-3ab2e4839ae5.webp?v=1714890013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3644d8cb60285738b5c275104dacbd0d49fdd4f7_4357adb0-e7f0-4b27-a379-3ab2e4839ae5.webp?v=1714890013","width":2000},{"alt":null,"id":23890381635683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015","width":2000},{"alt":null,"id":23890383274083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b964306bd63ab0c150a1d1ee08a3b3d5dc9d5e_639a7474-a54b-45d2-b65c-c096b24462f6.webp?v=1714890018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b964306bd63ab0c150a1d1ee08a3b3d5dc9d5e_639a7474-a54b-45d2-b65c-c096b24462f6.webp?v=1714890018","width":2000},{"alt":null,"id":23890384912483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a62c27f166075eb21b73071ad0fcdb0f1ed94f_07706a0d-d870-4fca-8936-74ff2ae9d1bb.webp?v=1714890020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a62c27f166075eb21b73071ad0fcdb0f1ed94f_07706a0d-d870-4fca-8936-74ff2ae9d1bb.webp?v=1714890020","width":2000},{"alt":null,"id":23890386747491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58d9a54bf580b0da37dcef78597d1420cd8e8af6_06553c82-5e1a-4d18-8939-9cb89d3bfab9.webp?v=1714890023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58d9a54bf580b0da37dcef78597d1420cd8e8af6_06553c82-5e1a-4d18-8939-9cb89d3bfab9.webp?v=1714890023","width":2000},{"alt":null,"id":23890388549731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24c689ea011c152fa49165b6658e567fc4c00831_59a7c7e8-16dc-4a5f-863b-2c115ff2c410.webp?v=1714890025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24c689ea011c152fa49165b6658e567fc4c00831_59a7c7e8-16dc-4a5f-863b-2c115ff2c410.webp?v=1714890025","width":2000},{"alt":null,"id":23890394775651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec707c047b70493e80020caca0b34db3fd2bb12_c99c0e1c-16fd-4ff6-b22c-174392703685.webp?v=1714890027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cec707c047b70493e80020caca0b34db3fd2bb12_c99c0e1c-16fd-4ff6-b22c-174392703685.webp?v=1714890027","width":2000},{"alt":null,"id":23890396741731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8995be33eea10a2c682fca1ae319e092d0123782_bd78a619-f019-46bd-8a77-b26554101c58.webp?v=1714890030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8995be33eea10a2c682fca1ae319e092d0123782_bd78a619-f019-46bd-8a77-b26554101c58.webp?v=1714890030","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905413619811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31485066739811,"product_id":7414283665507,"position":4,"created_at":"2024-05-05T14:20:15+08:00","updated_at":"2024-05-05T14:20:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015","variant_ids":[41905413619811]},"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-PB19","featured_media":{"alt":null,"id":23890381635683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905413750883,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31485068279907,"product_id":7414283665507,"position":5,"created_at":"2024-05-05T14:20:18+08:00","updated_at":"2024-05-05T14:20:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b964306bd63ab0c150a1d1ee08a3b3d5dc9d5e_639a7474-a54b-45d2-b65c-c096b24462f6.webp?v=1714890018","variant_ids":[41905413750883]},"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-PB19","featured_media":{"alt":null,"id":23890383274083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20b964306bd63ab0c150a1d1ee08a3b3d5dc9d5e_639a7474-a54b-45d2-b65c-c096b24462f6.webp?v=1714890018"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905414275171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31485069721699,"product_id":7414283665507,"position":6,"created_at":"2024-05-05T14:20:20+08:00","updated_at":"2024-05-05T14:20:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a62c27f166075eb21b73071ad0fcdb0f1ed94f_07706a0d-d870-4fca-8936-74ff2ae9d1bb.webp?v=1714890020","variant_ids":[41905414275171]},"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-PB19","featured_media":{"alt":null,"id":23890384912483,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65a62c27f166075eb21b73071ad0fcdb0f1ed94f_07706a0d-d870-4fca-8936-74ff2ae9d1bb.webp?v=1714890020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905413619811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31485066739811,"product_id":7414283665507,"position":4,"created_at":"2024-05-05T14:20:15+08:00","updated_at":"2024-05-05T14:20:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015","variant_ids":[41905413619811]},"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-PB19","featured_media":{"alt":null,"id":23890381635683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33b687341cae18629a1bc8af3aeb64e480f123f8_05656206-68ea-4136-b3d9-584dca645f1f.webp?v=1714890015"}},"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: "停產"
}