$product = {"id":7921257709667,"title":"iPhone 14 Pro Mod NX 懶散兔與啾先生 貓貓","handle":"iphone-14-pro-mod-nx-ec82","description":null,"published_at":"2025-11-14T10:33:29+08:00","created_at":"2025-11-11T10:31:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 14 Pro","merge","reseller-bylobster"],"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":43831356031075,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC82","requires_shipping":true,"taxable":true,"featured_image":{"id":36054653468771,"product_id":7921257709667,"position":13,"created_at":"2026-06-23T09:57:11+08:00","updated_at":"2026-06-23T09:57:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832","variant_ids":[43831356031075]},"available":true,"name":"iPhone 14 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":"NPB01262J5-EC82","featured_media":{"alt":null,"id":27567503868003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831356194915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC82","requires_shipping":true,"taxable":true,"featured_image":{"id":36054653927523,"product_id":7921257709667,"position":14,"created_at":"2026-06-23T09:57:11+08:00","updated_at":"2026-06-23T09:57:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88_8f63ae34-1f64-4dd2-b200-d485fbbfe585.webp?v=1782179833","variant_ids":[43831356194915]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EC82","featured_media":{"alt":null,"id":27567504326755,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88_8f63ae34-1f64-4dd2-b200-d485fbbfe585.webp?v=1782179833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831356293219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC82","requires_shipping":true,"taxable":true,"featured_image":{"id":36054654353507,"product_id":7921257709667,"position":15,"created_at":"2026-06-23T09:57:12+08:00","updated_at":"2026-06-23T09:57:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc_3be87445-3e2e-41b0-9a87-2aebcaf18a5b.webp?v=1782179834","variant_ids":[43831356293219]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 貓貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EC82","featured_media":{"alt":null,"id":27567504752739,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc_3be87445-3e2e-41b0-9a87-2aebcaf18a5b.webp?v=1782179834"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8.webp?v=1762828300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94dc28a52eb888cba6208482dbf15224cf20efc.webp?v=1762828300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ec4b579d6f7713147df374e4d6cb19912c649d.webp?v=1762828301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8530b3d708a188a269fd9f192ed834aa61ea0e4.webp?v=1762828302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfef79154362d88aeeea7635bb4a1db826cb85b.webp?v=1762828303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37395947b3339f09318b0458f2829e22e3201bd0.webp?v=1762828304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd8b7a745dcb1c1d3eb5f2e28b07ad023cdf5c58.webp?v=1762828305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0452f826057e04e6e6dccec6fb7bbebb1f61dace.webp?v=1762828305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88.webp?v=1762828306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc.webp?v=1762828308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8615a592e6f1405b5c961b1a2e8d856d3f810d7.webp?v=1762828308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b5ae424830d59733708ec407bd14777e463abe.webp?v=1762828309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88_8f63ae34-1f64-4dd2-b200-d485fbbfe585.webp?v=1782179833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc_3be87445-3e2e-41b0-9a87-2aebcaf18a5b.webp?v=1782179834"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8.webp?v=1762828300","options":["color"],"media":[{"alt":null,"id":26352255664227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8.webp?v=1762828300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8.webp?v=1762828300","width":2000},{"alt":null,"id":26352255926371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94dc28a52eb888cba6208482dbf15224cf20efc.webp?v=1762828300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94dc28a52eb888cba6208482dbf15224cf20efc.webp?v=1762828300","width":2000},{"alt":null,"id":26352256057443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ec4b579d6f7713147df374e4d6cb19912c649d.webp?v=1762828301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4ec4b579d6f7713147df374e4d6cb19912c649d.webp?v=1762828301","width":2000},{"alt":null,"id":26352256352355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8530b3d708a188a269fd9f192ed834aa61ea0e4.webp?v=1762828302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8530b3d708a188a269fd9f192ed834aa61ea0e4.webp?v=1762828302","width":2000},{"alt":null,"id":26352256614499,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfef79154362d88aeeea7635bb4a1db826cb85b.webp?v=1762828303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfef79154362d88aeeea7635bb4a1db826cb85b.webp?v=1762828303","width":2000},{"alt":null,"id":26352256942179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37395947b3339f09318b0458f2829e22e3201bd0.webp?v=1762828304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37395947b3339f09318b0458f2829e22e3201bd0.webp?v=1762828304","width":2000},{"alt":null,"id":26352257171555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd8b7a745dcb1c1d3eb5f2e28b07ad023cdf5c58.webp?v=1762828305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd8b7a745dcb1c1d3eb5f2e28b07ad023cdf5c58.webp?v=1762828305","width":2000},{"alt":null,"id":26352257433699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0452f826057e04e6e6dccec6fb7bbebb1f61dace.webp?v=1762828305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0452f826057e04e6e6dccec6fb7bbebb1f61dace.webp?v=1762828305","width":2000},{"alt":null,"id":26352257728611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88.webp?v=1762828306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88.webp?v=1762828306","width":2000},{"alt":null,"id":26352258023523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc.webp?v=1762828308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc.webp?v=1762828308","width":2000},{"alt":null,"id":26352258351203,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8615a592e6f1405b5c961b1a2e8d856d3f810d7.webp?v=1762828308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8615a592e6f1405b5c961b1a2e8d856d3f810d7.webp?v=1762828308","width":2000},{"alt":null,"id":26352258678883,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b5ae424830d59733708ec407bd14777e463abe.webp?v=1762828309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06b5ae424830d59733708ec407bd14777e463abe.webp?v=1762828309","width":2000},{"alt":null,"id":27567503868003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832","width":2000},{"alt":null,"id":27567504326755,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88_8f63ae34-1f64-4dd2-b200-d485fbbfe585.webp?v=1782179833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88_8f63ae34-1f64-4dd2-b200-d485fbbfe585.webp?v=1782179833","width":2000},{"alt":null,"id":27567504752739,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc_3be87445-3e2e-41b0-9a87-2aebcaf18a5b.webp?v=1782179834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc_3be87445-3e2e-41b0-9a87-2aebcaf18a5b.webp?v=1782179834","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43831356031075,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC82","requires_shipping":true,"taxable":true,"featured_image":{"id":36054653468771,"product_id":7921257709667,"position":13,"created_at":"2026-06-23T09:57:11+08:00","updated_at":"2026-06-23T09:57:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832","variant_ids":[43831356031075]},"available":true,"name":"iPhone 14 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":"NPB01262J5-EC82","featured_media":{"alt":null,"id":27567503868003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831356194915,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC82","requires_shipping":true,"taxable":true,"featured_image":{"id":36054653927523,"product_id":7921257709667,"position":14,"created_at":"2026-06-23T09:57:11+08:00","updated_at":"2026-06-23T09:57:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88_8f63ae34-1f64-4dd2-b200-d485fbbfe585.webp?v=1782179833","variant_ids":[43831356194915]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 貓貓 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EC82","featured_media":{"alt":null,"id":27567504326755,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0da68559d01e617d6af8d215fd58c2a8f31c88_8f63ae34-1f64-4dd2-b200-d485fbbfe585.webp?v=1782179833"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831356293219,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC82","requires_shipping":true,"taxable":true,"featured_image":{"id":36054654353507,"product_id":7921257709667,"position":15,"created_at":"2026-06-23T09:57:12+08:00","updated_at":"2026-06-23T09:57:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc_3be87445-3e2e-41b0-9a87-2aebcaf18a5b.webp?v=1782179834","variant_ids":[43831356293219]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 貓貓 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EC82","featured_media":{"alt":null,"id":27567504752739,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae5609799b7870e525b9100c93804a0d669bfddc_3be87445-3e2e-41b0-9a87-2aebcaf18a5b.webp?v=1782179834"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43831356031075,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC82","requires_shipping":true,"taxable":true,"featured_image":{"id":36054653468771,"product_id":7921257709667,"position":13,"created_at":"2026-06-23T09:57:11+08:00","updated_at":"2026-06-23T09:57:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832","variant_ids":[43831356031075]},"available":true,"name":"iPhone 14 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":"NPB01262J5-EC82","featured_media":{"alt":null,"id":27567503868003,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a7b15b4f003ebe39ab7f0c8be395ccb5d1c33d8_d28047e7-a229-438a-9f7e-15324f02da8d.webp?v=1782179832"}},"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: "停產"
}