$product = {"id":7931706998883,"title":"iPhone 17 Pro Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老","handle":"iphone-17-pro-mod-nx-magsafe-with-capture-button-bir01","description":null,"published_at":"2026-01-27T14:06:52+08:00","created_at":"2025-11-28T11:50:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-everydayishappybirthday","device-iPhone 17 Pro","merge","reseller-everydayishappybirthday"],"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":43861630910563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01352J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351892193379,"product_id":7931706998883,"position":15,"created_at":"2026-07-22T21:28:46+08:00","updated_at":"2026-07-22T21:28:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928","variant_ids":[43861630910563]},"available":true,"name":"iPhone 17 Pro Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - 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":"MXB01352J5-BIR01","featured_media":{"alt":null,"id":27855696855139,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861633564771,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135269-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351891341411,"product_id":7931706998883,"position":14,"created_at":"2026-07-22T21:28:45+08:00","updated_at":"2026-07-22T21:28:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_252d7cf4-7b15-4165-9955-7e8dbf6b88b7.webp?v=1784726927","variant_ids":[43861633564771]},"available":true,"name":"iPhone 17 Pro Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135269-BIR01","featured_media":{"alt":null,"id":27855696494691,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_252d7cf4-7b15-4165-9955-7e8dbf6b88b7.webp?v=1784726927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6.webp?v=1764301860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c.webp?v=1764301860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f.webp?v=1764301861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709.webp?v=1764301861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_6065eb59-2ea9-4b59-8f4c-342552cde377.webp?v=1784721756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_281aaa52-f1d8-4507-9232-063ed08d4e8b.webp?v=1784721757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_6ce3667f-affb-473a-9e9d-44a1981c68a0.webp?v=1784721757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_e299f2dc-916b-4911-a886-8e3f50f4730e.webp?v=1784721757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_2a5178b8-e481-4842-828d-146fcdab5a89.webp?v=1784725883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_bfe881f1-4e6e-4d6b-b032-b0eafbca5c3e.webp?v=1784725884","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_7de7a1ea-515a-47ec-9887-2454ebc124bb.webp?v=1784725884","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_b49e4b1b-7dbd-44e1-a92c-0880110ab5bd.webp?v=1784725885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_cb66892f-b1c2-4dbc-918f-5b0aa72ffa16.webp?v=1784726927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_252d7cf4-7b15-4165-9955-7e8dbf6b88b7.webp?v=1784726927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_fbbeb346-6396-4d0e-9721-962a9f3dffe2.webp?v=1784726928"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6.webp?v=1764301860","options":["color"],"media":[{"alt":null,"id":26428430516323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6.webp?v=1764301860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6.webp?v=1764301860","width":2000},{"alt":null,"id":26428430549091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c.webp?v=1764301860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c.webp?v=1764301860","width":2000},{"alt":null,"id":26428430647395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f.webp?v=1764301861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f.webp?v=1764301861","width":2000},{"alt":null,"id":26428430844003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709.webp?v=1764301861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709.webp?v=1764301861","width":2000},{"alt":null,"id":27853881770083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_6065eb59-2ea9-4b59-8f4c-342552cde377.webp?v=1784721756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_6065eb59-2ea9-4b59-8f4c-342552cde377.webp?v=1784721756","width":2000},{"alt":null,"id":27853881966691,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_281aaa52-f1d8-4507-9232-063ed08d4e8b.webp?v=1784721757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_281aaa52-f1d8-4507-9232-063ed08d4e8b.webp?v=1784721757","width":2000},{"alt":null,"id":27853882130531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_6ce3667f-affb-473a-9e9d-44a1981c68a0.webp?v=1784721757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_6ce3667f-affb-473a-9e9d-44a1981c68a0.webp?v=1784721757","width":2000},{"alt":null,"id":27853882327139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_e299f2dc-916b-4911-a886-8e3f50f4730e.webp?v=1784721757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_e299f2dc-916b-4911-a886-8e3f50f4730e.webp?v=1784721757","width":2000},{"alt":null,"id":27855146156131,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_2a5178b8-e481-4842-828d-146fcdab5a89.webp?v=1784725883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_2a5178b8-e481-4842-828d-146fcdab5a89.webp?v=1784725883","width":2000},{"alt":null,"id":27855146287203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_bfe881f1-4e6e-4d6b-b032-b0eafbca5c3e.webp?v=1784725884"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_bfe881f1-4e6e-4d6b-b032-b0eafbca5c3e.webp?v=1784725884","width":2000},{"alt":null,"id":27855146647651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_7de7a1ea-515a-47ec-9887-2454ebc124bb.webp?v=1784725884"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_7de7a1ea-515a-47ec-9887-2454ebc124bb.webp?v=1784725884","width":2000},{"alt":null,"id":27855147270243,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_b49e4b1b-7dbd-44e1-a92c-0880110ab5bd.webp?v=1784725885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_b49e4b1b-7dbd-44e1-a92c-0880110ab5bd.webp?v=1784725885","width":2000},{"alt":null,"id":27855695970403,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_cb66892f-b1c2-4dbc-918f-5b0aa72ffa16.webp?v=1784726927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b373656e078be37b560e9ab075f2468821468a6_cb66892f-b1c2-4dbc-918f-5b0aa72ffa16.webp?v=1784726927","width":2000},{"alt":null,"id":27855696494691,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_252d7cf4-7b15-4165-9955-7e8dbf6b88b7.webp?v=1784726927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_252d7cf4-7b15-4165-9955-7e8dbf6b88b7.webp?v=1784726927","width":2000},{"alt":null,"id":27855696855139,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928","width":2000},{"alt":null,"id":27855698362467,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_fbbeb346-6396-4d0e-9721-962a9f3dffe2.webp?v=1784726928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87a304d1610cdcccd104890dc23b10e9b115226c_fbbeb346-6396-4d0e-9721-962a9f3dffe2.webp?v=1784726928","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43861630910563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01352J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351892193379,"product_id":7931706998883,"position":15,"created_at":"2026-07-22T21:28:46+08:00","updated_at":"2026-07-22T21:28:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928","variant_ids":[43861630910563]},"available":true,"name":"iPhone 17 Pro Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - 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":"MXB01352J5-BIR01","featured_media":{"alt":null,"id":27855696855139,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861633564771,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135269-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351891341411,"product_id":7931706998883,"position":14,"created_at":"2026-07-22T21:28:45+08:00","updated_at":"2026-07-22T21:28:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_252d7cf4-7b15-4165-9955-7e8dbf6b88b7.webp?v=1784726927","variant_ids":[43861633564771]},"available":true,"name":"iPhone 17 Pro Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - Graphite","public_title":"Graphite","options":["Graphite"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MXB0135269-BIR01","featured_media":{"alt":null,"id":27855696494691,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bafe06df6550adba352695e17536a6c9ba87f709_252d7cf4-7b15-4165-9955-7e8dbf6b88b7.webp?v=1784726927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43861630910563,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01352J5-BIR01","requires_shipping":true,"taxable":true,"featured_image":{"id":36351892193379,"product_id":7931706998883,"position":15,"created_at":"2026-07-22T21:28:46+08:00","updated_at":"2026-07-22T21:28:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928","variant_ids":[43861630910563]},"available":true,"name":"iPhone 17 Pro Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 鯨魚:海洋的長老 - 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":"MXB01352J5-BIR01","featured_media":{"alt":null,"id":27855696855139,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f16e18756f4e1d0b732a0232b4b0f311f1b3f3f_3cee3594-4d5b-48fb-a28d-545c5ebbf65d.webp?v=1784726928"}},"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: "停產"
}