$product = {"id":7414323970147,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑","handle":"iphone-13-mini-mod-nx-magsafe-printable-sb14","description":null,"published_at":"2024-06-11T17:50:47+08:00","created_at":"2024-05-05T14:21:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41905715839075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485174415459,"product_id":7414323970147,"position":7,"created_at":"2024-05-05T14:22:14+08:00","updated_at":"2024-05-05T14:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134","variant_ids":[41905715839075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑 - 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-SB14","featured_media":{"alt":null,"id":23890490785891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905716035683,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485168451683,"product_id":7414323970147,"position":5,"created_at":"2024-05-05T14:22:10+08:00","updated_at":"2024-05-05T14:22:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d070bd46ee9b06ce697925ca5aed1e92e7239fd_c130103e-88d6-43c2-a2eb-215fad4b6900.webp?v=1714890130","variant_ids":[41905716035683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑 - 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-SB14","featured_media":{"alt":null,"id":23890483904611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d070bd46ee9b06ce697925ca5aed1e92e7239fd_c130103e-88d6-43c2-a2eb-215fad4b6900.webp?v=1714890130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905716330595,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485158817891,"product_id":7414323970147,"position":1,"created_at":"2024-05-05T14:22:00+08:00","updated_at":"2024-05-05T14:22:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120","variant_ids":[41905716330595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑 - 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-SB14","featured_media":{"alt":null,"id":23890474303587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f0dfd70a1b03a89ddc5b1fda3b6222bf53f51a9_bc67f22b-aea9-43f0-8c9e-a3d986b9af10.webp?v=1714890122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c86785681c82ca2adb10f66074a1c6d336f14295_105f6036-7478-48c1-a097-a6858247b3c8.webp?v=1714890125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37dc5da38bf7673f8fa0c7289c971f335df5e69_4e235dac-37af-4e23-9f48-2fda203b6416.webp?v=1714890127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d070bd46ee9b06ce697925ca5aed1e92e7239fd_c130103e-88d6-43c2-a2eb-215fad4b6900.webp?v=1714890130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/578081f595986517a1b0023b772226ad85665169_9fad9eb5-6072-4d0c-94c8-b4d6174af309.webp?v=1714890132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8e256ab978a4af7ef86b01e6bb6d0154ec3398_dddd1b66-f0ff-48f3-b017-42665923c4c8.webp?v=1714890137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf27ef15dbc7f624d5dd2e75503de112f05cd62f_7341f03b-b143-4424-bd60-99a638a00976.webp?v=1714890139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e879e0aaa5aff17c92c4a707acd2b2fb1beb3d9_f939975e-be98-47e7-aa44-a83e32b1868f.webp?v=1714890142"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120","options":["color"],"media":[{"alt":null,"id":23890474303587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120","width":2000},{"alt":null,"id":23890476761187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f0dfd70a1b03a89ddc5b1fda3b6222bf53f51a9_bc67f22b-aea9-43f0-8c9e-a3d986b9af10.webp?v=1714890122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f0dfd70a1b03a89ddc5b1fda3b6222bf53f51a9_bc67f22b-aea9-43f0-8c9e-a3d986b9af10.webp?v=1714890122","width":2000},{"alt":null,"id":23890479743075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c86785681c82ca2adb10f66074a1c6d336f14295_105f6036-7478-48c1-a097-a6858247b3c8.webp?v=1714890125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c86785681c82ca2adb10f66074a1c6d336f14295_105f6036-7478-48c1-a097-a6858247b3c8.webp?v=1714890125","width":2000},{"alt":null,"id":23890481610851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37dc5da38bf7673f8fa0c7289c971f335df5e69_4e235dac-37af-4e23-9f48-2fda203b6416.webp?v=1714890127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a37dc5da38bf7673f8fa0c7289c971f335df5e69_4e235dac-37af-4e23-9f48-2fda203b6416.webp?v=1714890127","width":2000},{"alt":null,"id":23890483904611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d070bd46ee9b06ce697925ca5aed1e92e7239fd_c130103e-88d6-43c2-a2eb-215fad4b6900.webp?v=1714890130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d070bd46ee9b06ce697925ca5aed1e92e7239fd_c130103e-88d6-43c2-a2eb-215fad4b6900.webp?v=1714890130","width":2000},{"alt":null,"id":23890487541859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/578081f595986517a1b0023b772226ad85665169_9fad9eb5-6072-4d0c-94c8-b4d6174af309.webp?v=1714890132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/578081f595986517a1b0023b772226ad85665169_9fad9eb5-6072-4d0c-94c8-b4d6174af309.webp?v=1714890132","width":2000},{"alt":null,"id":23890490785891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134","width":2000},{"alt":null,"id":23890494128227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8e256ab978a4af7ef86b01e6bb6d0154ec3398_dddd1b66-f0ff-48f3-b017-42665923c4c8.webp?v=1714890137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c8e256ab978a4af7ef86b01e6bb6d0154ec3398_dddd1b66-f0ff-48f3-b017-42665923c4c8.webp?v=1714890137","width":2000},{"alt":null,"id":23890498060387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf27ef15dbc7f624d5dd2e75503de112f05cd62f_7341f03b-b143-4424-bd60-99a638a00976.webp?v=1714890139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf27ef15dbc7f624d5dd2e75503de112f05cd62f_7341f03b-b143-4424-bd60-99a638a00976.webp?v=1714890139","width":2000},{"alt":null,"id":23890501861475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e879e0aaa5aff17c92c4a707acd2b2fb1beb3d9_f939975e-be98-47e7-aa44-a83e32b1868f.webp?v=1714890142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e879e0aaa5aff17c92c4a707acd2b2fb1beb3d9_f939975e-be98-47e7-aa44-a83e32b1868f.webp?v=1714890142","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41905715839075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485174415459,"product_id":7414323970147,"position":7,"created_at":"2024-05-05T14:22:14+08:00","updated_at":"2024-05-05T14:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134","variant_ids":[41905715839075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑 - 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-SB14","featured_media":{"alt":null,"id":23890490785891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905716035683,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485168451683,"product_id":7414323970147,"position":5,"created_at":"2024-05-05T14:22:10+08:00","updated_at":"2024-05-05T14:22:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d070bd46ee9b06ce697925ca5aed1e92e7239fd_c130103e-88d6-43c2-a2eb-215fad4b6900.webp?v=1714890130","variant_ids":[41905716035683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑 - 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-SB14","featured_media":{"alt":null,"id":23890483904611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d070bd46ee9b06ce697925ca5aed1e92e7239fd_c130103e-88d6-43c2-a2eb-215fad4b6900.webp?v=1714890130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905716330595,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485158817891,"product_id":7414323970147,"position":1,"created_at":"2024-05-05T14:22:00+08:00","updated_at":"2024-05-05T14:22:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120","variant_ids":[41905716330595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑 - 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-SB14","featured_media":{"alt":null,"id":23890474303587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fa152fa8acb44b1f005a5566e7c89503d97c5f_7e1d8f93-ec3c-4dd0-b8b7-99d6f27c4bd1.webp?v=1714890120"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905715839075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31485174415459,"product_id":7414323970147,"position":7,"created_at":"2024-05-05T14:22:14+08:00","updated_at":"2024-05-05T14:22:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134","variant_ids":[41905715839075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - Batman - 小丑 - 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-SB14","featured_media":{"alt":null,"id":23890490785891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/539175d9c9e1cb6bec36b2bd85e139841d8692f8_80e6cfd1-e39b-4335-a2d3-9aa1c9ea0a2e.webp?v=1714890134"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}