$product = {"id":7407951609955,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆黑","handle":"iphone-14-pro-mod-nx-printable-pb05","description":null,"published_at":"2024-06-11T16:27:26+08:00","created_at":"2024-05-03T11:22:18+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 14 Pro","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":41880951062627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470786281571,"product_id":7407951609955,"position":9,"created_at":"2024-05-03T11:22:39+08:00","updated_at":"2024-05-03T11:22:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559","variant_ids":[41880951062627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB05","featured_media":{"alt":null,"id":23875690496099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880951128163,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470783561827,"product_id":7407951609955,"position":5,"created_at":"2024-05-03T11:22:30+08:00","updated_at":"2024-05-03T11:22:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a120fe3c8f4b2c88159cbe943631d5e4ca6a3ac0_a573387c-5ccf-4882-9c3f-f39cd5f2b231.webp?v=1714706550","variant_ids":[41880951128163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB05","featured_media":{"alt":null,"id":23875688431715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a120fe3c8f4b2c88159cbe943631d5e4ca6a3ac0_a573387c-5ccf-4882-9c3f-f39cd5f2b231.webp?v=1714706550"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880951488611,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470781464675,"product_id":7407951609955,"position":3,"created_at":"2024-05-03T11:22:25+08:00","updated_at":"2024-05-03T11:22:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed5f6705aa965f1a5268a3a7c109c9a116112126_6a7fa892-e857-4d17-b366-e022af4ea27d.webp?v=1714706545","variant_ids":[41880951488611]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB05","featured_media":{"alt":null,"id":23875686039651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed5f6705aa965f1a5268a3a7c109c9a116112126_6a7fa892-e857-4d17-b366-e022af4ea27d.webp?v=1714706545"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c557d1d911a7843a8d7aff0a034dac007a992f_79a9705f-26b7-413b-a33d-3194722f4b20.webp?v=1714706540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ee24bf8d8a221f09575020cbf2aa8dfccc0a27_1996dd8c-7d36-4faa-8af3-609b344abe6e.webp?v=1714706543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed5f6705aa965f1a5268a3a7c109c9a116112126_6a7fa892-e857-4d17-b366-e022af4ea27d.webp?v=1714706545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402829527f81b267f8e0e73e41e1ac764eb7c9cd_f04815a9-b149-4bad-a1ac-2ebb2d3b064d.webp?v=1714706547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a120fe3c8f4b2c88159cbe943631d5e4ca6a3ac0_a573387c-5ccf-4882-9c3f-f39cd5f2b231.webp?v=1714706550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0fd6690bab4dc54b700661b8852d723d25b2402_0e04b559-8c40-46b3-a8bd-f0ae3928603d.webp?v=1714706552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25725b7938ad4195e02ba69662b05473615469ed_b6eb590b-927d-4705-a22d-ec5b9cd1f3a8.webp?v=1714706555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ca5aaa18f1a1f74f3481ab7575f08edb6f784c6_38ea2ac3-d3a8-476a-821b-a7e4d547ddb7.webp?v=1714706557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c164536eb6228648ddc55a0154beac847f14adb2_ea1be5d5-0fd2-4a43-a195-6c6311531dec.webp?v=1714706561"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c557d1d911a7843a8d7aff0a034dac007a992f_79a9705f-26b7-413b-a33d-3194722f4b20.webp?v=1714706540","options":["color"],"media":[{"alt":null,"id":23875684728931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c557d1d911a7843a8d7aff0a034dac007a992f_79a9705f-26b7-413b-a33d-3194722f4b20.webp?v=1714706540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99c557d1d911a7843a8d7aff0a034dac007a992f_79a9705f-26b7-413b-a33d-3194722f4b20.webp?v=1714706540","width":2000},{"alt":null,"id":23875685187683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ee24bf8d8a221f09575020cbf2aa8dfccc0a27_1996dd8c-7d36-4faa-8af3-609b344abe6e.webp?v=1714706543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06ee24bf8d8a221f09575020cbf2aa8dfccc0a27_1996dd8c-7d36-4faa-8af3-609b344abe6e.webp?v=1714706543","width":2000},{"alt":null,"id":23875686039651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed5f6705aa965f1a5268a3a7c109c9a116112126_6a7fa892-e857-4d17-b366-e022af4ea27d.webp?v=1714706545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed5f6705aa965f1a5268a3a7c109c9a116112126_6a7fa892-e857-4d17-b366-e022af4ea27d.webp?v=1714706545","width":2000},{"alt":null,"id":23875687972963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402829527f81b267f8e0e73e41e1ac764eb7c9cd_f04815a9-b149-4bad-a1ac-2ebb2d3b064d.webp?v=1714706547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402829527f81b267f8e0e73e41e1ac764eb7c9cd_f04815a9-b149-4bad-a1ac-2ebb2d3b064d.webp?v=1714706547","width":2000},{"alt":null,"id":23875688431715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a120fe3c8f4b2c88159cbe943631d5e4ca6a3ac0_a573387c-5ccf-4882-9c3f-f39cd5f2b231.webp?v=1714706550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a120fe3c8f4b2c88159cbe943631d5e4ca6a3ac0_a573387c-5ccf-4882-9c3f-f39cd5f2b231.webp?v=1714706550","width":2000},{"alt":null,"id":23875688956003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0fd6690bab4dc54b700661b8852d723d25b2402_0e04b559-8c40-46b3-a8bd-f0ae3928603d.webp?v=1714706552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0fd6690bab4dc54b700661b8852d723d25b2402_0e04b559-8c40-46b3-a8bd-f0ae3928603d.webp?v=1714706552","width":2000},{"alt":null,"id":23875689447523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25725b7938ad4195e02ba69662b05473615469ed_b6eb590b-927d-4705-a22d-ec5b9cd1f3a8.webp?v=1714706555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25725b7938ad4195e02ba69662b05473615469ed_b6eb590b-927d-4705-a22d-ec5b9cd1f3a8.webp?v=1714706555","width":2000},{"alt":null,"id":23875690004579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ca5aaa18f1a1f74f3481ab7575f08edb6f784c6_38ea2ac3-d3a8-476a-821b-a7e4d547ddb7.webp?v=1714706557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ca5aaa18f1a1f74f3481ab7575f08edb6f784c6_38ea2ac3-d3a8-476a-821b-a7e4d547ddb7.webp?v=1714706557","width":2000},{"alt":null,"id":23875690496099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559","width":2000},{"alt":null,"id":23875690954851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c164536eb6228648ddc55a0154beac847f14adb2_ea1be5d5-0fd2-4a43-a195-6c6311531dec.webp?v=1714706561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c164536eb6228648ddc55a0154beac847f14adb2_ea1be5d5-0fd2-4a43-a195-6c6311531dec.webp?v=1714706561","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41880951062627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470786281571,"product_id":7407951609955,"position":9,"created_at":"2024-05-03T11:22:39+08:00","updated_at":"2024-05-03T11:22:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559","variant_ids":[41880951062627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB05","featured_media":{"alt":null,"id":23875690496099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880951128163,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470783561827,"product_id":7407951609955,"position":5,"created_at":"2024-05-03T11:22:30+08:00","updated_at":"2024-05-03T11:22:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a120fe3c8f4b2c88159cbe943631d5e4ca6a3ac0_a573387c-5ccf-4882-9c3f-f39cd5f2b231.webp?v=1714706550","variant_ids":[41880951128163]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB05","featured_media":{"alt":null,"id":23875688431715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a120fe3c8f4b2c88159cbe943631d5e4ca6a3ac0_a573387c-5ccf-4882-9c3f-f39cd5f2b231.webp?v=1714706550"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880951488611,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470781464675,"product_id":7407951609955,"position":3,"created_at":"2024-05-03T11:22:25+08:00","updated_at":"2024-05-03T11:22:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed5f6705aa965f1a5268a3a7c109c9a116112126_6a7fa892-e857-4d17-b366-e022af4ea27d.webp?v=1714706545","variant_ids":[41880951488611]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB05","featured_media":{"alt":null,"id":23875686039651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed5f6705aa965f1a5268a3a7c109c9a116112126_6a7fa892-e857-4d17-b366-e022af4ea27d.webp?v=1714706545"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880951062627,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470786281571,"product_id":7407951609955,"position":9,"created_at":"2024-05-03T11:22:39+08:00","updated_at":"2024-05-03T11:22:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559","variant_ids":[41880951062627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB05","featured_media":{"alt":null,"id":23875690496099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247e83eec2808bbb3f01361d242e2efa2119df55_ec60695a-ba03-4d81-8403-29f94edc8168.webp?v=1714706559"}},"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: "停產"
}