$product = {"id":7414531424355,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb53","description":null,"published_at":"2024-06-11T17:51:50+08:00","created_at":"2024-05-05T14:29:06+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":41907173884003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31485700505699,"product_id":7414531424355,"position":7,"created_at":"2024-05-05T14:29:22+08:00","updated_at":"2024-05-05T14:29:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562","variant_ids":[41907173884003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - 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-PB53","featured_media":{"alt":null,"id":23891020972131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907173949539,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31485704896611,"product_id":7414531424355,"position":9,"created_at":"2024-05-05T14:29:26+08:00","updated_at":"2024-05-05T14:29:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6f0b014e6ebc0341e5a80417a7bd7f388682c9d_a68594c1-d629-40f3-ab7e-e8e9432709d6.webp?v=1714890566","variant_ids":[41907173949539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - 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-PB53","featured_media":{"alt":null,"id":23891025657955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6f0b014e6ebc0341e5a80417a7bd7f388682c9d_a68594c1-d629-40f3-ab7e-e8e9432709d6.webp?v=1714890566"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907174178915,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31485690806371,"product_id":7414531424355,"position":3,"created_at":"2024-05-05T14:29:13+08:00","updated_at":"2024-05-05T14:29:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e75f43bc8ea45ea42a54df2a103e72dd76996a_7600723d-d289-4b90-845f-6d86db875e11.webp?v=1714890553","variant_ids":[41907174178915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - 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-PB53","featured_media":{"alt":null,"id":23891010682979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e75f43bc8ea45ea42a54df2a103e72dd76996a_7600723d-d289-4b90-845f-6d86db875e11.webp?v=1714890553"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cac35d8485cb7bcaa400352ab6b0d82c029c67a2_1dcba0ac-eeff-43b2-b6b1-66ca3ba2ecd1.webp?v=1714890548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c2d5b9f4186ed2cb19553867fb1fe0dd398b7e1_a4cf6d9b-8deb-49fd-a96d-09d0db37ce8b.webp?v=1714890550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e75f43bc8ea45ea42a54df2a103e72dd76996a_7600723d-d289-4b90-845f-6d86db875e11.webp?v=1714890553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1373023e48753c36c1cdaca947ec587aeaa084_07431f07-beb7-41f2-9188-c130971d14f3.webp?v=1714890555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b79144f3a9e1976103662eb66ae26aa87acc24_16b116a6-1acf-47f4-9466-75d2a256d019.webp?v=1714890557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b7b2755eae92d4788fbcc68e6f069c500f98db_d12ebe6b-360f-4325-93de-ed9a94d2749a.webp?v=1714890559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43375c2724f093ef5e0bb2f83b35759f95edfe20_61ff3490-2d22-4ce1-b691-4e6ec7d50968.webp?v=1714890564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6f0b014e6ebc0341e5a80417a7bd7f388682c9d_a68594c1-d629-40f3-ab7e-e8e9432709d6.webp?v=1714890566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6428287590026364be26dfd99ec6b1883387f433_9cee4af5-4b4f-4afb-a060-0fab030c3687.webp?v=1714890568"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cac35d8485cb7bcaa400352ab6b0d82c029c67a2_1dcba0ac-eeff-43b2-b6b1-66ca3ba2ecd1.webp?v=1714890548","options":["color"],"media":[{"alt":null,"id":23891005735011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cac35d8485cb7bcaa400352ab6b0d82c029c67a2_1dcba0ac-eeff-43b2-b6b1-66ca3ba2ecd1.webp?v=1714890548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cac35d8485cb7bcaa400352ab6b0d82c029c67a2_1dcba0ac-eeff-43b2-b6b1-66ca3ba2ecd1.webp?v=1714890548","width":2000},{"alt":null,"id":23891008192611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c2d5b9f4186ed2cb19553867fb1fe0dd398b7e1_a4cf6d9b-8deb-49fd-a96d-09d0db37ce8b.webp?v=1714890550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c2d5b9f4186ed2cb19553867fb1fe0dd398b7e1_a4cf6d9b-8deb-49fd-a96d-09d0db37ce8b.webp?v=1714890550","width":2000},{"alt":null,"id":23891010682979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e75f43bc8ea45ea42a54df2a103e72dd76996a_7600723d-d289-4b90-845f-6d86db875e11.webp?v=1714890553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e75f43bc8ea45ea42a54df2a103e72dd76996a_7600723d-d289-4b90-845f-6d86db875e11.webp?v=1714890553","width":2000},{"alt":null,"id":23891013173347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1373023e48753c36c1cdaca947ec587aeaa084_07431f07-beb7-41f2-9188-c130971d14f3.webp?v=1714890555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1373023e48753c36c1cdaca947ec587aeaa084_07431f07-beb7-41f2-9188-c130971d14f3.webp?v=1714890555","width":2000},{"alt":null,"id":23891015729251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b79144f3a9e1976103662eb66ae26aa87acc24_16b116a6-1acf-47f4-9466-75d2a256d019.webp?v=1714890557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b79144f3a9e1976103662eb66ae26aa87acc24_16b116a6-1acf-47f4-9466-75d2a256d019.webp?v=1714890557","width":2000},{"alt":null,"id":23891018383459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b7b2755eae92d4788fbcc68e6f069c500f98db_d12ebe6b-360f-4325-93de-ed9a94d2749a.webp?v=1714890559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b7b2755eae92d4788fbcc68e6f069c500f98db_d12ebe6b-360f-4325-93de-ed9a94d2749a.webp?v=1714890559","width":2000},{"alt":null,"id":23891020972131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562","width":2000},{"alt":null,"id":23891023331427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43375c2724f093ef5e0bb2f83b35759f95edfe20_61ff3490-2d22-4ce1-b691-4e6ec7d50968.webp?v=1714890564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43375c2724f093ef5e0bb2f83b35759f95edfe20_61ff3490-2d22-4ce1-b691-4e6ec7d50968.webp?v=1714890564","width":2000},{"alt":null,"id":23891025657955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6f0b014e6ebc0341e5a80417a7bd7f388682c9d_a68594c1-d629-40f3-ab7e-e8e9432709d6.webp?v=1714890566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6f0b014e6ebc0341e5a80417a7bd7f388682c9d_a68594c1-d629-40f3-ab7e-e8e9432709d6.webp?v=1714890566","width":2000},{"alt":null,"id":23891027689571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6428287590026364be26dfd99ec6b1883387f433_9cee4af5-4b4f-4afb-a060-0fab030c3687.webp?v=1714890568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6428287590026364be26dfd99ec6b1883387f433_9cee4af5-4b4f-4afb-a060-0fab030c3687.webp?v=1714890568","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907173884003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31485700505699,"product_id":7414531424355,"position":7,"created_at":"2024-05-05T14:29:22+08:00","updated_at":"2024-05-05T14:29:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562","variant_ids":[41907173884003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - 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-PB53","featured_media":{"alt":null,"id":23891020972131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907173949539,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31485704896611,"product_id":7414531424355,"position":9,"created_at":"2024-05-05T14:29:26+08:00","updated_at":"2024-05-05T14:29:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6f0b014e6ebc0341e5a80417a7bd7f388682c9d_a68594c1-d629-40f3-ab7e-e8e9432709d6.webp?v=1714890566","variant_ids":[41907173949539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - 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-PB53","featured_media":{"alt":null,"id":23891025657955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6f0b014e6ebc0341e5a80417a7bd7f388682c9d_a68594c1-d629-40f3-ab7e-e8e9432709d6.webp?v=1714890566"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907174178915,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31485690806371,"product_id":7414531424355,"position":3,"created_at":"2024-05-05T14:29:13+08:00","updated_at":"2024-05-05T14:29:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e75f43bc8ea45ea42a54df2a103e72dd76996a_7600723d-d289-4b90-845f-6d86db875e11.webp?v=1714890553","variant_ids":[41907174178915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - 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-PB53","featured_media":{"alt":null,"id":23891010682979,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07e75f43bc8ea45ea42a54df2a103e72dd76996a_7600723d-d289-4b90-845f-6d86db875e11.webp?v=1714890553"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907173884003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31485700505699,"product_id":7414531424355,"position":7,"created_at":"2024-05-05T14:29:22+08:00","updated_at":"2024-05-05T14:29:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562","variant_ids":[41907173884003]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格 - 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-PB53","featured_media":{"alt":null,"id":23891020972131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e9d8b13427c5b7c84b11750c6d7ce027cb8a42_19a567dc-025a-4ed6-8601-d7f058a8774e.webp?v=1714890562"}},"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: "停產"
}