$product = {"id":7159363666019,"title":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers","handle":"iphone-14-plus-jellytint-pm10","description":null,"published_at":"2024-02-01T14:31:36+08:00","created_at":"2024-01-26T18:02:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-殼老爹","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nba","device-iPhone 14 Plus","merge","reseller-nba"],"price":128000,"price_min":128000,"price_max":128000,"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":41214510694499,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152335204451,"product_id":7159363666019,"position":11,"created_at":"2026-07-02T12:16:08+08:00","updated_at":"2026-07-02T12:16:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770","variant_ids":[41214510694499]},"available":true,"name":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-PM10","featured_media":{"alt":null,"id":27657208692835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214510760035,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012610H-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152335892579,"product_id":7159363666019,"position":12,"created_at":"2026-07-02T12:16:09+08:00","updated_at":"2026-07-02T12:16:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_6464e05c-ed87-4203-900b-d101e34e9c3c.webp?v=1782965771","variant_ids":[41214510760035]},"available":true,"name":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610H-PM10","featured_media":{"alt":null,"id":27657209315427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_6464e05c-ed87-4203-900b-d101e34e9c3c.webp?v=1782965771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214510891107,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012610I-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152336515171,"product_id":7159363666019,"position":13,"created_at":"2026-07-02T12:16:10+08:00","updated_at":"2026-07-02T12:16:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_9d3666ce-ed7c-4f1d-820b-f2b73e9884a2.webp?v=1782965772","variant_ids":[41214510891107]},"available":true,"name":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610I-PM10","featured_media":{"alt":null,"id":27657210003555,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_9d3666ce-ed7c-4f1d-820b-f2b73e9884a2.webp?v=1782965772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-261-PM10_1713b98f-a515-4432-b54f-05be07366e56.png?v=1706263377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916.webp?v=1782206835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7.webp?v=1782206836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242.webp?v=1782206837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_f8d5ff46-5e3b-48fd-9ffa-7db297d84f5d.webp?v=1782957774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_9c039564-75d7-4a3f-a561-c3d4cd7b26e2.webp?v=1782957777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_11c6dfad-cbec-49b3-8e1f-b0f667f13aaa.webp?v=1782957778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_409cd772-fe90-4561-928b-a0c8dbf70886.webp?v=1782961369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_b807837d-311c-4695-bb02-a0fd09195f4b.webp?v=1782961370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_c1d89258-c46c-41c8-88d3-47c32e04a490.webp?v=1782961371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_6464e05c-ed87-4203-900b-d101e34e9c3c.webp?v=1782965771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_9d3666ce-ed7c-4f1d-820b-f2b73e9884a2.webp?v=1782965772"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-261-PM10_1713b98f-a515-4432-b54f-05be07366e56.png?v=1706263377","options":["color"],"media":[{"alt":null,"id":23219619070051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-261-PM10_1713b98f-a515-4432-b54f-05be07366e56.png?v=1706263377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-261-PM10_1713b98f-a515-4432-b54f-05be07366e56.png?v=1706263377","width":2000},{"alt":null,"id":27575728832611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916.webp?v=1782206835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916.webp?v=1782206835","width":2000},{"alt":null,"id":27575729061987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7.webp?v=1782206836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7.webp?v=1782206836","width":2000},{"alt":null,"id":27575729389667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242.webp?v=1782206837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242.webp?v=1782206837","width":2000},{"alt":null,"id":27655914586211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_f8d5ff46-5e3b-48fd-9ffa-7db297d84f5d.webp?v=1782957774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_f8d5ff46-5e3b-48fd-9ffa-7db297d84f5d.webp?v=1782957774","width":2000},{"alt":null,"id":27655914881123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_9c039564-75d7-4a3f-a561-c3d4cd7b26e2.webp?v=1782957777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_9c039564-75d7-4a3f-a561-c3d4cd7b26e2.webp?v=1782957777","width":2000},{"alt":null,"id":27655915733091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_11c6dfad-cbec-49b3-8e1f-b0f667f13aaa.webp?v=1782957778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_11c6dfad-cbec-49b3-8e1f-b0f667f13aaa.webp?v=1782957778","width":2000},{"alt":null,"id":27656737128547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_409cd772-fe90-4561-928b-a0c8dbf70886.webp?v=1782961369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_409cd772-fe90-4561-928b-a0c8dbf70886.webp?v=1782961369","width":2000},{"alt":null,"id":27656737587299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_b807837d-311c-4695-bb02-a0fd09195f4b.webp?v=1782961370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_b807837d-311c-4695-bb02-a0fd09195f4b.webp?v=1782961370","width":2000},{"alt":null,"id":27656738013283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_c1d89258-c46c-41c8-88d3-47c32e04a490.webp?v=1782961371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_c1d89258-c46c-41c8-88d3-47c32e04a490.webp?v=1782961371","width":2000},{"alt":null,"id":27657208692835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770","width":2000},{"alt":null,"id":27657209315427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_6464e05c-ed87-4203-900b-d101e34e9c3c.webp?v=1782965771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_6464e05c-ed87-4203-900b-d101e34e9c3c.webp?v=1782965771","width":2000},{"alt":null,"id":27657210003555,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_9d3666ce-ed7c-4f1d-820b-f2b73e9884a2.webp?v=1782965772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_9d3666ce-ed7c-4f1d-820b-f2b73e9884a2.webp?v=1782965772","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41214510694499,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152335204451,"product_id":7159363666019,"position":11,"created_at":"2026-07-02T12:16:08+08:00","updated_at":"2026-07-02T12:16:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770","variant_ids":[41214510694499]},"available":true,"name":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-PM10","featured_media":{"alt":null,"id":27657208692835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214510760035,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012610H-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152335892579,"product_id":7159363666019,"position":12,"created_at":"2026-07-02T12:16:09+08:00","updated_at":"2026-07-02T12:16:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_6464e05c-ed87-4203-900b-d101e34e9c3c.webp?v=1782965771","variant_ids":[41214510760035]},"available":true,"name":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610H-PM10","featured_media":{"alt":null,"id":27657209315427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bac6e6faaba9f9d6813e0a0a776e1963bc6ee7_6464e05c-ed87-4203-900b-d101e34e9c3c.webp?v=1782965771"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41214510891107,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012610I-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152336515171,"product_id":7159363666019,"position":13,"created_at":"2026-07-02T12:16:10+08:00","updated_at":"2026-07-02T12:16:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_9d3666ce-ed7c-4f1d-820b-f2b73e9884a2.webp?v=1782965772","variant_ids":[41214510891107]},"available":true,"name":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610I-PM10","featured_media":{"alt":null,"id":27657210003555,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53229209ffdaf48d56286bbbaedce75cd938916_9d3666ce-ed7c-4f1d-820b-f2b73e9884a2.webp?v=1782965772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41214510694499,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-PM10","requires_shipping":true,"taxable":true,"featured_image":{"id":36152335204451,"product_id":7159363666019,"position":11,"created_at":"2026-07-02T12:16:08+08:00","updated_at":"2026-07-02T12:16:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770","variant_ids":[41214510694499]},"available":true,"name":"iPhone 14 Plus Clear NBA Logo-洛杉磯湖人 L.A. Lakers - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-PM10","featured_media":{"alt":null,"id":27657208692835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94023fa60110106df59cdd6a0520ecf96ced7242_b92274c6-d9eb-4d22-99f8-b97918770028.webp?v=1782965770"}},"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: "停產"
}