$product = {"id":7407995519075,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白","handle":"iphone-13-mini-mod-nx-printable-pb02","description":null,"published_at":"2024-06-11T16:28:36+08:00","created_at":"2024-05-03T11:36:53+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":41881510936675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470919876707,"product_id":7407995519075,"position":9,"created_at":"2024-05-03T11:37:16+08:00","updated_at":"2024-05-03T11:37:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436","variant_ids":[41881510936675]},"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-PB02","featured_media":{"alt":null,"id":23875824615523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881511002211,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470917517411,"product_id":7407995519075,"position":3,"created_at":"2024-05-03T11:37:01+08:00","updated_at":"2024-05-03T11:37:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a4cb7b7c67e063c28e89d65d03a13b6d4e9d4_9cb217ae-c6f1-4c87-b0cb-61ca50faa6f3.webp?v=1714707421","variant_ids":[41881511002211]},"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-PB02","featured_media":{"alt":null,"id":23875822223459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a4cb7b7c67e063c28e89d65d03a13b6d4e9d4_9cb217ae-c6f1-4c87-b0cb-61ca50faa6f3.webp?v=1714707421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881511231587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470917025891,"product_id":7407995519075,"position":2,"created_at":"2024-05-03T11:36:58+08:00","updated_at":"2024-05-03T11:36:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebcd1c002fee15d9ada5169163e8b3357583e4d_06f4bd59-5446-4836-9c20-d1dba2e45ff0.webp?v=1714707418","variant_ids":[41881511231587]},"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-PB02","featured_media":{"alt":null,"id":23875821699171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebcd1c002fee15d9ada5169163e8b3357583e4d_06f4bd59-5446-4836-9c20-d1dba2e45ff0.webp?v=1714707418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9b3a5338668c4925e7711e69113e4834580539_f6532421-061d-4932-839b-a560bdf724f9.webp?v=1714707416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebcd1c002fee15d9ada5169163e8b3357583e4d_06f4bd59-5446-4836-9c20-d1dba2e45ff0.webp?v=1714707418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a4cb7b7c67e063c28e89d65d03a13b6d4e9d4_9cb217ae-c6f1-4c87-b0cb-61ca50faa6f3.webp?v=1714707421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c518b792416e4ddbefc28a61c0103b532874e2b4_1e790289-d918-4807-9ffc-ad4c11f87b50.webp?v=1714707423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ac5bd81216aac746ce7e2e03fc2804cbfb802b_e5bfdf00-a522-4fba-9e77-35a8cf5d85eb.webp?v=1714707426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c758bf77a382c091a09e641b70dd5708c200967_634839f4-22b4-4e67-8153-bf827652f75b.webp?v=1714707428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed9d546e8a2d3305e6f8e36abbc083e913b0fbf_6e890d33-d928-4efa-9c71-dcd9b1a845a3.webp?v=1714707431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ada10fd3629c5ac815ba85e28d208dcc9cc576_6110cafd-cd44-49c3-ab42-692635741476.webp?v=1714707433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/608db54dd35cb2636bd7e9e759c21f4499111b6e_2e6e90fd-126f-4cf7-ac38-269d470dc363.webp?v=1714707438"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9b3a5338668c4925e7711e69113e4834580539_f6532421-061d-4932-839b-a560bdf724f9.webp?v=1714707416","options":["color"],"media":[{"alt":null,"id":23875821273187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9b3a5338668c4925e7711e69113e4834580539_f6532421-061d-4932-839b-a560bdf724f9.webp?v=1714707416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc9b3a5338668c4925e7711e69113e4834580539_f6532421-061d-4932-839b-a560bdf724f9.webp?v=1714707416","width":2000},{"alt":null,"id":23875821699171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebcd1c002fee15d9ada5169163e8b3357583e4d_06f4bd59-5446-4836-9c20-d1dba2e45ff0.webp?v=1714707418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebcd1c002fee15d9ada5169163e8b3357583e4d_06f4bd59-5446-4836-9c20-d1dba2e45ff0.webp?v=1714707418","width":2000},{"alt":null,"id":23875822223459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a4cb7b7c67e063c28e89d65d03a13b6d4e9d4_9cb217ae-c6f1-4c87-b0cb-61ca50faa6f3.webp?v=1714707421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a4cb7b7c67e063c28e89d65d03a13b6d4e9d4_9cb217ae-c6f1-4c87-b0cb-61ca50faa6f3.webp?v=1714707421","width":2000},{"alt":null,"id":23875822583907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c518b792416e4ddbefc28a61c0103b532874e2b4_1e790289-d918-4807-9ffc-ad4c11f87b50.webp?v=1714707423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c518b792416e4ddbefc28a61c0103b532874e2b4_1e790289-d918-4807-9ffc-ad4c11f87b50.webp?v=1714707423","width":2000},{"alt":null,"id":23875823042659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ac5bd81216aac746ce7e2e03fc2804cbfb802b_e5bfdf00-a522-4fba-9e77-35a8cf5d85eb.webp?v=1714707426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ac5bd81216aac746ce7e2e03fc2804cbfb802b_e5bfdf00-a522-4fba-9e77-35a8cf5d85eb.webp?v=1714707426","width":2000},{"alt":null,"id":23875823468643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c758bf77a382c091a09e641b70dd5708c200967_634839f4-22b4-4e67-8153-bf827652f75b.webp?v=1714707428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c758bf77a382c091a09e641b70dd5708c200967_634839f4-22b4-4e67-8153-bf827652f75b.webp?v=1714707428","width":2000},{"alt":null,"id":23875823927395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed9d546e8a2d3305e6f8e36abbc083e913b0fbf_6e890d33-d928-4efa-9c71-dcd9b1a845a3.webp?v=1714707431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed9d546e8a2d3305e6f8e36abbc083e913b0fbf_6e890d33-d928-4efa-9c71-dcd9b1a845a3.webp?v=1714707431","width":2000},{"alt":null,"id":23875824222307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ada10fd3629c5ac815ba85e28d208dcc9cc576_6110cafd-cd44-49c3-ab42-692635741476.webp?v=1714707433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1ada10fd3629c5ac815ba85e28d208dcc9cc576_6110cafd-cd44-49c3-ab42-692635741476.webp?v=1714707433","width":2000},{"alt":null,"id":23875824615523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436","width":2000},{"alt":null,"id":23875824943203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/608db54dd35cb2636bd7e9e759c21f4499111b6e_2e6e90fd-126f-4cf7-ac38-269d470dc363.webp?v=1714707438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/608db54dd35cb2636bd7e9e759c21f4499111b6e_2e6e90fd-126f-4cf7-ac38-269d470dc363.webp?v=1714707438","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881510936675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470919876707,"product_id":7407995519075,"position":9,"created_at":"2024-05-03T11:37:16+08:00","updated_at":"2024-05-03T11:37:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436","variant_ids":[41881510936675]},"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-PB02","featured_media":{"alt":null,"id":23875824615523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881511002211,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470917517411,"product_id":7407995519075,"position":3,"created_at":"2024-05-03T11:37:01+08:00","updated_at":"2024-05-03T11:37:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a4cb7b7c67e063c28e89d65d03a13b6d4e9d4_9cb217ae-c6f1-4c87-b0cb-61ca50faa6f3.webp?v=1714707421","variant_ids":[41881511002211]},"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-PB02","featured_media":{"alt":null,"id":23875822223459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56a4cb7b7c67e063c28e89d65d03a13b6d4e9d4_9cb217ae-c6f1-4c87-b0cb-61ca50faa6f3.webp?v=1714707421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881511231587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470917025891,"product_id":7407995519075,"position":2,"created_at":"2024-05-03T11:36:58+08:00","updated_at":"2024-05-03T11:36:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebcd1c002fee15d9ada5169163e8b3357583e4d_06f4bd59-5446-4836-9c20-d1dba2e45ff0.webp?v=1714707418","variant_ids":[41881511231587]},"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-PB02","featured_media":{"alt":null,"id":23875821699171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bebcd1c002fee15d9ada5169163e8b3357583e4d_06f4bd59-5446-4836-9c20-d1dba2e45ff0.webp?v=1714707418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881510936675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470919876707,"product_id":7407995519075,"position":9,"created_at":"2024-05-03T11:37:16+08:00","updated_at":"2024-05-03T11:37:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436","variant_ids":[41881510936675]},"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-PB02","featured_media":{"alt":null,"id":23875824615523,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/879b0a84fe40cee023bebfa8dbf426ccf75c2bd4_3591f41c-d5b4-45d3-8b8d-f0cedd833338.webp?v=1714707436"}},"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: "停產"
}