$product = {"id":7911188201571,"title":"iPhone 12 Pro Max Mod NX PosterLad 樹","handle":"iphone-12-pro-max-mod-nx-printable-pos09","description":null,"published_at":"2025-11-05T10:49:18+08:00","created_at":"2025-11-04T10:32:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 12 Pro Max","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":43811925098595,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729053651043,"product_id":7911188201571,"position":8,"created_at":"2025-11-04T10:32:43+08:00","updated_at":"2025-11-04T10:32:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565","variant_ids":[43811925098595]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-POS09","featured_media":{"alt":null,"id":26296921915491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcbf9a8280c617a28100eec0e84175740a820c44.webp?v=1762223559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a38e94e8b6e9ad57ddb06c89457592f44aa943b0.webp?v=1762223560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21b093382bd3b6cb7b9039834ab072b9efcbab9.webp?v=1762223561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4c0793fbe7c6d120ba2ab380efe374db31f5e75.webp?v=1762223562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e047a7ca3307f82e1417a87c7563ec71ce12973.webp?v=1762223563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c755060766a5f3925e532d17a46818e244d69697.webp?v=1762223563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbc79d7abdb34d5486c7f20beb78d173e3fa9fb.webp?v=1762223564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df521e6d0bb691fc618bf425cdc5952b56c2aaae.webp?v=1762223566"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcbf9a8280c617a28100eec0e84175740a820c44.webp?v=1762223559","options":["color"],"media":[{"alt":null,"id":26296920440931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcbf9a8280c617a28100eec0e84175740a820c44.webp?v=1762223559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcbf9a8280c617a28100eec0e84175740a820c44.webp?v=1762223559","width":2000},{"alt":null,"id":26296920735843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a38e94e8b6e9ad57ddb06c89457592f44aa943b0.webp?v=1762223560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a38e94e8b6e9ad57ddb06c89457592f44aa943b0.webp?v=1762223560","width":2000},{"alt":null,"id":26296920965219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21b093382bd3b6cb7b9039834ab072b9efcbab9.webp?v=1762223561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21b093382bd3b6cb7b9039834ab072b9efcbab9.webp?v=1762223561","width":2000},{"alt":null,"id":26296921161827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4c0793fbe7c6d120ba2ab380efe374db31f5e75.webp?v=1762223562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4c0793fbe7c6d120ba2ab380efe374db31f5e75.webp?v=1762223562","width":2000},{"alt":null,"id":26296921358435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e047a7ca3307f82e1417a87c7563ec71ce12973.webp?v=1762223563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e047a7ca3307f82e1417a87c7563ec71ce12973.webp?v=1762223563","width":2000},{"alt":null,"id":26296921522275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c755060766a5f3925e532d17a46818e244d69697.webp?v=1762223563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c755060766a5f3925e532d17a46818e244d69697.webp?v=1762223563","width":2000},{"alt":null,"id":26296921653347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbc79d7abdb34d5486c7f20beb78d173e3fa9fb.webp?v=1762223564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddbc79d7abdb34d5486c7f20beb78d173e3fa9fb.webp?v=1762223564","width":2000},{"alt":null,"id":26296921915491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565","width":2000},{"alt":null,"id":26296922112099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df521e6d0bb691fc618bf425cdc5952b56c2aaae.webp?v=1762223566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df521e6d0bb691fc618bf425cdc5952b56c2aaae.webp?v=1762223566","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43811925098595,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729053651043,"product_id":7911188201571,"position":8,"created_at":"2025-11-04T10:32:43+08:00","updated_at":"2025-11-04T10:32:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565","variant_ids":[43811925098595]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-POS09","featured_media":{"alt":null,"id":26296921915491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43811925098595,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-POS09","requires_shipping":true,"taxable":true,"featured_image":{"id":34729053651043,"product_id":7911188201571,"position":8,"created_at":"2025-11-04T10:32:43+08:00","updated_at":"2025-11-04T10:32:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565","variant_ids":[43811925098595]},"available":true,"name":"iPhone 12 Pro Max 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":"NPB0118724-POS09","featured_media":{"alt":null,"id":26296921915491,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db26e142a19adce143cd7982a4ddb1095f0591d2.webp?v=1762223565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}