$product = {"id":7856275128419,"title":"iPhone 15 Pro Max SolidX Ducati Corner","handle":"iphone-15-pro-max-solidx-bumper-back-crossover-design-du05","description":null,"published_at":"2025-08-15T15:28:18+08:00","created_at":"2025-08-14T15:00:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ducati","device-iPhone 15 Pro Max","merge","reseller-ducati"],"price":125000,"price_min":125000,"price_max":125000,"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":43590739722339,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327887347811,"product_id":7856275128419,"position":4,"created_at":"2025-08-14T15:00:22+08:00","updated_at":"2025-08-14T15:00:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825","variant_ids":[43590739722339]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-DU05","featured_media":{"alt":null,"id":25912140791907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739787875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327887872099,"product_id":7856275128419,"position":8,"created_at":"2025-08-14T15:00:24+08:00","updated_at":"2025-08-14T15:00:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5279f023e561143768d3ef0ef167966dac4a9aea.webp?v=1755154827","variant_ids":[43590739787875]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-DU05","featured_media":{"alt":null,"id":25912141316195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5279f023e561143768d3ef0ef167966dac4a9aea.webp?v=1755154827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739820643,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327888101475,"product_id":7856275128419,"position":9,"created_at":"2025-08-14T15:00:25+08:00","updated_at":"2025-08-14T15:00:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452e13c73e7a36a0fb26f3e0a8d4450f6e227410.webp?v=1755154827","variant_ids":[43590739820643]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-DU05","featured_media":{"alt":null,"id":25912141578339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452e13c73e7a36a0fb26f3e0a8d4450f6e227410.webp?v=1755154827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739853411,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327887609955,"product_id":7856275128419,"position":6,"created_at":"2025-08-14T15:00:23+08:00","updated_at":"2025-08-14T15:00:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103a2b828f784228562ffca8b372ff591160d63.webp?v=1755154826","variant_ids":[43590739853411]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-DU05","featured_media":{"alt":null,"id":25912141054051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103a2b828f784228562ffca8b372ff591160d63.webp?v=1755154826"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739918947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327886987363,"product_id":7856275128419,"position":3,"created_at":"2025-08-14T15:00:21+08:00","updated_at":"2025-08-14T15:00:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b0b44686a03cff27c29e96fe116a10834d424f.webp?v=1755154823","variant_ids":[43590739918947]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-DU05","featured_media":{"alt":null,"id":25912140431459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b0b44686a03cff27c29e96fe116a10834d424f.webp?v=1755154823"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6f9da6a53efb72937122ebc81a0247728af1781.webp?v=1755154822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021c13b9fc62479c9337263dc07c3334c69c902f.webp?v=1755154823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b0b44686a03cff27c29e96fe116a10834d424f.webp?v=1755154823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e48f685b9db096af106fe2a5ed692a066bedd7d.webp?v=1755154825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103a2b828f784228562ffca8b372ff591160d63.webp?v=1755154826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eeaece60c022b369e3c701df972c7db48c635d8.webp?v=1755154826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5279f023e561143768d3ef0ef167966dac4a9aea.webp?v=1755154827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452e13c73e7a36a0fb26f3e0a8d4450f6e227410.webp?v=1755154827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e030b5e6f8f1750d1c13bab25143f344395177.webp?v=1755154828"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6f9da6a53efb72937122ebc81a0247728af1781.webp?v=1755154822","options":["color"],"media":[{"alt":null,"id":25912140071011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6f9da6a53efb72937122ebc81a0247728af1781.webp?v=1755154822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6f9da6a53efb72937122ebc81a0247728af1781.webp?v=1755154822","width":2000},{"alt":null,"id":25912140267619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021c13b9fc62479c9337263dc07c3334c69c902f.webp?v=1755154823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/021c13b9fc62479c9337263dc07c3334c69c902f.webp?v=1755154823","width":2000},{"alt":null,"id":25912140431459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b0b44686a03cff27c29e96fe116a10834d424f.webp?v=1755154823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b0b44686a03cff27c29e96fe116a10834d424f.webp?v=1755154823","width":2000},{"alt":null,"id":25912140791907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825","width":2000},{"alt":null,"id":25912140955747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e48f685b9db096af106fe2a5ed692a066bedd7d.webp?v=1755154825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e48f685b9db096af106fe2a5ed692a066bedd7d.webp?v=1755154825","width":2000},{"alt":null,"id":25912141054051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103a2b828f784228562ffca8b372ff591160d63.webp?v=1755154826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103a2b828f784228562ffca8b372ff591160d63.webp?v=1755154826","width":2000},{"alt":null,"id":25912141185123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eeaece60c022b369e3c701df972c7db48c635d8.webp?v=1755154826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3eeaece60c022b369e3c701df972c7db48c635d8.webp?v=1755154826","width":2000},{"alt":null,"id":25912141316195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5279f023e561143768d3ef0ef167966dac4a9aea.webp?v=1755154827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5279f023e561143768d3ef0ef167966dac4a9aea.webp?v=1755154827","width":2000},{"alt":null,"id":25912141578339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452e13c73e7a36a0fb26f3e0a8d4450f6e227410.webp?v=1755154827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452e13c73e7a36a0fb26f3e0a8d4450f6e227410.webp?v=1755154827","width":2000},{"alt":null,"id":25912141906019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e030b5e6f8f1750d1c13bab25143f344395177.webp?v=1755154828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e030b5e6f8f1750d1c13bab25143f344395177.webp?v=1755154828","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43590739722339,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327887347811,"product_id":7856275128419,"position":4,"created_at":"2025-08-14T15:00:22+08:00","updated_at":"2025-08-14T15:00:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825","variant_ids":[43590739722339]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-DU05","featured_media":{"alt":null,"id":25912140791907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739787875,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327887872099,"product_id":7856275128419,"position":8,"created_at":"2025-08-14T15:00:24+08:00","updated_at":"2025-08-14T15:00:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5279f023e561143768d3ef0ef167966dac4a9aea.webp?v=1755154827","variant_ids":[43590739787875]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-DU05","featured_media":{"alt":null,"id":25912141316195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5279f023e561143768d3ef0ef167966dac4a9aea.webp?v=1755154827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739820643,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327888101475,"product_id":7856275128419,"position":9,"created_at":"2025-08-14T15:00:25+08:00","updated_at":"2025-08-14T15:00:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452e13c73e7a36a0fb26f3e0a8d4450f6e227410.webp?v=1755154827","variant_ids":[43590739820643]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-DU05","featured_media":{"alt":null,"id":25912141578339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/452e13c73e7a36a0fb26f3e0a8d4450f6e227410.webp?v=1755154827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739853411,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327887609955,"product_id":7856275128419,"position":6,"created_at":"2025-08-14T15:00:23+08:00","updated_at":"2025-08-14T15:00:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103a2b828f784228562ffca8b372ff591160d63.webp?v=1755154826","variant_ids":[43590739853411]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-DU05","featured_media":{"alt":null,"id":25912141054051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f103a2b828f784228562ffca8b372ff591160d63.webp?v=1755154826"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43590739918947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327886987363,"product_id":7856275128419,"position":3,"created_at":"2025-08-14T15:00:21+08:00","updated_at":"2025-08-14T15:00:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b0b44686a03cff27c29e96fe116a10834d424f.webp?v=1755154823","variant_ids":[43590739918947]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-DU05","featured_media":{"alt":null,"id":25912140431459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95b0b44686a03cff27c29e96fe116a10834d424f.webp?v=1755154823"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43590739722339,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-DU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34327887347811,"product_id":7856275128419,"position":4,"created_at":"2025-08-14T15:00:22+08:00","updated_at":"2025-08-14T15:00:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825","variant_ids":[43590739722339]},"available":true,"name":"iPhone 15 Pro Max SolidX Ducati Corner - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-DU05","featured_media":{"alt":null,"id":25912140791907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b19f7d967b77a3c8fa9257cca406845655e6a5db.webp?v=1755154825"}},"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: "停產"
}