$product = {"id":7414438953059,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb24","description":null,"published_at":"2024-06-11T17:51:19+08:00","created_at":"2024-05-05T14:25:32+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":41906488836195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31485479092323,"product_id":7414438953059,"position":9,"created_at":"2024-05-05T14:25:52+08:00","updated_at":"2024-05-05T14:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352","variant_ids":[41906488836195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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-PB24","featured_media":{"alt":null,"id":23890796150883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906488934499,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31485461200995,"product_id":7414438953059,"position":3,"created_at":"2024-05-05T14:25:39+08:00","updated_at":"2024-05-05T14:25:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b382eac7e147b5ee5e8ede3b60eeca7d264187f5_3a0a145d-ba21-4dba-a246-54c5048c29d7.webp?v=1714890339","variant_ids":[41906488934499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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-PB24","featured_media":{"alt":null,"id":23890778620003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b382eac7e147b5ee5e8ede3b60eeca7d264187f5_3a0a145d-ba21-4dba-a246-54c5048c29d7.webp?v=1714890339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906489262179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31485481812067,"product_id":7414438953059,"position":10,"created_at":"2024-05-05T14:25:54+08:00","updated_at":"2024-05-05T14:25:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc99e3fcd447c82fcbd556ff09a588b0c9217175_33cea4ea-e9d2-4a82-af16-bd40e36a203f.webp?v=1714890354","variant_ids":[41906489262179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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-PB24","featured_media":{"alt":null,"id":23890799100003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc99e3fcd447c82fcbd556ff09a588b0c9217175_33cea4ea-e9d2-4a82-af16-bd40e36a203f.webp?v=1714890354"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3564eb7d6a595bfd3dfbb5440bc626a84e9e5f8f_ddcd9019-d7be-4adb-add1-3052ca023a20.webp?v=1714890334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d746de304da2d10f2109d7f6e7ad7c58a1a91b_39454990-38e2-4a66-91cd-7ba6c1377bc0.webp?v=1714890336","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b382eac7e147b5ee5e8ede3b60eeca7d264187f5_3a0a145d-ba21-4dba-a246-54c5048c29d7.webp?v=1714890339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8017cdb17077683d10d0afebd8d4cddd065e511c_488fa5c5-e0ec-401b-8387-99f57bfe050c.webp?v=1714890341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bcd944ed6f309316bf3a2d33fd5010592b5b943_ae288d2d-aeee-4c1c-abfe-f045223d7f43.webp?v=1714890343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e772b4215ea8aefdd8b7ef0202a0849d3f19f0_ac111a0e-09f5-4d9b-ab9a-f1ca785b0846.webp?v=1714890345","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa21f06625ad515ab5d3bca4137f63797a32a6c3_d8ce74de-7569-40fd-908c-8716ebab0de8.webp?v=1714890347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4857545429879c2a370ee6290228ff50db859b0f_2487aa42-d850-4afd-8507-5c4c28308a94.webp?v=1714890350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc99e3fcd447c82fcbd556ff09a588b0c9217175_33cea4ea-e9d2-4a82-af16-bd40e36a203f.webp?v=1714890354"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3564eb7d6a595bfd3dfbb5440bc626a84e9e5f8f_ddcd9019-d7be-4adb-add1-3052ca023a20.webp?v=1714890334","options":["color"],"media":[{"alt":null,"id":23890771902563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3564eb7d6a595bfd3dfbb5440bc626a84e9e5f8f_ddcd9019-d7be-4adb-add1-3052ca023a20.webp?v=1714890334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3564eb7d6a595bfd3dfbb5440bc626a84e9e5f8f_ddcd9019-d7be-4adb-add1-3052ca023a20.webp?v=1714890334","width":2000},{"alt":null,"id":23890775277667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d746de304da2d10f2109d7f6e7ad7c58a1a91b_39454990-38e2-4a66-91cd-7ba6c1377bc0.webp?v=1714890336"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d746de304da2d10f2109d7f6e7ad7c58a1a91b_39454990-38e2-4a66-91cd-7ba6c1377bc0.webp?v=1714890336","width":2000},{"alt":null,"id":23890778620003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b382eac7e147b5ee5e8ede3b60eeca7d264187f5_3a0a145d-ba21-4dba-a246-54c5048c29d7.webp?v=1714890339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b382eac7e147b5ee5e8ede3b60eeca7d264187f5_3a0a145d-ba21-4dba-a246-54c5048c29d7.webp?v=1714890339","width":2000},{"alt":null,"id":23890781208675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8017cdb17077683d10d0afebd8d4cddd065e511c_488fa5c5-e0ec-401b-8387-99f57bfe050c.webp?v=1714890341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8017cdb17077683d10d0afebd8d4cddd065e511c_488fa5c5-e0ec-401b-8387-99f57bfe050c.webp?v=1714890341","width":2000},{"alt":null,"id":23890784419939,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bcd944ed6f309316bf3a2d33fd5010592b5b943_ae288d2d-aeee-4c1c-abfe-f045223d7f43.webp?v=1714890343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bcd944ed6f309316bf3a2d33fd5010592b5b943_ae288d2d-aeee-4c1c-abfe-f045223d7f43.webp?v=1714890343","width":2000},{"alt":null,"id":23890787434595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e772b4215ea8aefdd8b7ef0202a0849d3f19f0_ac111a0e-09f5-4d9b-ab9a-f1ca785b0846.webp?v=1714890345"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88e772b4215ea8aefdd8b7ef0202a0849d3f19f0_ac111a0e-09f5-4d9b-ab9a-f1ca785b0846.webp?v=1714890345","width":2000},{"alt":null,"id":23890790416483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa21f06625ad515ab5d3bca4137f63797a32a6c3_d8ce74de-7569-40fd-908c-8716ebab0de8.webp?v=1714890347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa21f06625ad515ab5d3bca4137f63797a32a6c3_d8ce74de-7569-40fd-908c-8716ebab0de8.webp?v=1714890347","width":2000},{"alt":null,"id":23890793300067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4857545429879c2a370ee6290228ff50db859b0f_2487aa42-d850-4afd-8507-5c4c28308a94.webp?v=1714890350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4857545429879c2a370ee6290228ff50db859b0f_2487aa42-d850-4afd-8507-5c4c28308a94.webp?v=1714890350","width":2000},{"alt":null,"id":23890796150883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352","width":2000},{"alt":null,"id":23890799100003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc99e3fcd447c82fcbd556ff09a588b0c9217175_33cea4ea-e9d2-4a82-af16-bd40e36a203f.webp?v=1714890354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc99e3fcd447c82fcbd556ff09a588b0c9217175_33cea4ea-e9d2-4a82-af16-bd40e36a203f.webp?v=1714890354","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906488836195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31485479092323,"product_id":7414438953059,"position":9,"created_at":"2024-05-05T14:25:52+08:00","updated_at":"2024-05-05T14:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352","variant_ids":[41906488836195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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-PB24","featured_media":{"alt":null,"id":23890796150883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906488934499,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31485461200995,"product_id":7414438953059,"position":3,"created_at":"2024-05-05T14:25:39+08:00","updated_at":"2024-05-05T14:25:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b382eac7e147b5ee5e8ede3b60eeca7d264187f5_3a0a145d-ba21-4dba-a246-54c5048c29d7.webp?v=1714890339","variant_ids":[41906488934499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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-PB24","featured_media":{"alt":null,"id":23890778620003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b382eac7e147b5ee5e8ede3b60eeca7d264187f5_3a0a145d-ba21-4dba-a246-54c5048c29d7.webp?v=1714890339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906489262179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31485481812067,"product_id":7414438953059,"position":10,"created_at":"2024-05-05T14:25:54+08:00","updated_at":"2024-05-05T14:25:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc99e3fcd447c82fcbd556ff09a588b0c9217175_33cea4ea-e9d2-4a82-af16-bd40e36a203f.webp?v=1714890354","variant_ids":[41906489262179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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-PB24","featured_media":{"alt":null,"id":23890799100003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc99e3fcd447c82fcbd556ff09a588b0c9217175_33cea4ea-e9d2-4a82-af16-bd40e36a203f.webp?v=1714890354"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906488836195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31485479092323,"product_id":7414438953059,"position":9,"created_at":"2024-05-05T14:25:52+08:00","updated_at":"2024-05-05T14:25:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352","variant_ids":[41906488836195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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-PB24","featured_media":{"alt":null,"id":23890796150883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1502d35ed1593a6141ed4e17e90eb473313960_ae0d3542-1728-4b0a-9cc8-4ba8c1202759.webp?v=1714890352"}},"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: "停產"
}