$product = {"id":7413984264291,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear","handle":"iphone-13-mini-mod-nx-magsafe-printable-yb03","description":null,"published_at":"2024-06-11T17:46:53+08:00","created_at":"2024-05-05T13:55:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41902992883811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484388704355,"product_id":7413984264291,"position":3,"created_at":"2024-05-05T13:55:33+08:00","updated_at":"2024-05-05T13:55:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533","variant_ids":[41902992883811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-YB03","featured_media":{"alt":null,"id":23889682628707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902993014883,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484389195875,"product_id":7413984264291,"position":4,"created_at":"2024-05-05T13:55:35+08:00","updated_at":"2024-05-05T13:55:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e5e1c6215cc51fd2e6803652ad4057d02e3a4d_dd644ff3-345a-4734-bd42-7b8e5525c8a8.webp?v=1714888535","variant_ids":[41902993014883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-YB03","featured_media":{"alt":null,"id":23889683152995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e5e1c6215cc51fd2e6803652ad4057d02e3a4d_dd644ff3-345a-4734-bd42-7b8e5525c8a8.webp?v=1714888535"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902993539171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484391915619,"product_id":7413984264291,"position":10,"created_at":"2024-05-05T13:55:49+08:00","updated_at":"2024-05-05T13:55:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6421dc2b766f3294d1a3fb0dada96515a50e2478_b4dea574-bc96-4b2f-a1eb-54424a3d3ceb.webp?v=1714888549","variant_ids":[41902993539171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-YB03","featured_media":{"alt":null,"id":23889685839971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6421dc2b766f3294d1a3fb0dada96515a50e2478_b4dea574-bc96-4b2f-a1eb-54424a3d3ceb.webp?v=1714888549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb87e23e272a39d62e8bf25717492602bd072090_6a769a82-e9ab-41fc-b546-330766c9f7ef.webp?v=1714888528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e9985684f58f63ad2dca1c1c44e9c7bfef71e12_4c33cbfb-3b5c-4bcb-9d2e-9edfddf26fc7.webp?v=1714888530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e5e1c6215cc51fd2e6803652ad4057d02e3a4d_dd644ff3-345a-4734-bd42-7b8e5525c8a8.webp?v=1714888535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f28feccbfb8dca315ff35d2566f4794cb3f0509a_2398347c-a5c5-4dec-9a23-9f01e2465c82.webp?v=1714888537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9be61f6f50b6ffb2668e596376eaba10894d5_a47cdf04-ea52-469c-b5c1-c9e26cf7710d.webp?v=1714888540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b194c62a95d7b8998617acd9e269ea11d726e9_c4ce3dc6-f6f9-485b-9dc2-f7db25f4f5e3.webp?v=1714888542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/407a6198b93e224c2f7c55a9dcd7a0b09deadd92_48f8fce5-7085-45ea-b6c2-c83dc44abcf2.webp?v=1714888545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb31be4bf77a1e8ca3435cb9ad8cac47f0057f26_c7ef445f-3916-4eb2-8203-1bb00db8d322.webp?v=1714888547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6421dc2b766f3294d1a3fb0dada96515a50e2478_b4dea574-bc96-4b2f-a1eb-54424a3d3ceb.webp?v=1714888549"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb87e23e272a39d62e8bf25717492602bd072090_6a769a82-e9ab-41fc-b546-330766c9f7ef.webp?v=1714888528","options":["color"],"media":[{"alt":null,"id":23889681678435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb87e23e272a39d62e8bf25717492602bd072090_6a769a82-e9ab-41fc-b546-330766c9f7ef.webp?v=1714888528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb87e23e272a39d62e8bf25717492602bd072090_6a769a82-e9ab-41fc-b546-330766c9f7ef.webp?v=1714888528","width":2000},{"alt":null,"id":23889682333795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e9985684f58f63ad2dca1c1c44e9c7bfef71e12_4c33cbfb-3b5c-4bcb-9d2e-9edfddf26fc7.webp?v=1714888530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e9985684f58f63ad2dca1c1c44e9c7bfef71e12_4c33cbfb-3b5c-4bcb-9d2e-9edfddf26fc7.webp?v=1714888530","width":2000},{"alt":null,"id":23889682628707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533","width":2000},{"alt":null,"id":23889683152995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e5e1c6215cc51fd2e6803652ad4057d02e3a4d_dd644ff3-345a-4734-bd42-7b8e5525c8a8.webp?v=1714888535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e5e1c6215cc51fd2e6803652ad4057d02e3a4d_dd644ff3-345a-4734-bd42-7b8e5525c8a8.webp?v=1714888535","width":2000},{"alt":null,"id":23889683578979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f28feccbfb8dca315ff35d2566f4794cb3f0509a_2398347c-a5c5-4dec-9a23-9f01e2465c82.webp?v=1714888537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f28feccbfb8dca315ff35d2566f4794cb3f0509a_2398347c-a5c5-4dec-9a23-9f01e2465c82.webp?v=1714888537","width":2000},{"alt":null,"id":23889684136035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9be61f6f50b6ffb2668e596376eaba10894d5_a47cdf04-ea52-469c-b5c1-c9e26cf7710d.webp?v=1714888540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf9be61f6f50b6ffb2668e596376eaba10894d5_a47cdf04-ea52-469c-b5c1-c9e26cf7710d.webp?v=1714888540","width":2000},{"alt":null,"id":23889684693091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b194c62a95d7b8998617acd9e269ea11d726e9_c4ce3dc6-f6f9-485b-9dc2-f7db25f4f5e3.webp?v=1714888542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b194c62a95d7b8998617acd9e269ea11d726e9_c4ce3dc6-f6f9-485b-9dc2-f7db25f4f5e3.webp?v=1714888542","width":2000},{"alt":null,"id":23889685053539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/407a6198b93e224c2f7c55a9dcd7a0b09deadd92_48f8fce5-7085-45ea-b6c2-c83dc44abcf2.webp?v=1714888545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/407a6198b93e224c2f7c55a9dcd7a0b09deadd92_48f8fce5-7085-45ea-b6c2-c83dc44abcf2.webp?v=1714888545","width":2000},{"alt":null,"id":23889685446755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb31be4bf77a1e8ca3435cb9ad8cac47f0057f26_c7ef445f-3916-4eb2-8203-1bb00db8d322.webp?v=1714888547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb31be4bf77a1e8ca3435cb9ad8cac47f0057f26_c7ef445f-3916-4eb2-8203-1bb00db8d322.webp?v=1714888547","width":2000},{"alt":null,"id":23889685839971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6421dc2b766f3294d1a3fb0dada96515a50e2478_b4dea574-bc96-4b2f-a1eb-54424a3d3ceb.webp?v=1714888549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6421dc2b766f3294d1a3fb0dada96515a50e2478_b4dea574-bc96-4b2f-a1eb-54424a3d3ceb.webp?v=1714888549","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902992883811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484388704355,"product_id":7413984264291,"position":3,"created_at":"2024-05-05T13:55:33+08:00","updated_at":"2024-05-05T13:55:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533","variant_ids":[41902992883811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-YB03","featured_media":{"alt":null,"id":23889682628707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902993014883,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484389195875,"product_id":7413984264291,"position":4,"created_at":"2024-05-05T13:55:35+08:00","updated_at":"2024-05-05T13:55:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e5e1c6215cc51fd2e6803652ad4057d02e3a4d_dd644ff3-345a-4734-bd42-7b8e5525c8a8.webp?v=1714888535","variant_ids":[41902993014883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-YB03","featured_media":{"alt":null,"id":23889683152995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e5e1c6215cc51fd2e6803652ad4057d02e3a4d_dd644ff3-345a-4734-bd42-7b8e5525c8a8.webp?v=1714888535"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902993539171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484391915619,"product_id":7413984264291,"position":10,"created_at":"2024-05-05T13:55:49+08:00","updated_at":"2024-05-05T13:55:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6421dc2b766f3294d1a3fb0dada96515a50e2478_b4dea574-bc96-4b2f-a1eb-54424a3d3ceb.webp?v=1714888549","variant_ids":[41902993539171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-YB03","featured_media":{"alt":null,"id":23889685839971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6421dc2b766f3294d1a3fb0dada96515a50e2478_b4dea574-bc96-4b2f-a1eb-54424a3d3ceb.webp?v=1714888549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902992883811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484388704355,"product_id":7413984264291,"position":3,"created_at":"2024-05-05T13:55:33+08:00","updated_at":"2024-05-05T13:55:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533","variant_ids":[41902992883811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Care Bears - Cheer Bear - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-YB03","featured_media":{"alt":null,"id":23889682628707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f84f42aa08c24bd4fc4560b17caad8118d8fbf4b_63d2ab1e-8395-4de8-bdbf-354a40dd921e.webp?v=1714888533"}},"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: "停產"
}