Home
›
iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐
$product = {"id":7967587336291,"title":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐","handle":"iphone-15-pro-solidx-lch29","description":null,"published_at":"2026-02-26T14:47:46+08:00","created_at":"2026-02-23T16:10:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-plantica","device-iPhone 15 Pro","merge","reseller-plantica"],"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":44018089689187,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326500110435,"product_id":7967587336291,"position":5,"created_at":"2026-02-23T16:11:40+08:00","updated_at":"2026-02-23T16:11:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302","variant_ids":[44018089689187]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970B-LCH29","featured_media":{"alt":null,"id":26870316990563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018090246243,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326500601955,"product_id":7967587336291,"position":6,"created_at":"2026-02-23T16:11:41+08:00","updated_at":"2026-02-23T16:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91b4a93a6b847048fc6bd3c7a96bbdad8a47677.webp?v=1771834303","variant_ids":[44018090246243]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-LCH29","featured_media":{"alt":null,"id":26870317482083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91b4a93a6b847048fc6bd3c7a96bbdad8a47677.webp?v=1771834303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018090606691,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326501781603,"product_id":7967587336291,"position":8,"created_at":"2026-02-23T16:11:43+08:00","updated_at":"2026-02-23T16:11:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57348ca030ec2ae74cbef24081999a2bb9beea01.webp?v=1771834305","variant_ids":[44018090606691]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01297Z8-LCH29","featured_media":{"alt":null,"id":26870318661731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57348ca030ec2ae74cbef24081999a2bb9beea01.webp?v=1771834305"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018092900451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326502240355,"product_id":7967587336291,"position":9,"created_at":"2026-02-23T16:11:43+08:00","updated_at":"2026-02-23T16:11:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47ce5fbd977a7c4ac9bed939d3512aed692957.webp?v=1771834306","variant_ids":[44018092900451]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129752-LCH29","featured_media":{"alt":null,"id":26870319120483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47ce5fbd977a7c4ac9bed939d3512aed692957.webp?v=1771834306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018093719651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326501322851,"product_id":7967587336291,"position":7,"created_at":"2026-02-23T16:11:42+08:00","updated_at":"2026-02-23T16:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf66dc66a69bc18c76006af6b8a2dec2db2d958b.webp?v=1771834304","variant_ids":[44018093719651]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129753-LCH29","featured_media":{"alt":null,"id":26870318202979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf66dc66a69bc18c76006af6b8a2dec2db2d958b.webp?v=1771834304"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ea60e2a8f394fa3e5b60dbb524f0f4b4fffc7a.webp?v=1771834297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6210f97d6371a9b16a3e387dc428530522ce1bc.webp?v=1771834298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf674ac2969093ad2bcfc370ae67210e7880ea9.webp?v=1771834300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00923cf63cd1a8cf81eb74fa3c7f544ccf4821ff.webp?v=1771834301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91b4a93a6b847048fc6bd3c7a96bbdad8a47677.webp?v=1771834303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf66dc66a69bc18c76006af6b8a2dec2db2d958b.webp?v=1771834304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57348ca030ec2ae74cbef24081999a2bb9beea01.webp?v=1771834305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47ce5fbd977a7c4ac9bed939d3512aed692957.webp?v=1771834306"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ea60e2a8f394fa3e5b60dbb524f0f4b4fffc7a.webp?v=1771834297","options":["color"],"media":[{"alt":null,"id":26870314631267,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ea60e2a8f394fa3e5b60dbb524f0f4b4fffc7a.webp?v=1771834297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19ea60e2a8f394fa3e5b60dbb524f0f4b4fffc7a.webp?v=1771834297","width":2000},{"alt":null,"id":26870315057251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6210f97d6371a9b16a3e387dc428530522ce1bc.webp?v=1771834298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6210f97d6371a9b16a3e387dc428530522ce1bc.webp?v=1771834298","width":2000},{"alt":null,"id":26870315614307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf674ac2969093ad2bcfc370ae67210e7880ea9.webp?v=1771834300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf674ac2969093ad2bcfc370ae67210e7880ea9.webp?v=1771834300","width":2000},{"alt":null,"id":26870316433507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00923cf63cd1a8cf81eb74fa3c7f544ccf4821ff.webp?v=1771834301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00923cf63cd1a8cf81eb74fa3c7f544ccf4821ff.webp?v=1771834301","width":2000},{"alt":null,"id":26870316990563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302","width":2000},{"alt":null,"id":26870317482083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91b4a93a6b847048fc6bd3c7a96bbdad8a47677.webp?v=1771834303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91b4a93a6b847048fc6bd3c7a96bbdad8a47677.webp?v=1771834303","width":2000},{"alt":null,"id":26870318202979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf66dc66a69bc18c76006af6b8a2dec2db2d958b.webp?v=1771834304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf66dc66a69bc18c76006af6b8a2dec2db2d958b.webp?v=1771834304","width":2000},{"alt":null,"id":26870318661731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57348ca030ec2ae74cbef24081999a2bb9beea01.webp?v=1771834305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57348ca030ec2ae74cbef24081999a2bb9beea01.webp?v=1771834305","width":2000},{"alt":null,"id":26870319120483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47ce5fbd977a7c4ac9bed939d3512aed692957.webp?v=1771834306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47ce5fbd977a7c4ac9bed939d3512aed692957.webp?v=1771834306","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":44018089689187,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326500110435,"product_id":7967587336291,"position":5,"created_at":"2026-02-23T16:11:40+08:00","updated_at":"2026-02-23T16:11:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302","variant_ids":[44018089689187]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970B-LCH29","featured_media":{"alt":null,"id":26870316990563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018090246243,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326500601955,"product_id":7967587336291,"position":6,"created_at":"2026-02-23T16:11:41+08:00","updated_at":"2026-02-23T16:11:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91b4a93a6b847048fc6bd3c7a96bbdad8a47677.webp?v=1771834303","variant_ids":[44018090246243]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-LCH29","featured_media":{"alt":null,"id":26870317482083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c91b4a93a6b847048fc6bd3c7a96bbdad8a47677.webp?v=1771834303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018090606691,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326501781603,"product_id":7967587336291,"position":8,"created_at":"2026-02-23T16:11:43+08:00","updated_at":"2026-02-23T16:11:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57348ca030ec2ae74cbef24081999a2bb9beea01.webp?v=1771834305","variant_ids":[44018090606691]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01297Z8-LCH29","featured_media":{"alt":null,"id":26870318661731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57348ca030ec2ae74cbef24081999a2bb9beea01.webp?v=1771834305"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018092900451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326502240355,"product_id":7967587336291,"position":9,"created_at":"2026-02-23T16:11:43+08:00","updated_at":"2026-02-23T16:11:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47ce5fbd977a7c4ac9bed939d3512aed692957.webp?v=1771834306","variant_ids":[44018092900451]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129752-LCH29","featured_media":{"alt":null,"id":26870319120483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a47ce5fbd977a7c4ac9bed939d3512aed692957.webp?v=1771834306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44018093719651,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326501322851,"product_id":7967587336291,"position":7,"created_at":"2026-02-23T16:11:42+08:00","updated_at":"2026-02-23T16:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf66dc66a69bc18c76006af6b8a2dec2db2d958b.webp?v=1771834304","variant_ids":[44018093719651]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129753-LCH29","featured_media":{"alt":null,"id":26870318202979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf66dc66a69bc18c76006af6b8a2dec2db2d958b.webp?v=1771834304"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":44018089689187,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-LCH29","requires_shipping":true,"taxable":true,"featured_image":{"id":35326500110435,"product_id":7967587336291,"position":5,"created_at":"2026-02-23T16:11:40+08:00","updated_at":"2026-02-23T16:11:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302","variant_ids":[44018089689187]},"available":true,"name":"iPhone 15 Pro SolidX Plantica 阿拉伯蔓紋 – 靜謐 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970B-LCH29","featured_media":{"alt":null,"id":26870316990563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1f711b46877a2d9a9cf33cdbd37fbd5dd2bd5e3.webp?v=1771834302"}},"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: "停產"
}