$product = {"id":7911213957219,"title":"iPhone 12 Pro Max Mod NX PosterLad 水與沙","handle":"iphone-12-pro-max-mod-nx-printable-pos03","description":null,"published_at":"2025-11-05T10:44:30+08:00","created_at":"2025-11-04T10:38:29+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":43812009771107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-POS03","requires_shipping":true,"taxable":true,"featured_image":{"id":34729135603811,"product_id":7911213957219,"position":6,"created_at":"2025-11-04T10:38:35+08:00","updated_at":"2025-11-04T10:38:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917","variant_ids":[43812009771107]},"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-POS03","featured_media":{"alt":null,"id":26297004032099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4b0856fd2a12655048980ce3415a2f27000d2b.webp?v=1762223913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be05ae3c778da226c01bc624b2a006aab1dadda3.webp?v=1762223914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ba4497671b8bf7103f9aa5adfe257e93a1bd8c.webp?v=1762223914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa778bfe002873203c11d212f412644dca5342c0.webp?v=1762223915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297287165a06b37e900db194501cfb902259f7d9.webp?v=1762223916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1573bb483965250aef52fee1ae45aef0b40010.webp?v=1762223918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ffc74e09db28d1ab54e20ee2f3d53415a30f516.webp?v=1762223919","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf7058edb66967868034beb0b5640e77458d787.webp?v=1762223920"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4b0856fd2a12655048980ce3415a2f27000d2b.webp?v=1762223913","options":["color"],"media":[{"alt":null,"id":26297002950755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4b0856fd2a12655048980ce3415a2f27000d2b.webp?v=1762223913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4b0856fd2a12655048980ce3415a2f27000d2b.webp?v=1762223913","width":2000},{"alt":null,"id":26297003180131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be05ae3c778da226c01bc624b2a006aab1dadda3.webp?v=1762223914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be05ae3c778da226c01bc624b2a006aab1dadda3.webp?v=1762223914","width":2000},{"alt":null,"id":26297003376739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ba4497671b8bf7103f9aa5adfe257e93a1bd8c.webp?v=1762223914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ba4497671b8bf7103f9aa5adfe257e93a1bd8c.webp?v=1762223914","width":2000},{"alt":null,"id":26297003507811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa778bfe002873203c11d212f412644dca5342c0.webp?v=1762223915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa778bfe002873203c11d212f412644dca5342c0.webp?v=1762223915","width":2000},{"alt":null,"id":26297003704419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297287165a06b37e900db194501cfb902259f7d9.webp?v=1762223916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297287165a06b37e900db194501cfb902259f7d9.webp?v=1762223916","width":2000},{"alt":null,"id":26297004032099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917","width":2000},{"alt":null,"id":26297004327011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1573bb483965250aef52fee1ae45aef0b40010.webp?v=1762223918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1573bb483965250aef52fee1ae45aef0b40010.webp?v=1762223918","width":2000},{"alt":null,"id":26297004589155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ffc74e09db28d1ab54e20ee2f3d53415a30f516.webp?v=1762223919"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ffc74e09db28d1ab54e20ee2f3d53415a30f516.webp?v=1762223919","width":2000},{"alt":null,"id":26297004884067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf7058edb66967868034beb0b5640e77458d787.webp?v=1762223920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf7058edb66967868034beb0b5640e77458d787.webp?v=1762223920","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43812009771107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-POS03","requires_shipping":true,"taxable":true,"featured_image":{"id":34729135603811,"product_id":7911213957219,"position":6,"created_at":"2025-11-04T10:38:35+08:00","updated_at":"2025-11-04T10:38:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917","variant_ids":[43812009771107]},"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-POS03","featured_media":{"alt":null,"id":26297004032099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43812009771107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118724-POS03","requires_shipping":true,"taxable":true,"featured_image":{"id":34729135603811,"product_id":7911213957219,"position":6,"created_at":"2025-11-04T10:38:35+08:00","updated_at":"2025-11-04T10:38:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917","variant_ids":[43812009771107]},"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-POS03","featured_media":{"alt":null,"id":26297004032099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80905342c5eaa915d8240def91b629d05807ddc.webp?v=1762223917"}},"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: "停產"
}