$product = {"id":7823763734627,"title":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗","handle":"iphone-15-pro-max-solidx-px20","description":null,"published_at":"2025-07-30T15:35:09+08:00","created_at":"2025-06-20T10:22:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-pompompurin-cinnamoroll","device-iPhone 15 Pro Max","merge","reseller-pompompurin-cinnamoroll"],"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":43472793108579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060019032163,"product_id":7823763734627,"position":3,"created_at":"2026-06-23T15:40:06+08:00","updated_at":"2026-06-23T15:40:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408","variant_ids":[43472793108579]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572865106019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472795598947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060019884131,"product_id":7823763734627,"position":4,"created_at":"2026-06-23T15:40:06+08:00","updated_at":"2026-06-23T15:40:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628fbb41bacc4bd331e146108f2b9cbfa3a37196.webp?v=1782200409","variant_ids":[43472795598947]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572866220131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628fbb41bacc4bd331e146108f2b9cbfa3a37196.webp?v=1782200409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472795697251,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060021817443,"product_id":7823763734627,"position":6,"created_at":"2026-06-23T15:40:09+08:00","updated_at":"2026-06-23T15:40:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c9ae5cd59bbd3ccde1a573b1c27a8999224e53.webp?v=1782200412","variant_ids":[43472795697251]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572868153443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c9ae5cd59bbd3ccde1a573b1c27a8999224e53.webp?v=1782200412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472795730019,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060023226467,"product_id":7823763734627,"position":7,"created_at":"2026-06-23T15:40:13+08:00","updated_at":"2026-06-23T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7214a659b7677ea0f0a77c2f9749e269773e416.webp?v=1782200415","variant_ids":[43472795730019]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572869595235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7214a659b7677ea0f0a77c2f9749e269773e416.webp?v=1782200415"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494442696803,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060020932707,"product_id":7823763734627,"position":5,"created_at":"2026-06-23T15:40:08+08:00","updated_at":"2026-06-23T15:40:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23799706e780a85848be8cc0765f6a847dd4f48c.webp?v=1782200410","variant_ids":[43494442696803]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572867203171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23799706e780a85848be8cc0765f6a847dd4f48c.webp?v=1782200410"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PX20.png?v=1750386173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PX20_2c34aa28-467b-4aba-9e07-e0f6ee2bee19.png?v=1750832260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628fbb41bacc4bd331e146108f2b9cbfa3a37196.webp?v=1782200409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23799706e780a85848be8cc0765f6a847dd4f48c.webp?v=1782200410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c9ae5cd59bbd3ccde1a573b1c27a8999224e53.webp?v=1782200412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7214a659b7677ea0f0a77c2f9749e269773e416.webp?v=1782200415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b23de04ebdf2cbea3372c28273be6f701b593b4.webp?v=1782200416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d910b09d89c358d608b4505bf558d247ad3e2a9.webp?v=1782200416"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PX20.png?v=1750386173","options":["color"],"media":[{"alt":null,"id":25720319574115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PX20.png?v=1750386173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-PX20.png?v=1750386173","width":2000},{"alt":null,"id":25736368226403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PX20_2c34aa28-467b-4aba-9e07-e0f6ee2bee19.png?v=1750832260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-PX20_2c34aa28-467b-4aba-9e07-e0f6ee2bee19.png?v=1750832260","width":2000},{"alt":null,"id":27572865106019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408","width":2000},{"alt":null,"id":27572866220131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628fbb41bacc4bd331e146108f2b9cbfa3a37196.webp?v=1782200409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628fbb41bacc4bd331e146108f2b9cbfa3a37196.webp?v=1782200409","width":2000},{"alt":null,"id":27572867203171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23799706e780a85848be8cc0765f6a847dd4f48c.webp?v=1782200410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23799706e780a85848be8cc0765f6a847dd4f48c.webp?v=1782200410","width":2000},{"alt":null,"id":27572868153443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c9ae5cd59bbd3ccde1a573b1c27a8999224e53.webp?v=1782200412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c9ae5cd59bbd3ccde1a573b1c27a8999224e53.webp?v=1782200412","width":2000},{"alt":null,"id":27572869595235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7214a659b7677ea0f0a77c2f9749e269773e416.webp?v=1782200415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7214a659b7677ea0f0a77c2f9749e269773e416.webp?v=1782200415","width":2000},{"alt":null,"id":27572870578275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b23de04ebdf2cbea3372c28273be6f701b593b4.webp?v=1782200416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b23de04ebdf2cbea3372c28273be6f701b593b4.webp?v=1782200416","width":2000},{"alt":null,"id":27572871299171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d910b09d89c358d608b4505bf558d247ad3e2a9.webp?v=1782200416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d910b09d89c358d608b4505bf558d247ad3e2a9.webp?v=1782200416","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43472793108579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060019032163,"product_id":7823763734627,"position":3,"created_at":"2026-06-23T15:40:06+08:00","updated_at":"2026-06-23T15:40:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408","variant_ids":[43472793108579]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572865106019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472795598947,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060019884131,"product_id":7823763734627,"position":4,"created_at":"2026-06-23T15:40:06+08:00","updated_at":"2026-06-23T15:40:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628fbb41bacc4bd331e146108f2b9cbfa3a37196.webp?v=1782200409","variant_ids":[43472795598947]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572866220131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/628fbb41bacc4bd331e146108f2b9cbfa3a37196.webp?v=1782200409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472795697251,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060021817443,"product_id":7823763734627,"position":6,"created_at":"2026-06-23T15:40:09+08:00","updated_at":"2026-06-23T15:40:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c9ae5cd59bbd3ccde1a573b1c27a8999224e53.webp?v=1782200412","variant_ids":[43472795697251]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572868153443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c9ae5cd59bbd3ccde1a573b1c27a8999224e53.webp?v=1782200412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43472795730019,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060023226467,"product_id":7823763734627,"position":7,"created_at":"2026-06-23T15:40:13+08:00","updated_at":"2026-06-23T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7214a659b7677ea0f0a77c2f9749e269773e416.webp?v=1782200415","variant_ids":[43472795730019]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572869595235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7214a659b7677ea0f0a77c2f9749e269773e416.webp?v=1782200415"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494442696803,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060020932707,"product_id":7823763734627,"position":5,"created_at":"2026-06-23T15:40:08+08:00","updated_at":"2026-06-23T15:40:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23799706e780a85848be8cc0765f6a847dd4f48c.webp?v=1782200410","variant_ids":[43494442696803]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572867203171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23799706e780a85848be8cc0765f6a847dd4f48c.webp?v=1782200410"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43472793108579,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-PX20","requires_shipping":true,"taxable":true,"featured_image":{"id":36060019032163,"product_id":7823763734627,"position":3,"created_at":"2026-06-23T15:40:06+08:00","updated_at":"2026-06-23T15:40:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408","variant_ids":[43472793108579]},"available":true,"name":"iPhone 15 Pro Max SolidX 布丁狗與大耳狗 繽紛布丁狗&大耳狗 - 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-PX20","featured_media":{"alt":null,"id":27572865106019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7045641a2898d0a2ce6c2466adc5399174f79e2e.webp?v=1782200408"}},"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: "停產"
}