$product = {"id":7921206198371,"title":"iPhone 14 Pro Mod NX 懶散兔與啾先生 便當","handle":"iphone-14-pro-mod-nx-ec76","description":null,"published_at":"2025-11-14T10:42:42+08:00","created_at":"2025-11-11T10:19:58+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":43831154966627,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC76","requires_shipping":true,"taxable":true,"featured_image":{"id":36054651699299,"product_id":7921206198371,"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\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827","variant_ids":[43831154966627]},"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-EC76","featured_media":{"alt":null,"id":27567502098531,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831155130467,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC76","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652125283,"product_id":7921206198371,"position":15,"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\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22_8d9f9225-fb8b-432e-a969-e2d422030abd.webp?v=1782179828","variant_ids":[43831155130467]},"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-EC76","featured_media":{"alt":null,"id":27567502491747,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22_8d9f9225-fb8b-432e-a969-e2d422030abd.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831155228771,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC76","requires_shipping":true,"taxable":true,"featured_image":{"id":36054651928675,"product_id":7921206198371,"position":14,"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\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7_b7309b26-fc50-4ff9-9592-2fad7d6186d6.webp?v=1782179827","variant_ids":[43831155228771]},"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-EC76","featured_media":{"alt":null,"id":27567502327907,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7_b7309b26-fc50-4ff9-9592-2fad7d6186d6.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\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7.webp?v=1762827604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c833e1d01767318a38cd13ec798487b789122.webp?v=1762827605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b443615db8d2ba38dba6ac0bb387b997c389313c.webp?v=1762827606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c.webp?v=1762827606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28402a82bcf27cde24f9924ae604b4a4515fb2a1.webp?v=1762827607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9d608a274e898b0e38bc556c581b5da5a7896e.webp?v=1762827608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c0a13e33b1c4d5d71fabf6e1647b0c37c337e57.webp?v=1762827608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ecd5f4551c1c3eab8ab894faac3d3c3dc2b3f3.webp?v=1762827609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7036723c40d9970484d9232767c4ce133a407e.webp?v=1762827610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5515234345734262a7d80e04b098b855ccf6979.webp?v=1762827611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22.webp?v=1762827611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e05e6a49d62be59dccb9ee8d70ae39f201ca6b.webp?v=1762827612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7_b7309b26-fc50-4ff9-9592-2fad7d6186d6.webp?v=1782179827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22_8d9f9225-fb8b-432e-a969-e2d422030abd.webp?v=1782179828"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7.webp?v=1762827604","options":["color"],"media":[{"alt":null,"id":26352037757027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7.webp?v=1762827604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7.webp?v=1762827604","width":2000},{"alt":null,"id":26352038084707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c833e1d01767318a38cd13ec798487b789122.webp?v=1762827605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/766c833e1d01767318a38cd13ec798487b789122.webp?v=1762827605","width":2000},{"alt":null,"id":26352038248547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b443615db8d2ba38dba6ac0bb387b997c389313c.webp?v=1762827606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b443615db8d2ba38dba6ac0bb387b997c389313c.webp?v=1762827606","width":2000},{"alt":null,"id":26352038510691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c.webp?v=1762827606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c.webp?v=1762827606","width":2000},{"alt":null,"id":26352038772835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28402a82bcf27cde24f9924ae604b4a4515fb2a1.webp?v=1762827607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28402a82bcf27cde24f9924ae604b4a4515fb2a1.webp?v=1762827607","width":2000},{"alt":null,"id":26352039166051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9d608a274e898b0e38bc556c581b5da5a7896e.webp?v=1762827608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9d608a274e898b0e38bc556c581b5da5a7896e.webp?v=1762827608","width":2000},{"alt":null,"id":26352039362659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c0a13e33b1c4d5d71fabf6e1647b0c37c337e57.webp?v=1762827608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c0a13e33b1c4d5d71fabf6e1647b0c37c337e57.webp?v=1762827608","width":2000},{"alt":null,"id":26352039592035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ecd5f4551c1c3eab8ab894faac3d3c3dc2b3f3.webp?v=1762827609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1ecd5f4551c1c3eab8ab894faac3d3c3dc2b3f3.webp?v=1762827609","width":2000},{"alt":null,"id":26352039788643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7036723c40d9970484d9232767c4ce133a407e.webp?v=1762827610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7036723c40d9970484d9232767c4ce133a407e.webp?v=1762827610","width":2000},{"alt":null,"id":26352040050787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5515234345734262a7d80e04b098b855ccf6979.webp?v=1762827611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5515234345734262a7d80e04b098b855ccf6979.webp?v=1762827611","width":2000},{"alt":null,"id":26352040312931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22.webp?v=1762827611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22.webp?v=1762827611","width":2000},{"alt":null,"id":26352040575075,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e05e6a49d62be59dccb9ee8d70ae39f201ca6b.webp?v=1762827612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e05e6a49d62be59dccb9ee8d70ae39f201ca6b.webp?v=1762827612","width":2000},{"alt":null,"id":27567502098531,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827","width":2000},{"alt":null,"id":27567502327907,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7_b7309b26-fc50-4ff9-9592-2fad7d6186d6.webp?v=1782179827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7_b7309b26-fc50-4ff9-9592-2fad7d6186d6.webp?v=1782179827","width":2000},{"alt":null,"id":27567502491747,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22_8d9f9225-fb8b-432e-a969-e2d422030abd.webp?v=1782179828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22_8d9f9225-fb8b-432e-a969-e2d422030abd.webp?v=1782179828","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43831154966627,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC76","requires_shipping":true,"taxable":true,"featured_image":{"id":36054651699299,"product_id":7921206198371,"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\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827","variant_ids":[43831154966627]},"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-EC76","featured_media":{"alt":null,"id":27567502098531,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831155130467,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EC76","requires_shipping":true,"taxable":true,"featured_image":{"id":36054652125283,"product_id":7921206198371,"position":15,"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\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22_8d9f9225-fb8b-432e-a969-e2d422030abd.webp?v=1782179828","variant_ids":[43831155130467]},"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-EC76","featured_media":{"alt":null,"id":27567502491747,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2fbc1c3d55f8fe70efb1da7cc153ba4706b8e22_8d9f9225-fb8b-432e-a969-e2d422030abd.webp?v=1782179828"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43831155228771,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EC76","requires_shipping":true,"taxable":true,"featured_image":{"id":36054651928675,"product_id":7921206198371,"position":14,"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\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7_b7309b26-fc50-4ff9-9592-2fad7d6186d6.webp?v=1782179827","variant_ids":[43831155228771]},"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-EC76","featured_media":{"alt":null,"id":27567502327907,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3c6d23edc19cf818195c171b5d01fd0348bbf7_b7309b26-fc50-4ff9-9592-2fad7d6186d6.webp?v=1782179827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43831154966627,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EC76","requires_shipping":true,"taxable":true,"featured_image":{"id":36054651699299,"product_id":7921206198371,"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\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827","variant_ids":[43831154966627]},"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-EC76","featured_media":{"alt":null,"id":27567502098531,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27502a03d9e994593873b786d6dbff1e5bfee95c_38aae82c-b2a4-4891-8463-f86d5ad9e29e.webp?v=1782179827"}},"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: "停產"
}