$product = {"id":7937646067811,"title":"iPhone 14 Plus Mod NX Jin Young Choi 幸運小精靈","handle":"iphone-14-plus-mod-nx-cjy09","description":null,"published_at":"2025-12-12T09:34:14+08:00","created_at":"2025-12-11T10:10:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-jychoioioi","device-iPhone 14 Plus","merge","reseller-jychoioioi"],"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":43883314053219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY09","requires_shipping":true,"taxable":true,"featured_image":{"id":34931275071587,"product_id":7937646067811,"position":8,"created_at":"2025-12-11T10:10:17+08:00","updated_at":"2025-12-11T10:10:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019","variant_ids":[43883314053219]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 幸運小精靈 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY09","featured_media":{"alt":null,"id":26493649092707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0213a8a0ac98d794584e24655ef36254264eb0.webp?v=1765419015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0660fddca52070433419e1ee0d3b62de7112113e.webp?v=1765419016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede8b34093997b4f154ec913def5d776df3f642b.webp?v=1765419016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca2782293777c91687e600be591f0ce7e12ee36.webp?v=1765419017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13737481dfeae85b36c24e32fb244cc5e90f71b.webp?v=1765419017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86bef9e6d3f573c21084f69f243cbaeece7a0c42.webp?v=1765419018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c90130b1c74b21fc93279241172544ca6c85ca.webp?v=1765419018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0def76c342916bc32acf19b78f9367fb402b97e5.webp?v=1765419019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a0e4636667bcbcf825348459dd85f56c7b8763.webp?v=1765419020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d9f8e15ed79f710e3892249e369edb9b2a7522.webp?v=1765419020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f9c9cebdce5a99e5b7cbe6788eed0f1f475d3f7.webp?v=1765419021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba615fdd468da6a1b3500af41031200bd66348f.webp?v=1765419021"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0213a8a0ac98d794584e24655ef36254264eb0.webp?v=1765419015","options":["color"],"media":[{"alt":null,"id":26493647683683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0213a8a0ac98d794584e24655ef36254264eb0.webp?v=1765419015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0213a8a0ac98d794584e24655ef36254264eb0.webp?v=1765419015","width":2000},{"alt":null,"id":26493647814755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0660fddca52070433419e1ee0d3b62de7112113e.webp?v=1765419016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0660fddca52070433419e1ee0d3b62de7112113e.webp?v=1765419016","width":2000},{"alt":null,"id":26493647978595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede8b34093997b4f154ec913def5d776df3f642b.webp?v=1765419016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ede8b34093997b4f154ec913def5d776df3f642b.webp?v=1765419016","width":2000},{"alt":null,"id":26493648207971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca2782293777c91687e600be591f0ce7e12ee36.webp?v=1765419017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca2782293777c91687e600be591f0ce7e12ee36.webp?v=1765419017","width":2000},{"alt":null,"id":26493648437347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13737481dfeae85b36c24e32fb244cc5e90f71b.webp?v=1765419017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13737481dfeae85b36c24e32fb244cc5e90f71b.webp?v=1765419017","width":2000},{"alt":null,"id":26493648666723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86bef9e6d3f573c21084f69f243cbaeece7a0c42.webp?v=1765419018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86bef9e6d3f573c21084f69f243cbaeece7a0c42.webp?v=1765419018","width":2000},{"alt":null,"id":26493648928867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c90130b1c74b21fc93279241172544ca6c85ca.webp?v=1765419018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c90130b1c74b21fc93279241172544ca6c85ca.webp?v=1765419018","width":2000},{"alt":null,"id":26493649092707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019","width":2000},{"alt":null,"id":26493649354851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0def76c342916bc32acf19b78f9367fb402b97e5.webp?v=1765419019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0def76c342916bc32acf19b78f9367fb402b97e5.webp?v=1765419019","width":2000},{"alt":null,"id":26493649616995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a0e4636667bcbcf825348459dd85f56c7b8763.webp?v=1765419020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69a0e4636667bcbcf825348459dd85f56c7b8763.webp?v=1765419020","width":2000},{"alt":null,"id":26493650042979,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d9f8e15ed79f710e3892249e369edb9b2a7522.webp?v=1765419020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21d9f8e15ed79f710e3892249e369edb9b2a7522.webp?v=1765419020","width":2000},{"alt":null,"id":26493650239587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f9c9cebdce5a99e5b7cbe6788eed0f1f475d3f7.webp?v=1765419021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f9c9cebdce5a99e5b7cbe6788eed0f1f475d3f7.webp?v=1765419021","width":2000},{"alt":null,"id":26493650370659,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba615fdd468da6a1b3500af41031200bd66348f.webp?v=1765419021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bba615fdd468da6a1b3500af41031200bd66348f.webp?v=1765419021","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43883314053219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY09","requires_shipping":true,"taxable":true,"featured_image":{"id":34931275071587,"product_id":7937646067811,"position":8,"created_at":"2025-12-11T10:10:17+08:00","updated_at":"2025-12-11T10:10:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019","variant_ids":[43883314053219]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 幸運小精靈 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY09","featured_media":{"alt":null,"id":26493649092707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43883314053219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-CJY09","requires_shipping":true,"taxable":true,"featured_image":{"id":34931275071587,"product_id":7937646067811,"position":8,"created_at":"2025-12-11T10:10:17+08:00","updated_at":"2025-12-11T10:10:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019","variant_ids":[43883314053219]},"available":true,"name":"iPhone 14 Plus Mod NX Jin Young Choi 幸運小精靈 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-CJY09","featured_media":{"alt":null,"id":26493649092707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a47a1bb78c0a1e205e92df2a6770710a37ce7886.webp?v=1765419019"}},"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: "停產"
}