$product = {"id":7911293747299,"title":"iPhone 14 Plus Mod NX PosterLad 色彩之雨","handle":"iphone-14-plus-mod-nx-printable-pos02","description":null,"published_at":"2025-11-05T10:32:50+08:00","created_at":"2025-11-04T10:52:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 14 Plus","merge","reseller-posterlad"],"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":43812230627427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS02","requires_shipping":true,"taxable":true,"featured_image":{"id":34729342894179,"product_id":7911293747299,"position":12,"created_at":"2025-11-04T10:52:33+08:00","updated_at":"2025-11-04T10:52:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755","variant_ids":[43812230627427]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad 色彩之雨 - 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-POS02","featured_media":{"alt":null,"id":26297211093091,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f45e83dd74a7a5da30d332698c767e5bdfba70a4.webp?v=1762224745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708ccb56ce6d078228c16d7a8c14f1841cd8d817.webp?v=1762224745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d05b8661687743e30694d96b3ec26fe72201b83.webp?v=1762224746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d610d768022a4af758632f7dc45bc751ba93a2.webp?v=1762224747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e185bf06cc81e8c4c00a26ef4107f9c1bec57.webp?v=1762224749","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a4ed5f407814ee3fbef6dd046d4fc121356265b.webp?v=1762224749","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2660aece532aaa7c1a55b5a26d9757558954fe8f.webp?v=1762224750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7a68294b549bba1f5ff3e902b9648406eab29f6.webp?v=1762224752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1783f4a7dc81ebbba4d1d0ba6d6ae27d122354f.webp?v=1762224752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a576faa632555cacf644546861450a73400b6fc.webp?v=1762224753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da9a69d20f3caca9b67d8550c38f9ada5ce825.webp?v=1762224754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2c06551568f0608bc1554a3dea007a04c00c9b.webp?v=1762224756"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f45e83dd74a7a5da30d332698c767e5bdfba70a4.webp?v=1762224745","options":["color"],"media":[{"alt":null,"id":26297209061475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f45e83dd74a7a5da30d332698c767e5bdfba70a4.webp?v=1762224745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f45e83dd74a7a5da30d332698c767e5bdfba70a4.webp?v=1762224745","width":2000},{"alt":null,"id":26297209323619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708ccb56ce6d078228c16d7a8c14f1841cd8d817.webp?v=1762224745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708ccb56ce6d078228c16d7a8c14f1841cd8d817.webp?v=1762224745","width":2000},{"alt":null,"id":26297209585763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d05b8661687743e30694d96b3ec26fe72201b83.webp?v=1762224746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d05b8661687743e30694d96b3ec26fe72201b83.webp?v=1762224746","width":2000},{"alt":null,"id":26297209749603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d610d768022a4af758632f7dc45bc751ba93a2.webp?v=1762224747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d610d768022a4af758632f7dc45bc751ba93a2.webp?v=1762224747","width":2000},{"alt":null,"id":26297210011747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e185bf06cc81e8c4c00a26ef4107f9c1bec57.webp?v=1762224749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/378e185bf06cc81e8c4c00a26ef4107f9c1bec57.webp?v=1762224749","width":2000},{"alt":null,"id":26297210110051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a4ed5f407814ee3fbef6dd046d4fc121356265b.webp?v=1762224749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a4ed5f407814ee3fbef6dd046d4fc121356265b.webp?v=1762224749","width":2000},{"alt":null,"id":26297210175587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2660aece532aaa7c1a55b5a26d9757558954fe8f.webp?v=1762224750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2660aece532aaa7c1a55b5a26d9757558954fe8f.webp?v=1762224750","width":2000},{"alt":null,"id":26297210273891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7a68294b549bba1f5ff3e902b9648406eab29f6.webp?v=1762224752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7a68294b549bba1f5ff3e902b9648406eab29f6.webp?v=1762224752","width":2000},{"alt":null,"id":26297210470499,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1783f4a7dc81ebbba4d1d0ba6d6ae27d122354f.webp?v=1762224752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1783f4a7dc81ebbba4d1d0ba6d6ae27d122354f.webp?v=1762224752","width":2000},{"alt":null,"id":26297210699875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a576faa632555cacf644546861450a73400b6fc.webp?v=1762224753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a576faa632555cacf644546861450a73400b6fc.webp?v=1762224753","width":2000},{"alt":null,"id":26297210863715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da9a69d20f3caca9b67d8550c38f9ada5ce825.webp?v=1762224754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86da9a69d20f3caca9b67d8550c38f9ada5ce825.webp?v=1762224754","width":2000},{"alt":null,"id":26297211093091,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755","width":2000},{"alt":null,"id":26297211256931,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2c06551568f0608bc1554a3dea007a04c00c9b.webp?v=1762224756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2c06551568f0608bc1554a3dea007a04c00c9b.webp?v=1762224756","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43812230627427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS02","requires_shipping":true,"taxable":true,"featured_image":{"id":34729342894179,"product_id":7911293747299,"position":12,"created_at":"2025-11-04T10:52:33+08:00","updated_at":"2025-11-04T10:52:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755","variant_ids":[43812230627427]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad 色彩之雨 - 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-POS02","featured_media":{"alt":null,"id":26297211093091,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43812230627427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS02","requires_shipping":true,"taxable":true,"featured_image":{"id":34729342894179,"product_id":7911293747299,"position":12,"created_at":"2025-11-04T10:52:33+08:00","updated_at":"2025-11-04T10:52:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755","variant_ids":[43812230627427]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad 色彩之雨 - 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-POS02","featured_media":{"alt":null,"id":26297211093091,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4d9c8e67c570e299b3317120298b482a445da5f.webp?v=1762224755"}},"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: "停產"
}