$product = {"id":7769893535843,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf53","description":null,"published_at":"2025-04-16T13:43:36+08:00","created_at":"2025-04-15T21:47:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 13 Mini","merge","reseller-ilovedoodle"],"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":43304465399907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197775188067,"product_id":7769893535843,"position":12,"created_at":"2025-07-16T15:22:24+08:00","updated_at":"2025-07-16T15:22:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546","variant_ids":[43304465399907]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF53","featured_media":{"alt":null,"id":25830095749219,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304472838243,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197769060451,"product_id":7769893535843,"position":4,"created_at":"2025-07-16T15:22:18+08:00","updated_at":"2025-07-16T15:22:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f0c2d99c314280349af733d559cd4e10dae92e_2efb37e1-6aa2-4a36-add3-8b8e531c60fd.webp?v=1752650540","variant_ids":[43304472838243]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF53","featured_media":{"alt":null,"id":25830092308579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f0c2d99c314280349af733d559cd4e10dae92e_2efb37e1-6aa2-4a36-add3-8b8e531c60fd.webp?v=1752650540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304473002083,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197767979107,"product_id":7769893535843,"position":3,"created_at":"2025-07-16T15:22:18+08:00","updated_at":"2025-07-16T15:22:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba3050234a1103ab4f68c61043d31f8d1b42eae_0e6d2199-539f-45fe-ba1c-2a1196a9577f.webp?v=1752650539","variant_ids":[43304473002083]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF53","featured_media":{"alt":null,"id":25830091915363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba3050234a1103ab4f68c61043d31f8d1b42eae_0e6d2199-539f-45fe-ba1c-2a1196a9577f.webp?v=1752650539"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529e076ee35111813951c0401e728f82621dca71_01c84fef-8f3e-4e57-92c4-d4e75e251a31.webp?v=1744724868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63f971fb80b70c89c611e34147585976ff83e1e_0a610394-3b32-4d1c-8e4e-d01ca596cb8e.webp?v=1752650539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba3050234a1103ab4f68c61043d31f8d1b42eae_0e6d2199-539f-45fe-ba1c-2a1196a9577f.webp?v=1752650539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f0c2d99c314280349af733d559cd4e10dae92e_2efb37e1-6aa2-4a36-add3-8b8e531c60fd.webp?v=1752650540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bcbd4f80b678b74ab1c6f1ff891885cbf2ceb7_234bfe88-b869-403f-bdc6-d76377b597d1.webp?v=1752650541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1e673c007db02d427acf1e4c63390bc97b72e59_b9b45df7-230f-4bf6-b93d-6c31d3c51db5.webp?v=1752650541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9ad98d76b90530b0e96caf8e906ee5932956a9a_2e32784f-55ca-4b01-933d-96867723360f.webp?v=1752650542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7dd8f0a9fb0bc0aecbbfb48430214970072285_e91d7cc3-ae75-4a4a-8314-b404693641dc.webp?v=1752650543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f66b23a31099455953fb87132063887d3426df55_8fce56a5-eff6-4620-8e6f-8a751a61ec96.webp?v=1752650543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb7ff7f3c89b29b1b102de6a982609719314c5e_5bc4c086-7c68-4046-8c3a-6aa817256a11.webp?v=1752650544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d31f0e8f2ba323373d26a76aefbef85cf0b82a_9759c1f6-05bf-47c2-bd3c-a8e0a29d5276.webp?v=1752650545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529e076ee35111813951c0401e728f82621dca71_01c84fef-8f3e-4e57-92c4-d4e75e251a31.webp?v=1744724868","options":["color"],"media":[{"alt":null,"id":25496450531427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529e076ee35111813951c0401e728f82621dca71_01c84fef-8f3e-4e57-92c4-d4e75e251a31.webp?v=1744724868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529e076ee35111813951c0401e728f82621dca71_01c84fef-8f3e-4e57-92c4-d4e75e251a31.webp?v=1744724868","width":2000},{"alt":null,"id":25830091522147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63f971fb80b70c89c611e34147585976ff83e1e_0a610394-3b32-4d1c-8e4e-d01ca596cb8e.webp?v=1752650539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a63f971fb80b70c89c611e34147585976ff83e1e_0a610394-3b32-4d1c-8e4e-d01ca596cb8e.webp?v=1752650539","width":2000},{"alt":null,"id":25830091915363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba3050234a1103ab4f68c61043d31f8d1b42eae_0e6d2199-539f-45fe-ba1c-2a1196a9577f.webp?v=1752650539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba3050234a1103ab4f68c61043d31f8d1b42eae_0e6d2199-539f-45fe-ba1c-2a1196a9577f.webp?v=1752650539","width":2000},{"alt":null,"id":25830092308579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f0c2d99c314280349af733d559cd4e10dae92e_2efb37e1-6aa2-4a36-add3-8b8e531c60fd.webp?v=1752650540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f0c2d99c314280349af733d559cd4e10dae92e_2efb37e1-6aa2-4a36-add3-8b8e531c60fd.webp?v=1752650540","width":2000},{"alt":null,"id":25830092734563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bcbd4f80b678b74ab1c6f1ff891885cbf2ceb7_234bfe88-b869-403f-bdc6-d76377b597d1.webp?v=1752650541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bcbd4f80b678b74ab1c6f1ff891885cbf2ceb7_234bfe88-b869-403f-bdc6-d76377b597d1.webp?v=1752650541","width":2000},{"alt":null,"id":25830093160547,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1e673c007db02d427acf1e4c63390bc97b72e59_b9b45df7-230f-4bf6-b93d-6c31d3c51db5.webp?v=1752650541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1e673c007db02d427acf1e4c63390bc97b72e59_b9b45df7-230f-4bf6-b93d-6c31d3c51db5.webp?v=1752650541","width":2000},{"alt":null,"id":25830094110819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9ad98d76b90530b0e96caf8e906ee5932956a9a_2e32784f-55ca-4b01-933d-96867723360f.webp?v=1752650542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9ad98d76b90530b0e96caf8e906ee5932956a9a_2e32784f-55ca-4b01-933d-96867723360f.webp?v=1752650542","width":2000},{"alt":null,"id":25830094438499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7dd8f0a9fb0bc0aecbbfb48430214970072285_e91d7cc3-ae75-4a4a-8314-b404693641dc.webp?v=1752650543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df7dd8f0a9fb0bc0aecbbfb48430214970072285_e91d7cc3-ae75-4a4a-8314-b404693641dc.webp?v=1752650543","width":2000},{"alt":null,"id":25830094766179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f66b23a31099455953fb87132063887d3426df55_8fce56a5-eff6-4620-8e6f-8a751a61ec96.webp?v=1752650543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f66b23a31099455953fb87132063887d3426df55_8fce56a5-eff6-4620-8e6f-8a751a61ec96.webp?v=1752650543","width":2000},{"alt":null,"id":25830095126627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb7ff7f3c89b29b1b102de6a982609719314c5e_5bc4c086-7c68-4046-8c3a-6aa817256a11.webp?v=1752650544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb7ff7f3c89b29b1b102de6a982609719314c5e_5bc4c086-7c68-4046-8c3a-6aa817256a11.webp?v=1752650544","width":2000},{"alt":null,"id":25830095421539,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d31f0e8f2ba323373d26a76aefbef85cf0b82a_9759c1f6-05bf-47c2-bd3c-a8e0a29d5276.webp?v=1752650545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01d31f0e8f2ba323373d26a76aefbef85cf0b82a_9759c1f6-05bf-47c2-bd3c-a8e0a29d5276.webp?v=1752650545","width":2000},{"alt":null,"id":25830095749219,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43304465399907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197775188067,"product_id":7769893535843,"position":12,"created_at":"2025-07-16T15:22:24+08:00","updated_at":"2025-07-16T15:22:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546","variant_ids":[43304465399907]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF53","featured_media":{"alt":null,"id":25830095749219,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304472838243,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197769060451,"product_id":7769893535843,"position":4,"created_at":"2025-07-16T15:22:18+08:00","updated_at":"2025-07-16T15:22:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f0c2d99c314280349af733d559cd4e10dae92e_2efb37e1-6aa2-4a36-add3-8b8e531c60fd.webp?v=1752650540","variant_ids":[43304472838243]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-XF53","featured_media":{"alt":null,"id":25830092308579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f0c2d99c314280349af733d559cd4e10dae92e_2efb37e1-6aa2-4a36-add3-8b8e531c60fd.webp?v=1752650540"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304473002083,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197767979107,"product_id":7769893535843,"position":3,"created_at":"2025-07-16T15:22:18+08:00","updated_at":"2025-07-16T15:22:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba3050234a1103ab4f68c61043d31f8d1b42eae_0e6d2199-539f-45fe-ba1c-2a1196a9577f.webp?v=1752650539","variant_ids":[43304473002083]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-XF53","featured_media":{"alt":null,"id":25830091915363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ba3050234a1103ab4f68c61043d31f8d1b42eae_0e6d2199-539f-45fe-ba1c-2a1196a9577f.webp?v=1752650539"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43304465399907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF53","requires_shipping":true,"taxable":true,"featured_image":{"id":34197775188067,"product_id":7769893535843,"position":12,"created_at":"2025-07-16T15:22:24+08:00","updated_at":"2025-07-16T15:22:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546","variant_ids":[43304465399907]},"available":true,"name":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Lunar Mirage Cat - 月光貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-XF53","featured_media":{"alt":null,"id":25830095749219,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e1d85e5d05d26d0e867cf0ed6c1f0a059b84f2_39b53cc8-e110-4d71-8731-e698b5b7005f.webp?v=1752650546"}},"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: "停產"
}