$product = {"id":7408107913315,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 尤達-塗鴉藝術","handle":"iphone-13-mini-mod-nx-printable-pb36","description":null,"published_at":"2024-06-11T16:31:35+08:00","created_at":"2024-05-03T12:01:35+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":41882762379363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471214166115,"product_id":7408107913315,"position":7,"created_at":"2024-05-03T12:01:50+08:00","updated_at":"2024-05-03T12:01:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910","variant_ids":[41882762379363]},"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-PB36","featured_media":{"alt":null,"id":23876119429219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882762608739,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471215083619,"product_id":7408107913315,"position":9,"created_at":"2024-05-03T12:01:54+08:00","updated_at":"2024-05-03T12:01:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65e9b4f957f1079bf1f1b095fb74e2dd3a70353_d1a979e1-23de-4121-8d64-a9de2741fc9b.webp?v=1714708914","variant_ids":[41882762608739]},"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-PB36","featured_media":{"alt":null,"id":23876120346723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65e9b4f957f1079bf1f1b095fb74e2dd3a70353_d1a979e1-23de-4121-8d64-a9de2741fc9b.webp?v=1714708914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882762969187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471213674595,"product_id":7408107913315,"position":6,"created_at":"2024-05-03T12:01:48+08:00","updated_at":"2024-05-03T12:01:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74734fcd009cbfb9528ed71263460e7907a0c03f_c1f69adb-9776-4ac4-88fa-aa0e8115b094.webp?v=1714708908","variant_ids":[41882762969187]},"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-PB36","featured_media":{"alt":null,"id":23876119003235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74734fcd009cbfb9528ed71263460e7907a0c03f_c1f69adb-9776-4ac4-88fa-aa0e8115b094.webp?v=1714708908"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17a480642aa8fa1bc5bde3837c7d088f4aa63fb_ad8133fb-91c1-4d1c-9376-04dd75e791c6.webp?v=1714708897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d4802dffab9eff5cdd2f59c8ad14dfa60cc6ce_16f6e82d-7117-49d1-8d6d-d9a0a18276ad.webp?v=1714708899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ed58417c26b29a3ac990939461d2bbcc73e241_fd988f8c-cd6b-4fd4-8231-966b7397bc54.webp?v=1714708901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e12eda29d7fa33f4acb6790bf0f08fc21a36b2b_901372e9-c830-4873-8bf4-944cea7aa7a9.webp?v=1714708904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d12a58b1ac6f42f9252272f6a98440822d301d_dc903239-d3cb-4e0f-bacd-f9fef90567c4.webp?v=1714708906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74734fcd009cbfb9528ed71263460e7907a0c03f_c1f69adb-9776-4ac4-88fa-aa0e8115b094.webp?v=1714708908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6b03ef64d3aa208bf2936eb24ae16400ee71b62_080f5b6b-9cf4-4124-9570-489ede010022.webp?v=1714708912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65e9b4f957f1079bf1f1b095fb74e2dd3a70353_d1a979e1-23de-4121-8d64-a9de2741fc9b.webp?v=1714708914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20276607c64a2417ea264c3d51110e26f708a3f1_1ccc9080-0136-4006-b23d-26d19f689088.webp?v=1714708916"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17a480642aa8fa1bc5bde3837c7d088f4aa63fb_ad8133fb-91c1-4d1c-9376-04dd75e791c6.webp?v=1714708897","options":["color"],"media":[{"alt":null,"id":23876116676707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17a480642aa8fa1bc5bde3837c7d088f4aa63fb_ad8133fb-91c1-4d1c-9376-04dd75e791c6.webp?v=1714708897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c17a480642aa8fa1bc5bde3837c7d088f4aa63fb_ad8133fb-91c1-4d1c-9376-04dd75e791c6.webp?v=1714708897","width":2000},{"alt":null,"id":23876117004387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d4802dffab9eff5cdd2f59c8ad14dfa60cc6ce_16f6e82d-7117-49d1-8d6d-d9a0a18276ad.webp?v=1714708899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9d4802dffab9eff5cdd2f59c8ad14dfa60cc6ce_16f6e82d-7117-49d1-8d6d-d9a0a18276ad.webp?v=1714708899","width":2000},{"alt":null,"id":23876117561443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ed58417c26b29a3ac990939461d2bbcc73e241_fd988f8c-cd6b-4fd4-8231-966b7397bc54.webp?v=1714708901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ed58417c26b29a3ac990939461d2bbcc73e241_fd988f8c-cd6b-4fd4-8231-966b7397bc54.webp?v=1714708901","width":2000},{"alt":null,"id":23876117987427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e12eda29d7fa33f4acb6790bf0f08fc21a36b2b_901372e9-c830-4873-8bf4-944cea7aa7a9.webp?v=1714708904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e12eda29d7fa33f4acb6790bf0f08fc21a36b2b_901372e9-c830-4873-8bf4-944cea7aa7a9.webp?v=1714708904","width":2000},{"alt":null,"id":23876118511715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d12a58b1ac6f42f9252272f6a98440822d301d_dc903239-d3cb-4e0f-bacd-f9fef90567c4.webp?v=1714708906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d12a58b1ac6f42f9252272f6a98440822d301d_dc903239-d3cb-4e0f-bacd-f9fef90567c4.webp?v=1714708906","width":2000},{"alt":null,"id":23876119003235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74734fcd009cbfb9528ed71263460e7907a0c03f_c1f69adb-9776-4ac4-88fa-aa0e8115b094.webp?v=1714708908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74734fcd009cbfb9528ed71263460e7907a0c03f_c1f69adb-9776-4ac4-88fa-aa0e8115b094.webp?v=1714708908","width":2000},{"alt":null,"id":23876119429219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910","width":2000},{"alt":null,"id":23876119920739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6b03ef64d3aa208bf2936eb24ae16400ee71b62_080f5b6b-9cf4-4124-9570-489ede010022.webp?v=1714708912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6b03ef64d3aa208bf2936eb24ae16400ee71b62_080f5b6b-9cf4-4124-9570-489ede010022.webp?v=1714708912","width":2000},{"alt":null,"id":23876120346723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65e9b4f957f1079bf1f1b095fb74e2dd3a70353_d1a979e1-23de-4121-8d64-a9de2741fc9b.webp?v=1714708914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65e9b4f957f1079bf1f1b095fb74e2dd3a70353_d1a979e1-23de-4121-8d64-a9de2741fc9b.webp?v=1714708914","width":2000},{"alt":null,"id":23876120805475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20276607c64a2417ea264c3d51110e26f708a3f1_1ccc9080-0136-4006-b23d-26d19f689088.webp?v=1714708916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20276607c64a2417ea264c3d51110e26f708a3f1_1ccc9080-0136-4006-b23d-26d19f689088.webp?v=1714708916","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882762379363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471214166115,"product_id":7408107913315,"position":7,"created_at":"2024-05-03T12:01:50+08:00","updated_at":"2024-05-03T12:01:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910","variant_ids":[41882762379363]},"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-PB36","featured_media":{"alt":null,"id":23876119429219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882762608739,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471215083619,"product_id":7408107913315,"position":9,"created_at":"2024-05-03T12:01:54+08:00","updated_at":"2024-05-03T12:01:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65e9b4f957f1079bf1f1b095fb74e2dd3a70353_d1a979e1-23de-4121-8d64-a9de2741fc9b.webp?v=1714708914","variant_ids":[41882762608739]},"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-PB36","featured_media":{"alt":null,"id":23876120346723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65e9b4f957f1079bf1f1b095fb74e2dd3a70353_d1a979e1-23de-4121-8d64-a9de2741fc9b.webp?v=1714708914"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882762969187,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471213674595,"product_id":7408107913315,"position":6,"created_at":"2024-05-03T12:01:48+08:00","updated_at":"2024-05-03T12:01:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74734fcd009cbfb9528ed71263460e7907a0c03f_c1f69adb-9776-4ac4-88fa-aa0e8115b094.webp?v=1714708908","variant_ids":[41882762969187]},"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-PB36","featured_media":{"alt":null,"id":23876119003235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74734fcd009cbfb9528ed71263460e7907a0c03f_c1f69adb-9776-4ac4-88fa-aa0e8115b094.webp?v=1714708908"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882762379363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471214166115,"product_id":7408107913315,"position":7,"created_at":"2024-05-03T12:01:50+08:00","updated_at":"2024-05-03T12:01:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910","variant_ids":[41882762379363]},"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-PB36","featured_media":{"alt":null,"id":23876119429219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfb429ef3a0103481ee47b0813272b39d04c322b_9c9ad5b2-edd6-487e-9059-af4156c0c961.webp?v=1714708910"}},"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: "停產"
}