$product = {"id":7408052076643,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-黑白條紋","handle":"iphone-13-mini-mod-nx-printable-pb20","description":null,"published_at":"2024-06-11T16:30:06+08:00","created_at":"2024-05-03T11:49:36+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":41882138574947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471072575587,"product_id":7408052076643,"position":10,"created_at":"2024-05-03T11:50:00+08:00","updated_at":"2024-05-03T11:50:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200","variant_ids":[41882138574947]},"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-PB20","featured_media":{"alt":null,"id":23875977642083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882138640483,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471071625315,"product_id":7408052076643,"position":8,"created_at":"2024-05-03T11:49:55+08:00","updated_at":"2024-05-03T11:49:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18683fe0d80cf1bcc5a680eee562596e6bf5cb10_0e25b5e2-6fec-43ac-b854-93292de54ba1.webp?v=1714708195","variant_ids":[41882138640483]},"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-PB20","featured_media":{"alt":null,"id":23875976691811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18683fe0d80cf1bcc5a680eee562596e6bf5cb10_0e25b5e2-6fec-43ac-b854-93292de54ba1.webp?v=1714708195"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882138902627,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471067955299,"product_id":7408052076643,"position":1,"created_at":"2024-05-03T11:49:38+08:00","updated_at":"2024-05-03T11:49:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178","variant_ids":[41882138902627]},"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-PB20","featured_media":{"alt":null,"id":23875973021795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f46c979b5946004ab02f43dab243e35fdd0113f0_741af2a7-2152-4d9c-81ca-fc304efd73fd.webp?v=1714708181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d53f38cbbab0b560f2ba184a2ce6f668561e92e_ad7eca10-e542-4d0c-8c29-901ddf5cba42.webp?v=1714708183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f611239633c6abdb95ba20578ccc6043b51eb89_74e320c9-1374-44f1-9f15-884f7ee6bd9b.webp?v=1714708186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaea5ffbfb5505f2c93c35f292aa657530555fae_d97ab895-9d81-4310-8f20-54a2489f52ad.webp?v=1714708188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/035bde0f2de996114f0b595e67d1285dcc22507e_170c1c2e-7dc8-4e76-a40d-15cd9fe526b6.webp?v=1714708191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e9b561960a1b25e83b318e18905d75022cfd10_ee67567d-7638-4d66-b945-494c5366f6a9.webp?v=1714708193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18683fe0d80cf1bcc5a680eee562596e6bf5cb10_0e25b5e2-6fec-43ac-b854-93292de54ba1.webp?v=1714708195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/919d08ee31b4121aef65d30a704786d0dbd353da_38f0d69f-83c7-44e6-a28d-7063c4e2ca0f.webp?v=1714708198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178","options":["color"],"media":[{"alt":null,"id":23875973021795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178","width":2000},{"alt":null,"id":23875973415011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f46c979b5946004ab02f43dab243e35fdd0113f0_741af2a7-2152-4d9c-81ca-fc304efd73fd.webp?v=1714708181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f46c979b5946004ab02f43dab243e35fdd0113f0_741af2a7-2152-4d9c-81ca-fc304efd73fd.webp?v=1714708181","width":2000},{"alt":null,"id":23875974201443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d53f38cbbab0b560f2ba184a2ce6f668561e92e_ad7eca10-e542-4d0c-8c29-901ddf5cba42.webp?v=1714708183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d53f38cbbab0b560f2ba184a2ce6f668561e92e_ad7eca10-e542-4d0c-8c29-901ddf5cba42.webp?v=1714708183","width":2000},{"alt":null,"id":23875974529123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f611239633c6abdb95ba20578ccc6043b51eb89_74e320c9-1374-44f1-9f15-884f7ee6bd9b.webp?v=1714708186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f611239633c6abdb95ba20578ccc6043b51eb89_74e320c9-1374-44f1-9f15-884f7ee6bd9b.webp?v=1714708186","width":2000},{"alt":null,"id":23875975053411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaea5ffbfb5505f2c93c35f292aa657530555fae_d97ab895-9d81-4310-8f20-54a2489f52ad.webp?v=1714708188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaea5ffbfb5505f2c93c35f292aa657530555fae_d97ab895-9d81-4310-8f20-54a2489f52ad.webp?v=1714708188","width":2000},{"alt":null,"id":23875975413859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/035bde0f2de996114f0b595e67d1285dcc22507e_170c1c2e-7dc8-4e76-a40d-15cd9fe526b6.webp?v=1714708191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/035bde0f2de996114f0b595e67d1285dcc22507e_170c1c2e-7dc8-4e76-a40d-15cd9fe526b6.webp?v=1714708191","width":2000},{"alt":null,"id":23875975970915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e9b561960a1b25e83b318e18905d75022cfd10_ee67567d-7638-4d66-b945-494c5366f6a9.webp?v=1714708193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e9b561960a1b25e83b318e18905d75022cfd10_ee67567d-7638-4d66-b945-494c5366f6a9.webp?v=1714708193","width":2000},{"alt":null,"id":23875976691811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18683fe0d80cf1bcc5a680eee562596e6bf5cb10_0e25b5e2-6fec-43ac-b854-93292de54ba1.webp?v=1714708195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18683fe0d80cf1bcc5a680eee562596e6bf5cb10_0e25b5e2-6fec-43ac-b854-93292de54ba1.webp?v=1714708195","width":2000},{"alt":null,"id":23875977183331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/919d08ee31b4121aef65d30a704786d0dbd353da_38f0d69f-83c7-44e6-a28d-7063c4e2ca0f.webp?v=1714708198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/919d08ee31b4121aef65d30a704786d0dbd353da_38f0d69f-83c7-44e6-a28d-7063c4e2ca0f.webp?v=1714708198","width":2000},{"alt":null,"id":23875977642083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882138574947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471072575587,"product_id":7408052076643,"position":10,"created_at":"2024-05-03T11:50:00+08:00","updated_at":"2024-05-03T11:50:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200","variant_ids":[41882138574947]},"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-PB20","featured_media":{"alt":null,"id":23875977642083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882138640483,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471071625315,"product_id":7408052076643,"position":8,"created_at":"2024-05-03T11:49:55+08:00","updated_at":"2024-05-03T11:49:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18683fe0d80cf1bcc5a680eee562596e6bf5cb10_0e25b5e2-6fec-43ac-b854-93292de54ba1.webp?v=1714708195","variant_ids":[41882138640483]},"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-PB20","featured_media":{"alt":null,"id":23875976691811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18683fe0d80cf1bcc5a680eee562596e6bf5cb10_0e25b5e2-6fec-43ac-b854-93292de54ba1.webp?v=1714708195"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882138902627,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471067955299,"product_id":7408052076643,"position":1,"created_at":"2024-05-03T11:49:38+08:00","updated_at":"2024-05-03T11:49:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178","variant_ids":[41882138902627]},"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-PB20","featured_media":{"alt":null,"id":23875973021795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4550a47ec13eef06f9bfa2989bc7e2218e142ffa_86e94cc7-eb12-44af-8cb6-b02a272dc983.webp?v=1714708178"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882138574947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31471072575587,"product_id":7408052076643,"position":10,"created_at":"2024-05-03T11:50:00+08:00","updated_at":"2024-05-03T11:50:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200","variant_ids":[41882138574947]},"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-PB20","featured_media":{"alt":null,"id":23875977642083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f9b0d2f8c0114ccf3d4aa0a5cdc842563325d33_f630d67f-bdba-42c1-bc4f-c969ae7f46e4.webp?v=1714708200"}},"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: "停產"
}