$product = {"id":7830913810531,"title":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白)","handle":"iphone-15-pro-max-solidx-magsafe-bumper-back-original-design-dk05","description":null,"published_at":"2025-07-04T10:04:47+08:00","created_at":"2025-07-03T16:15:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer-valentines-day-collection","device-iPhone 15 Pro Max","discountable-item","merge","original-design","reseller-valentines-day-collection"],"price":145000,"price_min":145000,"price_max":145000,"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":43507480133731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS012980B-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116755619939,"product_id":7830913810531,"position":1,"created_at":"2025-07-03T16:15:44+08:00","updated_at":"2025-07-03T16:15:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546","variant_ids":[43507480133731]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012980B-DK05","featured_media":{"alt":null,"id":25769627582563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483377763,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"MNS01298P2-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116758274147,"product_id":7830913810531,"position":5,"created_at":"2025-07-03T16:15:47+08:00","updated_at":"2025-07-03T16:15:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafb4eef77b48c180adf609d656b749fdf3fc351.webp?v=1751530549","variant_ids":[43507483377763]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01298P2-DK05","featured_media":{"alt":null,"id":25769628532835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafb4eef77b48c180adf609d656b749fdf3fc351.webp?v=1751530549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483443299,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MNS01298Z8-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116757094499,"product_id":7830913810531,"position":4,"created_at":"2025-07-03T16:15:46+08:00","updated_at":"2025-07-03T16:15:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbb295f7d365f5ba0411cb0f588618e89989b7f.webp?v=1751530548","variant_ids":[43507483443299]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01298Z8-DK05","featured_media":{"alt":null,"id":25769628172387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbb295f7d365f5ba0411cb0f588618e89989b7f.webp?v=1751530548"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483508835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129852-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116755947619,"product_id":7830913810531,"position":2,"created_at":"2025-07-03T16:15:45+08:00","updated_at":"2025-07-03T16:15:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa472c84c2a45aaff7a3cef0e58ea819c8f49e5.webp?v=1751530547","variant_ids":[43507483508835]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129852-DK05","featured_media":{"alt":null,"id":25769627779171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa472c84c2a45aaff7a3cef0e58ea819c8f49e5.webp?v=1751530547"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483574371,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012980A-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116756832355,"product_id":7830913810531,"position":3,"created_at":"2025-07-03T16:15:46+08:00","updated_at":"2025-07-03T16:15:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e53317b19b4dbc00432b5ad8cf430fe1ec5db9.webp?v=1751530548","variant_ids":[43507483574371]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012980A-DK05","featured_media":{"alt":null,"id":25769628008547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e53317b19b4dbc00432b5ad8cf430fe1ec5db9.webp?v=1751530548"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa472c84c2a45aaff7a3cef0e58ea819c8f49e5.webp?v=1751530547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e53317b19b4dbc00432b5ad8cf430fe1ec5db9.webp?v=1751530548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbb295f7d365f5ba0411cb0f588618e89989b7f.webp?v=1751530548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafb4eef77b48c180adf609d656b749fdf3fc351.webp?v=1751530549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0d39673f51729bd61a0476dab1b4160b3e18f.webp?v=1751530549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45886883865f7e601a40658e348e46d8f8a1c581.webp?v=1751530550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e7c20c83222f94d9037919438fae2d9fca2011.webp?v=1751530550"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546","options":["color"],"media":[{"alt":null,"id":25769627582563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546","width":2000},{"alt":null,"id":25769627779171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa472c84c2a45aaff7a3cef0e58ea819c8f49e5.webp?v=1751530547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa472c84c2a45aaff7a3cef0e58ea819c8f49e5.webp?v=1751530547","width":2000},{"alt":null,"id":25769628008547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e53317b19b4dbc00432b5ad8cf430fe1ec5db9.webp?v=1751530548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e53317b19b4dbc00432b5ad8cf430fe1ec5db9.webp?v=1751530548","width":2000},{"alt":null,"id":25769628172387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbb295f7d365f5ba0411cb0f588618e89989b7f.webp?v=1751530548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbb295f7d365f5ba0411cb0f588618e89989b7f.webp?v=1751530548","width":2000},{"alt":null,"id":25769628532835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafb4eef77b48c180adf609d656b749fdf3fc351.webp?v=1751530549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafb4eef77b48c180adf609d656b749fdf3fc351.webp?v=1751530549","width":2000},{"alt":null,"id":25769628893283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0d39673f51729bd61a0476dab1b4160b3e18f.webp?v=1751530549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f0d39673f51729bd61a0476dab1b4160b3e18f.webp?v=1751530549","width":2000},{"alt":null,"id":25769629253731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45886883865f7e601a40658e348e46d8f8a1c581.webp?v=1751530550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45886883865f7e601a40658e348e46d8f8a1c581.webp?v=1751530550","width":2000},{"alt":null,"id":25769629581411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e7c20c83222f94d9037919438fae2d9fca2011.webp?v=1751530550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98e7c20c83222f94d9037919438fae2d9fca2011.webp?v=1751530550","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43507480133731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS012980B-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116755619939,"product_id":7830913810531,"position":1,"created_at":"2025-07-03T16:15:44+08:00","updated_at":"2025-07-03T16:15:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546","variant_ids":[43507480133731]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012980B-DK05","featured_media":{"alt":null,"id":25769627582563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483377763,"title":"Sage Green","option1":"Sage Green","option2":null,"option3":null,"sku":"MNS01298P2-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116758274147,"product_id":7830913810531,"position":5,"created_at":"2025-07-03T16:15:47+08:00","updated_at":"2025-07-03T16:15:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafb4eef77b48c180adf609d656b749fdf3fc351.webp?v=1751530549","variant_ids":[43507483377763]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Sage Green","public_title":"Sage Green","options":["Sage Green"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01298P2-DK05","featured_media":{"alt":null,"id":25769628532835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafb4eef77b48c180adf609d656b749fdf3fc351.webp?v=1751530549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483443299,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MNS01298Z8-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116757094499,"product_id":7830913810531,"position":4,"created_at":"2025-07-03T16:15:46+08:00","updated_at":"2025-07-03T16:15:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbb295f7d365f5ba0411cb0f588618e89989b7f.webp?v=1751530548","variant_ids":[43507483443299]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS01298Z8-DK05","featured_media":{"alt":null,"id":25769628172387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bbb295f7d365f5ba0411cb0f588618e89989b7f.webp?v=1751530548"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483508835,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0129852-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116755947619,"product_id":7830913810531,"position":2,"created_at":"2025-07-03T16:15:45+08:00","updated_at":"2025-07-03T16:15:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa472c84c2a45aaff7a3cef0e58ea819c8f49e5.webp?v=1751530547","variant_ids":[43507483508835]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Black","public_title":"Black","options":["Black"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0129852-DK05","featured_media":{"alt":null,"id":25769627779171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa472c84c2a45aaff7a3cef0e58ea819c8f49e5.webp?v=1751530547"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43507483574371,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MNS012980A-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116756832355,"product_id":7830913810531,"position":3,"created_at":"2025-07-03T16:15:46+08:00","updated_at":"2025-07-03T16:15:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e53317b19b4dbc00432b5ad8cf430fe1ec5db9.webp?v=1751530548","variant_ids":[43507483574371]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012980A-DK05","featured_media":{"alt":null,"id":25769628008547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00e53317b19b4dbc00432b5ad8cf430fe1ec5db9.webp?v=1751530548"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43507480133731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS012980B-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116755619939,"product_id":7830913810531,"position":1,"created_at":"2025-07-03T16:15:44+08:00","updated_at":"2025-07-03T16:15:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546","variant_ids":[43507480133731]},"available":true,"name":"iPhone 15 Pro Max SolidX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":145000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS012980B-DK05","featured_media":{"alt":null,"id":25769627582563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6ab9c129415dee856f2aad016f172567e6c1fe.webp?v=1751530546"}},"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: "停產"
}