$product = {"id":7921215701091,"title":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey","handle":"iphone-14-pro-mod-nx-ec77","description":null,"published_at":"2025-11-14T10:41:01+08:00","created_at":"2025-11-11T10:22:15+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":43831191175267,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC77","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652321891,"product_id":7921215701091,"position":15,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829","variant_ids":[43831191175267]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey - 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-EC77","featured_media":{"alt":null,"id":27567502721123,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831191339107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC77","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652059747,"product_id":7921215701091,"position":14,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492_4c82962f-2b6d-42cf-aa3d-7da11306bd41.webp?v=1782179828","variant_ids":[43831191339107]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey - 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-EC77","featured_media":{"alt":null,"id":27567502458979,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492_4c82962f-2b6d-42cf-aa3d-7da11306bd41.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831191437411,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC77","requires_shipping":true,"taxable":true,"featured_image":{"id":36054651797603,"product_id":7921215701091,"position":13,"created_at":"2026-06-23T09:57:05+08:00","updated_at":"2026-06-23T09:57:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d_7b80aa8f-f524-47bc-ab04-67b1f237e2b9.webp?v=1782179827","variant_ids":[43831191437411]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey - 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-EC77","featured_media":{"alt":null,"id":27567502196835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d_7b80aa8f-f524-47bc-ab04-67b1f237e2b9.webp?v=1782179827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de8acd5a5de0d65c8e0ebdfdfef7ce46043854e7.webp?v=1762827739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492.webp?v=1762827739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0edfd44759d137f0a706d3da015fe04d2329792.webp?v=1762827739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5c72e48b2e9b19ad8123ef155ad22aac2e6ca1.webp?v=1762827742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a45947737c4ee52bdcbde1704588ab874fd5adc1.webp?v=1762827743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d.webp?v=1762827743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904585e99940ef36804827992724a015e44c498b.webp?v=1762827744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bccb4500ebd4db42c66fb0e0783882a64f7d7393.webp?v=1762827745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc.webp?v=1762827746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000b18a49c72780bdad25221a4fa217837281117.webp?v=1762827746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9050229086ea7b3d92b96eff9d43276011a15d.webp?v=1762827747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb9d806f484dbcf8531662c20b513a326f1c27ec.webp?v=1762827747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d_7b80aa8f-f524-47bc-ab04-67b1f237e2b9.webp?v=1782179827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492_4c82962f-2b6d-42cf-aa3d-7da11306bd41.webp?v=1782179828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de8acd5a5de0d65c8e0ebdfdfef7ce46043854e7.webp?v=1762827739","options":["color"],"media":[{"alt":null,"id":26352079044707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de8acd5a5de0d65c8e0ebdfdfef7ce46043854e7.webp?v=1762827739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de8acd5a5de0d65c8e0ebdfdfef7ce46043854e7.webp?v=1762827739","width":2000},{"alt":null,"id":26352079110243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492.webp?v=1762827739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492.webp?v=1762827739","width":2000},{"alt":null,"id":26352079241315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0edfd44759d137f0a706d3da015fe04d2329792.webp?v=1762827739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0edfd44759d137f0a706d3da015fe04d2329792.webp?v=1762827739","width":2000},{"alt":null,"id":26352079962211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5c72e48b2e9b19ad8123ef155ad22aac2e6ca1.webp?v=1762827742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5c72e48b2e9b19ad8123ef155ad22aac2e6ca1.webp?v=1762827742","width":2000},{"alt":null,"id":26352080191587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a45947737c4ee52bdcbde1704588ab874fd5adc1.webp?v=1762827743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a45947737c4ee52bdcbde1704588ab874fd5adc1.webp?v=1762827743","width":2000},{"alt":null,"id":26352080420963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d.webp?v=1762827743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d.webp?v=1762827743","width":2000},{"alt":null,"id":26352080846947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904585e99940ef36804827992724a015e44c498b.webp?v=1762827744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904585e99940ef36804827992724a015e44c498b.webp?v=1762827744","width":2000},{"alt":null,"id":26352081141859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bccb4500ebd4db42c66fb0e0783882a64f7d7393.webp?v=1762827745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bccb4500ebd4db42c66fb0e0783882a64f7d7393.webp?v=1762827745","width":2000},{"alt":null,"id":26352081338467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc.webp?v=1762827746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc.webp?v=1762827746","width":2000},{"alt":null,"id":26352081436771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000b18a49c72780bdad25221a4fa217837281117.webp?v=1762827746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/000b18a49c72780bdad25221a4fa217837281117.webp?v=1762827746","width":2000},{"alt":null,"id":26352081600611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9050229086ea7b3d92b96eff9d43276011a15d.webp?v=1762827747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9050229086ea7b3d92b96eff9d43276011a15d.webp?v=1762827747","width":2000},{"alt":null,"id":26352081829987,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb9d806f484dbcf8531662c20b513a326f1c27ec.webp?v=1762827747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb9d806f484dbcf8531662c20b513a326f1c27ec.webp?v=1762827747","width":2000},{"alt":null,"id":27567502196835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d_7b80aa8f-f524-47bc-ab04-67b1f237e2b9.webp?v=1782179827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d_7b80aa8f-f524-47bc-ab04-67b1f237e2b9.webp?v=1782179827","width":2000},{"alt":null,"id":27567502458979,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492_4c82962f-2b6d-42cf-aa3d-7da11306bd41.webp?v=1782179828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492_4c82962f-2b6d-42cf-aa3d-7da11306bd41.webp?v=1782179828","width":2000},{"alt":null,"id":27567502721123,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43831191175267,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC77","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652321891,"product_id":7921215701091,"position":15,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829","variant_ids":[43831191175267]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey - 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-EC77","featured_media":{"alt":null,"id":27567502721123,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831191339107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC77","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652059747,"product_id":7921215701091,"position":14,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492_4c82962f-2b6d-42cf-aa3d-7da11306bd41.webp?v=1782179828","variant_ids":[43831191339107]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey - 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-EC77","featured_media":{"alt":null,"id":27567502458979,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1de4964d36516390ae69b90a25c628888e3e7492_4c82962f-2b6d-42cf-aa3d-7da11306bd41.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831191437411,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC77","requires_shipping":true,"taxable":true,"featured_image":{"id":36054651797603,"product_id":7921215701091,"position":13,"created_at":"2026-06-23T09:57:05+08:00","updated_at":"2026-06-23T09:57:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d_7b80aa8f-f524-47bc-ab04-67b1f237e2b9.webp?v=1782179827","variant_ids":[43831191437411]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey - 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-EC77","featured_media":{"alt":null,"id":27567502196835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb28a35a122f4fa1f14e0274c4356741c6852f5d_7b80aa8f-f524-47bc-ab04-67b1f237e2b9.webp?v=1782179827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43831191175267,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC77","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652321891,"product_id":7921215701091,"position":15,"created_at":"2026-06-23T09:57:06+08:00","updated_at":"2026-06-23T09:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829","variant_ids":[43831191175267]},"available":true,"name":"iPhone 14 Pro Mod NX 懶散兔與啾先生 Journey - 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-EC77","featured_media":{"alt":null,"id":27567502721123,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c416e831bb3a1eb8d761c1bb2328c23b12879fc_d481b467-93ba-4155-8afe-c4496b17bb26.webp?v=1782179829"}},"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: "停產"
}