$product = {"id":7414331441251,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb38","description":null,"published_at":"2024-06-11T17:50:49+08:00","created_at":"2024-05-05T14:22:16+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":41905771905123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485202989155,"product_id":7414331441251,"position":8,"created_at":"2024-05-05T14:22:34+08:00","updated_at":"2024-05-05T14:22:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154","variant_ids":[41905771905123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890519261283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905772003427,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485192863843,"product_id":7414331441251,"position":5,"created_at":"2024-05-05T14:22:27+08:00","updated_at":"2024-05-05T14:22:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8d1ab4c64eaade6154ce5573af1eeb745e9ca37_9dbe676f-db0a-4359-aa60-1c388c2f821b.webp?v=1714890147","variant_ids":[41905772003427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890509201507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8d1ab4c64eaade6154ce5573af1eeb745e9ca37_9dbe676f-db0a-4359-aa60-1c388c2f821b.webp?v=1714890147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905772396643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485199745123,"product_id":7414331441251,"position":7,"created_at":"2024-05-05T14:22:32+08:00","updated_at":"2024-05-05T14:22:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c5ed870b9bd2010200e59a7a6d5e3d5f776c92_19e07464-2418-4493-a098-a6682977c03d.webp?v=1714890152","variant_ids":[41905772396643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890516279395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c5ed870b9bd2010200e59a7a6d5e3d5f776c92_19e07464-2418-4493-a098-a6682977c03d.webp?v=1714890152"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/686944c69c25394001859c8ba8727e9ddc517d29_59d24e94-2e49-4639-9e63-8e4763ab10b2.webp?v=1714890138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de731ecfd9765361690d69529ce254f5ed90b76_22702d91-c6f9-4889-a1f6-c9ab1cba6fe0.webp?v=1714890141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08a8b73f25be6c8fb4b67c36bfba1b69a3e59d5_377170ed-e0c8-484c-8e04-363e9c561ece.webp?v=1714890143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/484be709346eed1522f4c950eb8bcd4c7a8d0650_b6d912a4-e37f-42b7-8268-a09bdf98ea42.webp?v=1714890145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8d1ab4c64eaade6154ce5573af1eeb745e9ca37_9dbe676f-db0a-4359-aa60-1c388c2f821b.webp?v=1714890147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f73565d2df21461eb34d6faa16f07d689c95ca_bf3db7a1-c988-4ab6-92fb-5de75bdc251b.webp?v=1714890149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c5ed870b9bd2010200e59a7a6d5e3d5f776c92_19e07464-2418-4493-a098-a6682977c03d.webp?v=1714890152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b79d7349edb313d75c89d54327b767d110f97da1_0c768d6d-7c24-4981-888c-e867b15d75f2.webp?v=1714890156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221736c5c7d4ecce87057601d093c2797646f0eb_26aba33d-0288-4d5f-becc-53fc47f51cd6.webp?v=1714890158"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/686944c69c25394001859c8ba8727e9ddc517d29_59d24e94-2e49-4639-9e63-8e4763ab10b2.webp?v=1714890138","options":["color"],"media":[{"alt":null,"id":23890496356451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/686944c69c25394001859c8ba8727e9ddc517d29_59d24e94-2e49-4639-9e63-8e4763ab10b2.webp?v=1714890138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/686944c69c25394001859c8ba8727e9ddc517d29_59d24e94-2e49-4639-9e63-8e4763ab10b2.webp?v=1714890138","width":2000},{"alt":null,"id":23890500223075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de731ecfd9765361690d69529ce254f5ed90b76_22702d91-c6f9-4889-a1f6-c9ab1cba6fe0.webp?v=1714890141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de731ecfd9765361690d69529ce254f5ed90b76_22702d91-c6f9-4889-a1f6-c9ab1cba6fe0.webp?v=1714890141","width":2000},{"alt":null,"id":23890503237731,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08a8b73f25be6c8fb4b67c36bfba1b69a3e59d5_377170ed-e0c8-484c-8e04-363e9c561ece.webp?v=1714890143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d08a8b73f25be6c8fb4b67c36bfba1b69a3e59d5_377170ed-e0c8-484c-8e04-363e9c561ece.webp?v=1714890143","width":2000},{"alt":null,"id":23890506416227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/484be709346eed1522f4c950eb8bcd4c7a8d0650_b6d912a4-e37f-42b7-8268-a09bdf98ea42.webp?v=1714890145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/484be709346eed1522f4c950eb8bcd4c7a8d0650_b6d912a4-e37f-42b7-8268-a09bdf98ea42.webp?v=1714890145","width":2000},{"alt":null,"id":23890509201507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8d1ab4c64eaade6154ce5573af1eeb745e9ca37_9dbe676f-db0a-4359-aa60-1c388c2f821b.webp?v=1714890147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8d1ab4c64eaade6154ce5573af1eeb745e9ca37_9dbe676f-db0a-4359-aa60-1c388c2f821b.webp?v=1714890147","width":2000},{"alt":null,"id":23890512773219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f73565d2df21461eb34d6faa16f07d689c95ca_bf3db7a1-c988-4ab6-92fb-5de75bdc251b.webp?v=1714890149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f73565d2df21461eb34d6faa16f07d689c95ca_bf3db7a1-c988-4ab6-92fb-5de75bdc251b.webp?v=1714890149","width":2000},{"alt":null,"id":23890516279395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c5ed870b9bd2010200e59a7a6d5e3d5f776c92_19e07464-2418-4493-a098-a6682977c03d.webp?v=1714890152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c5ed870b9bd2010200e59a7a6d5e3d5f776c92_19e07464-2418-4493-a098-a6682977c03d.webp?v=1714890152","width":2000},{"alt":null,"id":23890519261283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154","width":2000},{"alt":null,"id":23890522275939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b79d7349edb313d75c89d54327b767d110f97da1_0c768d6d-7c24-4981-888c-e867b15d75f2.webp?v=1714890156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b79d7349edb313d75c89d54327b767d110f97da1_0c768d6d-7c24-4981-888c-e867b15d75f2.webp?v=1714890156","width":2000},{"alt":null,"id":23890525225059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221736c5c7d4ecce87057601d093c2797646f0eb_26aba33d-0288-4d5f-becc-53fc47f51cd6.webp?v=1714890158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221736c5c7d4ecce87057601d093c2797646f0eb_26aba33d-0288-4d5f-becc-53fc47f51cd6.webp?v=1714890158","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41905771905123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485202989155,"product_id":7414331441251,"position":8,"created_at":"2024-05-05T14:22:34+08:00","updated_at":"2024-05-05T14:22:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154","variant_ids":[41905771905123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890519261283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905772003427,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485192863843,"product_id":7414331441251,"position":5,"created_at":"2024-05-05T14:22:27+08:00","updated_at":"2024-05-05T14:22:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8d1ab4c64eaade6154ce5573af1eeb745e9ca37_9dbe676f-db0a-4359-aa60-1c388c2f821b.webp?v=1714890147","variant_ids":[41905772003427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890509201507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8d1ab4c64eaade6154ce5573af1eeb745e9ca37_9dbe676f-db0a-4359-aa60-1c388c2f821b.webp?v=1714890147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905772396643,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485199745123,"product_id":7414331441251,"position":7,"created_at":"2024-05-05T14:22:32+08:00","updated_at":"2024-05-05T14:22:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c5ed870b9bd2010200e59a7a6d5e3d5f776c92_19e07464-2418-4493-a098-a6682977c03d.webp?v=1714890152","variant_ids":[41905772396643]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890516279395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c5ed870b9bd2010200e59a7a6d5e3d5f776c92_19e07464-2418-4493-a098-a6682977c03d.webp?v=1714890152"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905771905123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31485202989155,"product_id":7414331441251,"position":8,"created_at":"2024-05-05T14:22:34+08:00","updated_at":"2024-05-05T14:22:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154","variant_ids":[41905771905123]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23890519261283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ce37bcaafdc936dc077b68d11c9d223da24237_0a311c38-fe3c-462b-8987-b8dc5c27e7f1.webp?v=1714890154"}},"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: "停產"
}