$product = {"id":7911348404323,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊","handle":"iphone-14-pro-mod-nx-magsafe-printable-pos04","description":null,"published_at":"2025-11-05T10:25:16+08:00","created_at":"2025-11-04T11:01:27+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 14 Pro","merge","reseller-posterlad"],"price":110000,"price_min":110000,"price_max":110000,"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":43812390010979,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729489268835,"product_id":7911348404323,"position":10,"created_at":"2025-11-04T11:01:38+08:00","updated_at":"2025-11-04T11:01:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300","variant_ids":[43812390010979]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-POS04","featured_media":{"alt":null,"id":26297356845155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812390043747,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729486352483,"product_id":7911348404323,"position":1,"created_at":"2025-11-04T11:01:29+08:00","updated_at":"2025-11-04T11:01:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291","variant_ids":[43812390043747]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-POS04","featured_media":{"alt":null,"id":26297353928803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812390240355,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729488908387,"product_id":7911348404323,"position":9,"created_at":"2025-11-04T11:01:37+08:00","updated_at":"2025-11-04T11:01:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bb851f07e1b55e65583829908b9b9db2de2a70.webp?v=1762225299","variant_ids":[43812390240355]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-POS04","featured_media":{"alt":null,"id":26297356484707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bb851f07e1b55e65583829908b9b9db2de2a70.webp?v=1762225299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/583f061187283eb9874d65b048cd246eaec50550.webp?v=1762225292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8d94fd7a1c1581da75d297a63ece78952327fac.webp?v=1762225293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37dfee01acd597f1c761fe44322f334bf5aba6b7.webp?v=1762225294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98acb0d63c1d854814f23e8b4c2b4199df354f6.webp?v=1762225295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e50cda2f369212bf2a752ae4a55c8127654382.webp?v=1762225296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d045225887a5d329ab1f843f5eb4de50fb88962c.webp?v=1762225297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb602804ec1324e1b84fcee9dd69885e1bc2b80.webp?v=1762225298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bb851f07e1b55e65583829908b9b9db2de2a70.webp?v=1762225299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfa7e3eec6499d59e684c6228e50fce951cebad6.webp?v=1762225301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55a455b266fdcf032ad5593e357ff9b65f822b2.webp?v=1762225302"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291","options":["color"],"media":[{"alt":null,"id":26297353928803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291","width":2000},{"alt":null,"id":26297354223715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/583f061187283eb9874d65b048cd246eaec50550.webp?v=1762225292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/583f061187283eb9874d65b048cd246eaec50550.webp?v=1762225292","width":2000},{"alt":null,"id":26297354354787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8d94fd7a1c1581da75d297a63ece78952327fac.webp?v=1762225293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8d94fd7a1c1581da75d297a63ece78952327fac.webp?v=1762225293","width":2000},{"alt":null,"id":26297354649699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37dfee01acd597f1c761fe44322f334bf5aba6b7.webp?v=1762225294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37dfee01acd597f1c761fe44322f334bf5aba6b7.webp?v=1762225294","width":2000},{"alt":null,"id":26297354944611,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98acb0d63c1d854814f23e8b4c2b4199df354f6.webp?v=1762225295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d98acb0d63c1d854814f23e8b4c2b4199df354f6.webp?v=1762225295","width":2000},{"alt":null,"id":26297355272291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e50cda2f369212bf2a752ae4a55c8127654382.webp?v=1762225296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e50cda2f369212bf2a752ae4a55c8127654382.webp?v=1762225296","width":2000},{"alt":null,"id":26297355567203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d045225887a5d329ab1f843f5eb4de50fb88962c.webp?v=1762225297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d045225887a5d329ab1f843f5eb4de50fb88962c.webp?v=1762225297","width":2000},{"alt":null,"id":26297356124259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb602804ec1324e1b84fcee9dd69885e1bc2b80.webp?v=1762225298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb602804ec1324e1b84fcee9dd69885e1bc2b80.webp?v=1762225298","width":2000},{"alt":null,"id":26297356484707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bb851f07e1b55e65583829908b9b9db2de2a70.webp?v=1762225299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bb851f07e1b55e65583829908b9b9db2de2a70.webp?v=1762225299","width":2000},{"alt":null,"id":26297356845155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300","width":2000},{"alt":null,"id":26297357271139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfa7e3eec6499d59e684c6228e50fce951cebad6.webp?v=1762225301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfa7e3eec6499d59e684c6228e50fce951cebad6.webp?v=1762225301","width":2000},{"alt":null,"id":26297357631587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55a455b266fdcf032ad5593e357ff9b65f822b2.webp?v=1762225302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55a455b266fdcf032ad5593e357ff9b65f822b2.webp?v=1762225302","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43812390010979,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729489268835,"product_id":7911348404323,"position":10,"created_at":"2025-11-04T11:01:38+08:00","updated_at":"2025-11-04T11:01:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300","variant_ids":[43812390010979]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-POS04","featured_media":{"alt":null,"id":26297356845155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812390043747,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729486352483,"product_id":7911348404323,"position":1,"created_at":"2025-11-04T11:01:29+08:00","updated_at":"2025-11-04T11:01:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291","variant_ids":[43812390043747]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-POS04","featured_media":{"alt":null,"id":26297353928803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e51593062072e2b6dde516675b57bdb794ebc39.webp?v=1762225291"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43812390240355,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729488908387,"product_id":7911348404323,"position":9,"created_at":"2025-11-04T11:01:37+08:00","updated_at":"2025-11-04T11:01:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bb851f07e1b55e65583829908b9b9db2de2a70.webp?v=1762225299","variant_ids":[43812390240355]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-POS04","featured_media":{"alt":null,"id":26297356484707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bb851f07e1b55e65583829908b9b9db2de2a70.webp?v=1762225299"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43812390010979,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729489268835,"product_id":7911348404323,"position":10,"created_at":"2025-11-04T11:01:38+08:00","updated_at":"2025-11-04T11:01:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300","variant_ids":[43812390010979]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) PosterLad 正常很無聊 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-POS04","featured_media":{"alt":null,"id":26297356845155,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4869ceacf5878da81399eed739803699b6a39094.webp?v=1762225300"}},"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: "停產"
}