$product = {"id":7931618394211,"title":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 褪色的我們","handle":"iphone-17-pro-mod-nx-with-capture-button-bir06","description":null,"published_at":"2026-01-27T14:24:10+08:00","created_at":"2025-11-28T11:13:27+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":90000,"price_min":90000,"price_max":90000,"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":43861310177379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36351913951331,"product_id":7931618394211,"position":13,"created_at":"2026-07-22T21:29:34+08:00","updated_at":"2026-07-22T21:29:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977","variant_ids":[43861310177379]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 褪色的我們 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR06","featured_media":{"alt":null,"id":27855719137379,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861312110691,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36351916179555,"product_id":7931618394211,"position":15,"created_at":"2026-07-22T21:29:36+08:00","updated_at":"2026-07-22T21:29:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_52504525-1913-44a5-98cf-95ef0a0d5cb4.webp?v=1784726979","variant_ids":[43861312110691]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 褪色的我們 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR06","featured_media":{"alt":null,"id":27855721398371,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_52504525-1913-44a5-98cf-95ef0a0d5cb4.webp?v=1784726979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f.webp?v=1764299613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac.webp?v=1764299614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e.webp?v=1764299614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c.webp?v=1764299614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_090be2b3-8bcf-4c10-81fb-3108b73edb8a.webp?v=1784721803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_b64214c5-eba6-4c15-9d82-36cf29fad3d9.webp?v=1784721803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_7a5a69cc-a3da-4cf6-b611-eb0ae25d252c.webp?v=1784721804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_959ca660-5d39-423f-9d1f-86e1a32c6ecc.webp?v=1784721806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_b2571d0c-bd8c-41ac-b31c-bd9fee115294.webp?v=1784725915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_e40a9021-d260-42ba-9373-fe09164cd448.webp?v=1784725915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_e3553bba-8905-45be-afeb-f28a49429ced.webp?v=1784725916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_d48a0503-5195-49a1-9a53-38107cb319f5.webp?v=1784725917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_a8c4fed4-d220-40aa-af2a-5ac8a369cff9.webp?v=1784726977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_52504525-1913-44a5-98cf-95ef0a0d5cb4.webp?v=1784726979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_78c1f8e8-fb6f-4ac8-8add-14fbe69bdb7f.webp?v=1784726980"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f.webp?v=1764299613","options":["color"],"media":[{"alt":null,"id":26428049522787,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f.webp?v=1764299613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f.webp?v=1764299613","width":2000},{"alt":null,"id":26428049948771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac.webp?v=1764299614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac.webp?v=1764299614","width":2000},{"alt":null,"id":26428050178147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e.webp?v=1764299614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e.webp?v=1764299614","width":2000},{"alt":null,"id":26428050440291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c.webp?v=1764299614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c.webp?v=1764299614","width":2000},{"alt":null,"id":27853898678371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_090be2b3-8bcf-4c10-81fb-3108b73edb8a.webp?v=1784721803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_090be2b3-8bcf-4c10-81fb-3108b73edb8a.webp?v=1784721803","width":2000},{"alt":null,"id":27853899366499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_b64214c5-eba6-4c15-9d82-36cf29fad3d9.webp?v=1784721803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_b64214c5-eba6-4c15-9d82-36cf29fad3d9.webp?v=1784721803","width":2000},{"alt":null,"id":27853900218467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_7a5a69cc-a3da-4cf6-b611-eb0ae25d252c.webp?v=1784721804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_7a5a69cc-a3da-4cf6-b611-eb0ae25d252c.webp?v=1784721804","width":2000},{"alt":null,"id":27853901496419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_959ca660-5d39-423f-9d1f-86e1a32c6ecc.webp?v=1784721806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_959ca660-5d39-423f-9d1f-86e1a32c6ecc.webp?v=1784721806","width":2000},{"alt":null,"id":27855161032803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_b2571d0c-bd8c-41ac-b31c-bd9fee115294.webp?v=1784725915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_b2571d0c-bd8c-41ac-b31c-bd9fee115294.webp?v=1784725915","width":2000},{"alt":null,"id":27855162048611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_e40a9021-d260-42ba-9373-fe09164cd448.webp?v=1784725915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_e40a9021-d260-42ba-9373-fe09164cd448.webp?v=1784725915","width":2000},{"alt":null,"id":27855163097187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_e3553bba-8905-45be-afeb-f28a49429ced.webp?v=1784725916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_e3553bba-8905-45be-afeb-f28a49429ced.webp?v=1784725916","width":2000},{"alt":null,"id":27855163883619,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_d48a0503-5195-49a1-9a53-38107cb319f5.webp?v=1784725917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_d48a0503-5195-49a1-9a53-38107cb319f5.webp?v=1784725917","width":2000},{"alt":null,"id":27855719137379,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977","width":2000},{"alt":null,"id":27855720284259,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_a8c4fed4-d220-40aa-af2a-5ac8a369cff9.webp?v=1784726977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccb3430cd974ed58211d740162030e637059a3c_a8c4fed4-d220-40aa-af2a-5ac8a369cff9.webp?v=1784726977","width":2000},{"alt":null,"id":27855721398371,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_52504525-1913-44a5-98cf-95ef0a0d5cb4.webp?v=1784726979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_52504525-1913-44a5-98cf-95ef0a0d5cb4.webp?v=1784726979","width":2000},{"alt":null,"id":27855724281955,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_78c1f8e8-fb6f-4ac8-8add-14fbe69bdb7f.webp?v=1784726980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b490d5b95f252c89b650ac5fd699f7d1fabe25ac_78c1f8e8-fb6f-4ac8-8add-14fbe69bdb7f.webp?v=1784726980","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43861310177379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36351913951331,"product_id":7931618394211,"position":13,"created_at":"2026-07-22T21:29:34+08:00","updated_at":"2026-07-22T21:29:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977","variant_ids":[43861310177379]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 褪色的我們 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR06","featured_media":{"alt":null,"id":27855719137379,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861312110691,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"NXB0135269-BIR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36351916179555,"product_id":7931618394211,"position":15,"created_at":"2026-07-22T21:29:36+08:00","updated_at":"2026-07-22T21:29:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_52504525-1913-44a5-98cf-95ef0a0d5cb4.webp?v=1784726979","variant_ids":[43861312110691]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 褪色的我們 - Graphite","public_title":"Graphite","options":["Graphite"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB0135269-BIR06","featured_media":{"alt":null,"id":27855721398371,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7523d91a9b6fd7b2cd808575e5af8fd200be34f_52504525-1913-44a5-98cf-95ef0a0d5cb4.webp?v=1784726979"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43861310177379,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NXB01352J5-BIR06","requires_shipping":true,"taxable":true,"featured_image":{"id":36351913951331,"product_id":7931618394211,"position":13,"created_at":"2026-07-22T21:29:34+08:00","updated_at":"2026-07-22T21:29:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977","variant_ids":[43861310177379]},"available":true,"name":"iPhone 17 Pro Mod NX -邊框背蓋組合 (相機按鈕) 產房 • 廢料棲息地 褪色的我們 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NXB01352J5-BIR06","featured_media":{"alt":null,"id":27855719137379,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0afa0688e6527fa6ec1e015d0deac4e101b7c8e_90220dfb-58df-46c2-806b-7f1c6cc33812.webp?v=1784726977"}},"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: "停產"
}