$product = {"id":7931592278115,"title":"iPhone 17 Pro Mod NX - 邊框背蓋組合(MagSafe兼容&相機按鈕) 產房 • 廢料棲息地 海洋實驗室","handle":"iphone-17-pro-mod-nx-magsafe-with-capture-button-bir08","description":null,"published_at":"2026-01-27T14:24:46+08:00","created_at":"2025-11-28T11:11:40+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":43861272133731,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01352J5-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351891046499,"product_id":7931592278115,"position":13,"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\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927","variant_ids":[43861272133731]},"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-BIR08","featured_media":{"alt":null,"id":27855696199779,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861297430627,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135269-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351895371875,"product_id":7931592278115,"position":16,"created_at":"2026-07-22T21:28:48+08:00","updated_at":"2026-07-22T21:28:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_6d1d40a3-3cf4-4886-ae54-f74553b44b01.webp?v=1784726930","variant_ids":[43861297430627]},"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-BIR08","featured_media":{"alt":null,"id":27855700525155,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_6d1d40a3-3cf4-4886-ae54-f74553b44b01.webp?v=1784726930"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a.webp?v=1764299506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2.webp?v=1764299574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66.webp?v=1764299575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9.webp?v=1764299575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_e8a3c67d-aaf7-4125-84f7-fcffb6cd3813.webp?v=1784721759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_8c6a7f13-44cf-4eea-a730-819a27ccf136.webp?v=1784721759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_4c993818-4769-48b6-8ab6-d7caae68fc3d.webp?v=1784721760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_7cea2546-8e95-4a8a-97a0-a3a227d08a66.webp?v=1784721760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_2194488f-c7c6-4950-a112-b2884dd947b1.webp?v=1784725885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_bda38580-41f9-4f9c-8809-5a0c233e5247.webp?v=1784725886","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_43ddf9ae-92d9-4e5b-bbaf-22f9ca52e734.webp?v=1784725888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_3811e996-610e-42c1-9402-96843eec6e22.webp?v=1784725889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_b6a8ffba-378c-4ea8-9be8-5883f5178d69.webp?v=1784726928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_4af14ba8-24c4-4bfa-b219-f4832572c51e.webp?v=1784726929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_6d1d40a3-3cf4-4886-ae54-f74553b44b01.webp?v=1784726930"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a.webp?v=1764299506","options":["color"],"media":[{"alt":null,"id":26427907735651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a.webp?v=1764299506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a.webp?v=1764299506","width":2000},{"alt":null,"id":26428011085923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2.webp?v=1764299574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2.webp?v=1764299574","width":2000},{"alt":null,"id":26428011872355,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66.webp?v=1764299575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66.webp?v=1764299575","width":2000},{"alt":null,"id":26428013019235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9.webp?v=1764299575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9.webp?v=1764299575","width":2000},{"alt":null,"id":27853882720355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_e8a3c67d-aaf7-4125-84f7-fcffb6cd3813.webp?v=1784721759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_e8a3c67d-aaf7-4125-84f7-fcffb6cd3813.webp?v=1784721759","width":2000},{"alt":null,"id":27853883015267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_8c6a7f13-44cf-4eea-a730-819a27ccf136.webp?v=1784721759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_8c6a7f13-44cf-4eea-a730-819a27ccf136.webp?v=1784721759","width":2000},{"alt":null,"id":27853883342947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_4c993818-4769-48b6-8ab6-d7caae68fc3d.webp?v=1784721760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_4c993818-4769-48b6-8ab6-d7caae68fc3d.webp?v=1784721760","width":2000},{"alt":null,"id":27853883670627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_7cea2546-8e95-4a8a-97a0-a3a227d08a66.webp?v=1784721760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_7cea2546-8e95-4a8a-97a0-a3a227d08a66.webp?v=1784721760","width":2000},{"alt":null,"id":27855147171939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_2194488f-c7c6-4950-a112-b2884dd947b1.webp?v=1784725885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_2194488f-c7c6-4950-a112-b2884dd947b1.webp?v=1784725885","width":2000},{"alt":null,"id":27855148089443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_bda38580-41f9-4f9c-8809-5a0c233e5247.webp?v=1784725886"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_bda38580-41f9-4f9c-8809-5a0c233e5247.webp?v=1784725886","width":2000},{"alt":null,"id":27855149236323,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_43ddf9ae-92d9-4e5b-bbaf-22f9ca52e734.webp?v=1784725888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_43ddf9ae-92d9-4e5b-bbaf-22f9ca52e734.webp?v=1784725888","width":2000},{"alt":null,"id":27855150809187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_3811e996-610e-42c1-9402-96843eec6e22.webp?v=1784725889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_3811e996-610e-42c1-9402-96843eec6e22.webp?v=1784725889","width":2000},{"alt":null,"id":27855696199779,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927","width":2000},{"alt":null,"id":27855697805411,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_b6a8ffba-378c-4ea8-9be8-5883f5178d69.webp?v=1784726928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb20bbefea304b93b22c2cb58361137a3971b66_b6a8ffba-378c-4ea8-9be8-5883f5178d69.webp?v=1784726928","width":2000},{"alt":null,"id":27855698952291,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_4af14ba8-24c4-4bfa-b219-f4832572c51e.webp?v=1784726929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75472c4bc1eb97e3192ca65a7d6ab58f90ad0bf2_4af14ba8-24c4-4bfa-b219-f4832572c51e.webp?v=1784726929","width":2000},{"alt":null,"id":27855700525155,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_6d1d40a3-3cf4-4886-ae54-f74553b44b01.webp?v=1784726930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_6d1d40a3-3cf4-4886-ae54-f74553b44b01.webp?v=1784726930","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43861272133731,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01352J5-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351891046499,"product_id":7931592278115,"position":13,"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\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927","variant_ids":[43861272133731]},"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-BIR08","featured_media":{"alt":null,"id":27855696199779,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43861297430627,"title":"Graphite","option1":"Graphite","option2":null,"option3":null,"sku":"MXB0135269-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351895371875,"product_id":7931592278115,"position":16,"created_at":"2026-07-22T21:28:48+08:00","updated_at":"2026-07-22T21:28:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_6d1d40a3-3cf4-4886-ae54-f74553b44b01.webp?v=1784726930","variant_ids":[43861297430627]},"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-BIR08","featured_media":{"alt":null,"id":27855700525155,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61919495141745f630b42ad4a7f561873ed9727a_6d1d40a3-3cf4-4886-ae54-f74553b44b01.webp?v=1784726930"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43861272133731,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MXB01352J5-BIR08","requires_shipping":true,"taxable":true,"featured_image":{"id":36351891046499,"product_id":7931592278115,"position":13,"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\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927","variant_ids":[43861272133731]},"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-BIR08","featured_media":{"alt":null,"id":27855696199779,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4c3a32594ce7b646d35f6206bacd109e2fc41b9_30de7763-eab7-4555-8ba7-d159a5022105.webp?v=1784726927"}},"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: "停產"
}