$product = {"id":7998334206051,"title":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula","handle":"iphone-12-mini-solidsuit-classic-xk50","description":null,"published_at":"2026-04-20T12:11:07+08:00","created_at":"2026-04-20T09:44:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 12 Mini","merge","reseller-nasa"],"price":83000,"price_min":83000,"price_max":83000,"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":44126037999715,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK50","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616944739,"product_id":7998334206051,"position":9,"created_at":"2026-07-14T09:48:52+08:00","updated_at":"2026-07-14T09:48:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734","variant_ids":[44126037999715]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK50","featured_media":{"alt":null,"id":27758731886691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126047109219,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK50","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619435107,"product_id":7998334206051,"position":13,"created_at":"2026-07-14T09:49:10+08:00","updated_at":"2026-07-14T09:49:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454_8a87b827-b24a-4130-a11e-81ebb9cf9193.webp?v=1783993752","variant_ids":[44126047109219]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-XK50","featured_media":{"alt":null,"id":27758734377059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454_8a87b827-b24a-4130-a11e-81ebb9cf9193.webp?v=1783993752"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126049173603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK50","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619697251,"product_id":7998334206051,"position":14,"created_at":"2026-07-14T09:49:14+08:00","updated_at":"2026-07-14T09:49:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d_7e9565fb-7c35-4135-9ca9-442b355eb44d.webp?v=1783993756","variant_ids":[44126049173603]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-XK50","featured_media":{"alt":null,"id":27758734606435,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d_7e9565fb-7c35-4135-9ca9-442b355eb44d.webp?v=1783993756"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0fdca7036ec8e7cbe8ed0a8453553edeb6a4be.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf214754794cf78cc6529a7b2a64553ae1388b6.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b58b38ad5bba67dee9f64d8a6edf80b0605a11b.webp?v=1776649506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d.webp?v=1776649506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348ffbf867726efbbeccab3f504dffd6cf581f9f.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454.webp?v=1776649508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350092175f7ab85b615418633f274954160d0c90.webp?v=1776649509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf214754794cf78cc6529a7b2a64553ae1388b6_645ff9b9-830b-4049-8217-42047ce71c0b.webp?v=1783993736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0fdca7036ec8e7cbe8ed0a8453553edeb6a4be_71b7ac2e-ef4e-4ddd-ad15-70567cea539c.webp?v=1783993738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350092175f7ab85b615418633f274954160d0c90_b11e4bc1-d013-446a-b797-7db4e4af891d.webp?v=1783993740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454_8a87b827-b24a-4130-a11e-81ebb9cf9193.webp?v=1783993752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d_7e9565fb-7c35-4135-9ca9-442b355eb44d.webp?v=1783993756"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0fdca7036ec8e7cbe8ed0a8453553edeb6a4be.webp?v=1776649504","options":["color"],"media":[{"alt":null,"id":27200624722019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0fdca7036ec8e7cbe8ed0a8453553edeb6a4be.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0fdca7036ec8e7cbe8ed0a8453553edeb6a4be.webp?v=1776649504","width":2000},{"alt":null,"id":27200625311843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf214754794cf78cc6529a7b2a64553ae1388b6.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf214754794cf78cc6529a7b2a64553ae1388b6.webp?v=1776649504","width":2000},{"alt":null,"id":27200625803363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c.webp?v=1776649505","width":2000},{"alt":null,"id":27200626393187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b58b38ad5bba67dee9f64d8a6edf80b0605a11b.webp?v=1776649506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b58b38ad5bba67dee9f64d8a6edf80b0605a11b.webp?v=1776649506","width":2000},{"alt":null,"id":27200626884707,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d.webp?v=1776649506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d.webp?v=1776649506","width":2000},{"alt":null,"id":27200627376227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348ffbf867726efbbeccab3f504dffd6cf581f9f.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348ffbf867726efbbeccab3f504dffd6cf581f9f.webp?v=1776649507","width":2000},{"alt":null,"id":27200627802211,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454.webp?v=1776649508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454.webp?v=1776649508","width":2000},{"alt":null,"id":27200628129891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350092175f7ab85b615418633f274954160d0c90.webp?v=1776649509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350092175f7ab85b615418633f274954160d0c90.webp?v=1776649509","width":2000},{"alt":null,"id":27758731886691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734","width":2000},{"alt":null,"id":27758732804195,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf214754794cf78cc6529a7b2a64553ae1388b6_645ff9b9-830b-4049-8217-42047ce71c0b.webp?v=1783993736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf214754794cf78cc6529a7b2a64553ae1388b6_645ff9b9-830b-4049-8217-42047ce71c0b.webp?v=1783993736","width":2000},{"alt":null,"id":27758733426787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0fdca7036ec8e7cbe8ed0a8453553edeb6a4be_71b7ac2e-ef4e-4ddd-ad15-70567cea539c.webp?v=1783993738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0fdca7036ec8e7cbe8ed0a8453553edeb6a4be_71b7ac2e-ef4e-4ddd-ad15-70567cea539c.webp?v=1783993738","width":2000},{"alt":null,"id":27758734049379,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350092175f7ab85b615418633f274954160d0c90_b11e4bc1-d013-446a-b797-7db4e4af891d.webp?v=1783993740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/350092175f7ab85b615418633f274954160d0c90_b11e4bc1-d013-446a-b797-7db4e4af891d.webp?v=1783993740","width":2000},{"alt":null,"id":27758734377059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454_8a87b827-b24a-4130-a11e-81ebb9cf9193.webp?v=1783993752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454_8a87b827-b24a-4130-a11e-81ebb9cf9193.webp?v=1783993752","width":2000},{"alt":null,"id":27758734606435,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d_7e9565fb-7c35-4135-9ca9-442b355eb44d.webp?v=1783993756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d_7e9565fb-7c35-4135-9ca9-442b355eb44d.webp?v=1783993756","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":44126037999715,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK50","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616944739,"product_id":7998334206051,"position":9,"created_at":"2026-07-14T09:48:52+08:00","updated_at":"2026-07-14T09:48:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734","variant_ids":[44126037999715]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK50","featured_media":{"alt":null,"id":27758731886691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126047109219,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK50","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619435107,"product_id":7998334206051,"position":13,"created_at":"2026-07-14T09:49:10+08:00","updated_at":"2026-07-14T09:49:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454_8a87b827-b24a-4130-a11e-81ebb9cf9193.webp?v=1783993752","variant_ids":[44126047109219]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-XK50","featured_media":{"alt":null,"id":27758734377059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e3a229531fda12239d05b8cac614ad278fa454_8a87b827-b24a-4130-a11e-81ebb9cf9193.webp?v=1783993752"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126049173603,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK50","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619697251,"product_id":7998334206051,"position":14,"created_at":"2026-07-14T09:49:14+08:00","updated_at":"2026-07-14T09:49:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d_7e9565fb-7c35-4135-9ca9-442b355eb44d.webp?v=1783993756","variant_ids":[44126049173603]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-XK50","featured_media":{"alt":null,"id":27758734606435,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41d3d0f1969ccb6a33420663e1e381448367873d_7e9565fb-7c35-4135-9ca9-442b355eb44d.webp?v=1783993756"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":44126037999715,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK50","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616944739,"product_id":7998334206051,"position":9,"created_at":"2026-07-14T09:48:52+08:00","updated_at":"2026-07-14T09:48:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734","variant_ids":[44126037999715]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Cosmic Cliffs In Carina Nebula - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK50","featured_media":{"alt":null,"id":27758731886691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b343ddfd3eab1a871c04e2b7a9e1661ae83c37c_b3e7d719-8efd-466c-9c55-cfd1d7422ade.webp?v=1783993734"}},"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: "停產"
}