$product = {"id":7944307081315,"title":"iPhone 14 Pro Mod NX 右手超人 靈感","handle":"iphone-14-pro-mod-nx-yoh04","description":null,"published_at":"2025-12-24T10:17:30+08:00","created_at":"2025-12-23T16:54:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-yohand","device-iPhone 14 Pro","merge","reseller-yohand"],"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":43908011393123,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002997768291,"product_id":7944307081315,"position":10,"created_at":"2025-12-23T16:54:56+08:00","updated_at":"2025-12-23T16:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098","variant_ids":[43908011393123]},"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-YOH04","featured_media":{"alt":null,"id":26563288629347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908026302563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002997866595,"product_id":7944307081315,"position":11,"created_at":"2025-12-23T16:54:56+08:00","updated_at":"2025-12-23T16:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4143ab6a521240c5e02e43adf243f9db04225f57.webp?v=1766480098","variant_ids":[43908026302563]},"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-YOH04","featured_media":{"alt":null,"id":26563288727651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4143ab6a521240c5e02e43adf243f9db04225f57.webp?v=1766480098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908030759011,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002994491491,"product_id":7944307081315,"position":2,"created_at":"2025-12-23T16:54:49+08:00","updated_at":"2025-12-23T16:54:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49aa84adc57292a43213c3cbc94858fef14c4938.webp?v=1766480091","variant_ids":[43908030759011]},"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-YOH04","featured_media":{"alt":null,"id":26563285352547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49aa84adc57292a43213c3cbc94858fef14c4938.webp?v=1766480091"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b10ba902f3d8641bb711e8c8954d7e71fc4eb233.webp?v=1766480090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49aa84adc57292a43213c3cbc94858fef14c4938.webp?v=1766480091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f43d04c0868a622e35e9e880765632e29d77cf.webp?v=1766480092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fe85e8eb8f1ec467a5b459a41d1a4678f07056.webp?v=1766480093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba9a33e462b41697bdb7f053319d37fb3d9eeca.webp?v=1766480093","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59799c1f69b4a915e978991023a9aa38d35f82ff.webp?v=1766480094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2707c0c2a5c5f5d50d73c05d602330e49e970e5b.webp?v=1766480095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc7b53e4042199c9b81ea7adaba075804d005d6.webp?v=1766480097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad4f66155c1f27b1f96bfa8938e7d652e7ebcf8.webp?v=1766480097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4143ab6a521240c5e02e43adf243f9db04225f57.webp?v=1766480098"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b10ba902f3d8641bb711e8c8954d7e71fc4eb233.webp?v=1766480090","options":["color"],"media":[{"alt":null,"id":26563284336739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b10ba902f3d8641bb711e8c8954d7e71fc4eb233.webp?v=1766480090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b10ba902f3d8641bb711e8c8954d7e71fc4eb233.webp?v=1766480090","width":2000},{"alt":null,"id":26563285352547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49aa84adc57292a43213c3cbc94858fef14c4938.webp?v=1766480091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49aa84adc57292a43213c3cbc94858fef14c4938.webp?v=1766480091","width":2000},{"alt":null,"id":26563285909603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f43d04c0868a622e35e9e880765632e29d77cf.webp?v=1766480092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0f43d04c0868a622e35e9e880765632e29d77cf.webp?v=1766480092","width":2000},{"alt":null,"id":26563286433891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fe85e8eb8f1ec467a5b459a41d1a4678f07056.webp?v=1766480093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93fe85e8eb8f1ec467a5b459a41d1a4678f07056.webp?v=1766480093","width":2000},{"alt":null,"id":26563287089251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba9a33e462b41697bdb7f053319d37fb3d9eeca.webp?v=1766480093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba9a33e462b41697bdb7f053319d37fb3d9eeca.webp?v=1766480093","width":2000},{"alt":null,"id":26563287580771,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59799c1f69b4a915e978991023a9aa38d35f82ff.webp?v=1766480094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59799c1f69b4a915e978991023a9aa38d35f82ff.webp?v=1766480094","width":2000},{"alt":null,"id":26563288039523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2707c0c2a5c5f5d50d73c05d602330e49e970e5b.webp?v=1766480095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2707c0c2a5c5f5d50d73c05d602330e49e970e5b.webp?v=1766480095","width":2000},{"alt":null,"id":26563288203363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc7b53e4042199c9b81ea7adaba075804d005d6.webp?v=1766480097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc7b53e4042199c9b81ea7adaba075804d005d6.webp?v=1766480097","width":2000},{"alt":null,"id":26563288531043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad4f66155c1f27b1f96bfa8938e7d652e7ebcf8.webp?v=1766480097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad4f66155c1f27b1f96bfa8938e7d652e7ebcf8.webp?v=1766480097","width":2000},{"alt":null,"id":26563288629347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098","width":2000},{"alt":null,"id":26563288727651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4143ab6a521240c5e02e43adf243f9db04225f57.webp?v=1766480098"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4143ab6a521240c5e02e43adf243f9db04225f57.webp?v=1766480098","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43908011393123,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002997768291,"product_id":7944307081315,"position":10,"created_at":"2025-12-23T16:54:56+08:00","updated_at":"2025-12-23T16:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098","variant_ids":[43908011393123]},"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-YOH04","featured_media":{"alt":null,"id":26563288629347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908026302563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002997866595,"product_id":7944307081315,"position":11,"created_at":"2025-12-23T16:54:56+08:00","updated_at":"2025-12-23T16:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4143ab6a521240c5e02e43adf243f9db04225f57.webp?v=1766480098","variant_ids":[43908026302563]},"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-YOH04","featured_media":{"alt":null,"id":26563288727651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4143ab6a521240c5e02e43adf243f9db04225f57.webp?v=1766480098"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43908030759011,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002994491491,"product_id":7944307081315,"position":2,"created_at":"2025-12-23T16:54:49+08:00","updated_at":"2025-12-23T16:54:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49aa84adc57292a43213c3cbc94858fef14c4938.webp?v=1766480091","variant_ids":[43908030759011]},"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-YOH04","featured_media":{"alt":null,"id":26563285352547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49aa84adc57292a43213c3cbc94858fef14c4938.webp?v=1766480091"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43908011393123,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-YOH04","requires_shipping":true,"taxable":true,"featured_image":{"id":35002997768291,"product_id":7944307081315,"position":10,"created_at":"2025-12-23T16:54:56+08:00","updated_at":"2025-12-23T16:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098","variant_ids":[43908011393123]},"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-YOH04","featured_media":{"alt":null,"id":26563288629347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41b6c2d3d18e0d7ca9a7b372436aca6a80856841.webp?v=1766480098"}},"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: "停產"
}