$product = {"id":7222339829859,"title":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics","handle":"iphone-13-jellytint-pm19","description":null,"published_at":"2024-03-15T15:42:47+08:00","created_at":"2024-03-13T14:41:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nba","device-iPhone 13","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":41403426046051,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152290181219,"product_id":7222339829859,"position":11,"created_at":"2026-07-02T12:13:59+08:00","updated_at":"2026-07-02T12:14:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641","variant_ids":[41403426046051]},"available":true,"name":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics - 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":"CCN012600G-PM19","featured_media":{"alt":null,"id":27657163636835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41403426111587,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152290967651,"product_id":7222339829859,"position":13,"created_at":"2026-07-02T12:14:01+08:00","updated_at":"2026-07-02T12:14:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_5a4889f1-97e1-40b2-9356-34c68f1336c8.webp?v=1782965642","variant_ids":[41403426111587]},"available":true,"name":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics - 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":"CCN012600I-PM19","featured_media":{"alt":null,"id":27657164488803,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_5a4889f1-97e1-40b2-9356-34c68f1336c8.webp?v=1782965642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41403426144355,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152290508899,"product_id":7222339829859,"position":12,"created_at":"2026-07-02T12:14:00+08:00","updated_at":"2026-07-02T12:14:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_274a9aba-c69e-47b5-9b20-de1352df71f7.webp?v=1782965642","variant_ids":[41403426144355]},"available":true,"name":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-PM19","featured_media":{"alt":null,"id":27657163997283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_274a9aba-c69e-47b5-9b20-de1352df71f7.webp?v=1782965642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-PM19_141451f3-773d-42d8-9fd4-5dacf785fe5c.png?v=1710312095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6.webp?v=1782204981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8.webp?v=1782204982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7.webp?v=1782204982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_c7b52186-eccb-45d8-8891-30bbc46e2dfc.webp?v=1782957460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_98b55c7c-cc5e-4e22-a1cb-af330f8d46d8.webp?v=1782957461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_e1e148b9-55ea-4bfb-a229-595792c9e4bb.webp?v=1782957462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_f29b1eef-adf6-4f85-90ab-256f282e25ae.webp?v=1782961252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_8eba738a-f4c8-43fb-9965-08babce29b0c.webp?v=1782961253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_a2aeac84-6fda-4304-9d56-4f01157b234c.webp?v=1782961254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_274a9aba-c69e-47b5-9b20-de1352df71f7.webp?v=1782965642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_5a4889f1-97e1-40b2-9356-34c68f1336c8.webp?v=1782965642"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-PM19_141451f3-773d-42d8-9fd4-5dacf785fe5c.png?v=1710312095","options":["color"],"media":[{"alt":null,"id":23438381154403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-PM19_141451f3-773d-42d8-9fd4-5dacf785fe5c.png?v=1710312095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/Clear-F5-260-PM19_141451f3-773d-42d8-9fd4-5dacf785fe5c.png?v=1710312095","width":2000},{"alt":null,"id":27575101816931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6.webp?v=1782204981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6.webp?v=1782204981","width":2000},{"alt":null,"id":27575102046307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8.webp?v=1782204982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8.webp?v=1782204982","width":2000},{"alt":null,"id":27575102341219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7.webp?v=1782204982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7.webp?v=1782204982","width":2000},{"alt":null,"id":27655818346595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_c7b52186-eccb-45d8-8891-30bbc46e2dfc.webp?v=1782957460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_c7b52186-eccb-45d8-8891-30bbc46e2dfc.webp?v=1782957460","width":2000},{"alt":null,"id":27655819001955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_98b55c7c-cc5e-4e22-a1cb-af330f8d46d8.webp?v=1782957461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_98b55c7c-cc5e-4e22-a1cb-af330f8d46d8.webp?v=1782957461","width":2000},{"alt":null,"id":27655819526243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_e1e148b9-55ea-4bfb-a229-595792c9e4bb.webp?v=1782957462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_e1e148b9-55ea-4bfb-a229-595792c9e4bb.webp?v=1782957462","width":2000},{"alt":null,"id":27656701116515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_f29b1eef-adf6-4f85-90ab-256f282e25ae.webp?v=1782961252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_f29b1eef-adf6-4f85-90ab-256f282e25ae.webp?v=1782961252","width":2000},{"alt":null,"id":27656701247587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_8eba738a-f4c8-43fb-9965-08babce29b0c.webp?v=1782961253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_8eba738a-f4c8-43fb-9965-08babce29b0c.webp?v=1782961253","width":2000},{"alt":null,"id":27656701476963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_a2aeac84-6fda-4304-9d56-4f01157b234c.webp?v=1782961254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_a2aeac84-6fda-4304-9d56-4f01157b234c.webp?v=1782961254","width":2000},{"alt":null,"id":27657163636835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641","width":2000},{"alt":null,"id":27657163997283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_274a9aba-c69e-47b5-9b20-de1352df71f7.webp?v=1782965642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_274a9aba-c69e-47b5-9b20-de1352df71f7.webp?v=1782965642","width":2000},{"alt":null,"id":27657164488803,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_5a4889f1-97e1-40b2-9356-34c68f1336c8.webp?v=1782965642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_5a4889f1-97e1-40b2-9356-34c68f1336c8.webp?v=1782965642","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41403426046051,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152290181219,"product_id":7222339829859,"position":11,"created_at":"2026-07-02T12:13:59+08:00","updated_at":"2026-07-02T12:14:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641","variant_ids":[41403426046051]},"available":true,"name":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics - 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":"CCN012600G-PM19","featured_media":{"alt":null,"id":27657163636835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41403426111587,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152290967651,"product_id":7222339829859,"position":13,"created_at":"2026-07-02T12:14:01+08:00","updated_at":"2026-07-02T12:14:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_5a4889f1-97e1-40b2-9356-34c68f1336c8.webp?v=1782965642","variant_ids":[41403426111587]},"available":true,"name":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics - 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":"CCN012600I-PM19","featured_media":{"alt":null,"id":27657164488803,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb1744b66192c913530685463344ba4937e3b5b8_5a4889f1-97e1-40b2-9356-34c68f1336c8.webp?v=1782965642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41403426144355,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152290508899,"product_id":7222339829859,"position":12,"created_at":"2026-07-02T12:14:00+08:00","updated_at":"2026-07-02T12:14:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_274a9aba-c69e-47b5-9b20-de1352df71f7.webp?v=1782965642","variant_ids":[41403426144355]},"available":true,"name":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-PM19","featured_media":{"alt":null,"id":27657163997283,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abdd4d2f2b180a907624a176dc47a0b15a4f60c7_274a9aba-c69e-47b5-9b20-de1352df71f7.webp?v=1782965642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41403426046051,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-PM19","requires_shipping":true,"taxable":true,"featured_image":{"id":36152290181219,"product_id":7222339829859,"position":11,"created_at":"2026-07-02T12:13:59+08:00","updated_at":"2026-07-02T12:14:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641","variant_ids":[41403426046051]},"available":true,"name":"iPhone 13 Clear NBA Logo-波士頓塞爾提克 Boston Celtics - 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":"CCN012600G-PM19","featured_media":{"alt":null,"id":27657163636835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/facb975031be39d0135a46ca020f3a2e58b424c6_e92ce1c2-a252-43be-8b7b-4787f33cff95.webp?v=1782965641"}},"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: "停產"
}