$product = {"id":7408188162147,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列","handle":"iphone-13-mini-mod-nx-printable-pb56","description":null,"published_at":"2024-06-11T16:33:46+08:00","created_at":"2024-05-03T12:17:10+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":41883656159331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471426207843,"product_id":7408188162147,"position":10,"created_at":"2024-05-03T12:17:34+08:00","updated_at":"2024-05-03T12:17:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854","variant_ids":[41883656159331]},"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-PB56","featured_media":{"alt":null,"id":23876332486755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883656224867,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471421161571,"product_id":7408188162147,"position":1,"created_at":"2024-05-03T12:17:13+08:00","updated_at":"2024-05-03T12:17:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833","variant_ids":[41883656224867]},"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-PB56","featured_media":{"alt":null,"id":23876327440483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883656454243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471424995427,"product_id":7408188162147,"position":8,"created_at":"2024-05-03T12:17:29+08:00","updated_at":"2024-05-03T12:17:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321d55a4337052257c0638a8f65cb45f312f73a_4c7be59c-990d-4884-8304-30dc5da00d01.webp?v=1714709849","variant_ids":[41883656454243]},"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-PB56","featured_media":{"alt":null,"id":23876331274339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321d55a4337052257c0638a8f65cb45f312f73a_4c7be59c-990d-4884-8304-30dc5da00d01.webp?v=1714709849"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fac5650b0cb0454d6b9f9da6661a4fd08e7259_37a3e962-c669-41f3-81c3-ab1029aafadb.webp?v=1714709835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd01bda27350e94f896ecccc27fd43c99aad90e8_5c18d051-0659-497f-8e41-b86b65b89d5d.webp?v=1714709838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a170a2a3061d52f979912e6143170d4d426e398a_42751f6c-33e4-4ea7-80e4-943cb94c5d3d.webp?v=1714709840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1899aa89ca370f56edce4c814ba8581d914c4d44_bdabfea2-ee2a-4e00-b16a-6634de4f22b6.webp?v=1714709842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40c58d44c7a1570e885a7bd64dd0d9844a0750a_4a17b612-991f-4407-be4c-3812ab0de4e7.webp?v=1714709845","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c346998fb85e6d8d47397ebc43da8d75ac63ac9f_babef259-586e-40ea-b1ab-3cafc604a46b.webp?v=1714709847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321d55a4337052257c0638a8f65cb45f312f73a_4c7be59c-990d-4884-8304-30dc5da00d01.webp?v=1714709849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c794bcea1f2d8583b9eff6d6067fb2c8787647a_1c4af98b-c8a0-4efe-9710-c7487654d556.webp?v=1714709852","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833","options":["color"],"media":[{"alt":null,"id":23876327440483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833","width":2000},{"alt":null,"id":23876328030307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fac5650b0cb0454d6b9f9da6661a4fd08e7259_37a3e962-c669-41f3-81c3-ab1029aafadb.webp?v=1714709835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1fac5650b0cb0454d6b9f9da6661a4fd08e7259_37a3e962-c669-41f3-81c3-ab1029aafadb.webp?v=1714709835","width":2000},{"alt":null,"id":23876328423523,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd01bda27350e94f896ecccc27fd43c99aad90e8_5c18d051-0659-497f-8e41-b86b65b89d5d.webp?v=1714709838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd01bda27350e94f896ecccc27fd43c99aad90e8_5c18d051-0659-497f-8e41-b86b65b89d5d.webp?v=1714709838","width":2000},{"alt":null,"id":23876329341027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a170a2a3061d52f979912e6143170d4d426e398a_42751f6c-33e4-4ea7-80e4-943cb94c5d3d.webp?v=1714709840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a170a2a3061d52f979912e6143170d4d426e398a_42751f6c-33e4-4ea7-80e4-943cb94c5d3d.webp?v=1714709840","width":2000},{"alt":null,"id":23876329701475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1899aa89ca370f56edce4c814ba8581d914c4d44_bdabfea2-ee2a-4e00-b16a-6634de4f22b6.webp?v=1714709842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1899aa89ca370f56edce4c814ba8581d914c4d44_bdabfea2-ee2a-4e00-b16a-6634de4f22b6.webp?v=1714709842","width":2000},{"alt":null,"id":23876330258531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40c58d44c7a1570e885a7bd64dd0d9844a0750a_4a17b612-991f-4407-be4c-3812ab0de4e7.webp?v=1714709845"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40c58d44c7a1570e885a7bd64dd0d9844a0750a_4a17b612-991f-4407-be4c-3812ab0de4e7.webp?v=1714709845","width":2000},{"alt":null,"id":23876330782819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c346998fb85e6d8d47397ebc43da8d75ac63ac9f_babef259-586e-40ea-b1ab-3cafc604a46b.webp?v=1714709847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c346998fb85e6d8d47397ebc43da8d75ac63ac9f_babef259-586e-40ea-b1ab-3cafc604a46b.webp?v=1714709847","width":2000},{"alt":null,"id":23876331274339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321d55a4337052257c0638a8f65cb45f312f73a_4c7be59c-990d-4884-8304-30dc5da00d01.webp?v=1714709849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321d55a4337052257c0638a8f65cb45f312f73a_4c7be59c-990d-4884-8304-30dc5da00d01.webp?v=1714709849","width":2000},{"alt":null,"id":23876331733091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c794bcea1f2d8583b9eff6d6067fb2c8787647a_1c4af98b-c8a0-4efe-9710-c7487654d556.webp?v=1714709852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c794bcea1f2d8583b9eff6d6067fb2c8787647a_1c4af98b-c8a0-4efe-9710-c7487654d556.webp?v=1714709852","width":2000},{"alt":null,"id":23876332486755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883656159331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471426207843,"product_id":7408188162147,"position":10,"created_at":"2024-05-03T12:17:34+08:00","updated_at":"2024-05-03T12:17:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854","variant_ids":[41883656159331]},"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-PB56","featured_media":{"alt":null,"id":23876332486755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883656224867,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471421161571,"product_id":7408188162147,"position":1,"created_at":"2024-05-03T12:17:13+08:00","updated_at":"2024-05-03T12:17:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833","variant_ids":[41883656224867]},"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-PB56","featured_media":{"alt":null,"id":23876327440483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b2a7965ffa2d8d71f35541294d3916db558d7f_1b49f322-e9d9-4935-8fe9-bfbd2fd2ef45.webp?v=1714709833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883656454243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471424995427,"product_id":7408188162147,"position":8,"created_at":"2024-05-03T12:17:29+08:00","updated_at":"2024-05-03T12:17:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321d55a4337052257c0638a8f65cb45f312f73a_4c7be59c-990d-4884-8304-30dc5da00d01.webp?v=1714709849","variant_ids":[41883656454243]},"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-PB56","featured_media":{"alt":null,"id":23876331274339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321d55a4337052257c0638a8f65cb45f312f73a_4c7be59c-990d-4884-8304-30dc5da00d01.webp?v=1714709849"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883656159331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31471426207843,"product_id":7408188162147,"position":10,"created_at":"2024-05-03T12:17:34+08:00","updated_at":"2024-05-03T12:17:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854","variant_ids":[41883656159331]},"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-PB56","featured_media":{"alt":null,"id":23876332486755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6b88f6d2d50eb36b8963c067d367e484c2158c_27cef7ea-8e75-4d0c-a20d-ba8f13be33c6.webp?v=1714709854"}},"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: "停產"
}