$product = {"id":7888421093475,"title":"iPhone 13 Pro Max Mod NX KINGJUN Hello VIRUS FLOWER!","handle":"iphone-13-pro-max-mod-nx-printable-iq04","description":null,"published_at":"2025-09-23T09:19:37+08:00","created_at":"2025-09-22T15:24:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kingjun","device-iPhone 13 Pro Max","merge","reseller-kingjun"],"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":43743049678947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514344312931,"product_id":7888421093475,"position":9,"created_at":"2025-09-22T15:25:00+08:00","updated_at":"2025-09-22T15:25:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902","variant_ids":[43743049678947]},"available":true,"name":"iPhone 13 Pro Max Mod NX KINGJUN Hello VIRUS FLOWER! - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-IQ04","featured_media":{"alt":null,"id":26084786831459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743049941091,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514343264355,"product_id":7888421093475,"position":3,"created_at":"2025-09-22T15:24:57+08:00","updated_at":"2025-09-22T15:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a11cd7b695648f68b6b8956029ebe6cbe81b1a.webp?v=1758525899","variant_ids":[43743049941091]},"available":true,"name":"iPhone 13 Pro Max Mod NX KINGJUN Hello VIRUS FLOWER! - 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":"NPB01232J5-IQ04","featured_media":{"alt":null,"id":26084785782883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a11cd7b695648f68b6b8956029ebe6cbe81b1a.webp?v=1758525899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc89058b0d78fcac089ba137071d403e899d431.webp?v=1758525898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a8f03c0417af2e8e1d10e40e0a81ef7430d667.webp?v=1758525898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a11cd7b695648f68b6b8956029ebe6cbe81b1a.webp?v=1758525899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c79e2002f2f22ffea151c212cc5db794e63622.webp?v=1758525899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/088a4ee270b9e81858037bb5ee88eb8a10b25a82.webp?v=1758525900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2268b1e1129d0d9248e9bf5e5b675901f7d839.webp?v=1758525900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d9923092ea8aa02291f6485af7b8fa782922a44.webp?v=1758525901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a9080bdfc532f4c3898b5b302d57bc6b85cb00a.webp?v=1758525901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4041dd12e496db51095307e13b97bc4e2677d017.webp?v=1758525902"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc89058b0d78fcac089ba137071d403e899d431.webp?v=1758525898","options":["color"],"media":[{"alt":null,"id":26084785553507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc89058b0d78fcac089ba137071d403e899d431.webp?v=1758525898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc89058b0d78fcac089ba137071d403e899d431.webp?v=1758525898","width":2000},{"alt":null,"id":26084785651811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a8f03c0417af2e8e1d10e40e0a81ef7430d667.webp?v=1758525898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a8f03c0417af2e8e1d10e40e0a81ef7430d667.webp?v=1758525898","width":2000},{"alt":null,"id":26084785782883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a11cd7b695648f68b6b8956029ebe6cbe81b1a.webp?v=1758525899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a11cd7b695648f68b6b8956029ebe6cbe81b1a.webp?v=1758525899","width":2000},{"alt":null,"id":26084785946723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c79e2002f2f22ffea151c212cc5db794e63622.webp?v=1758525899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c79e2002f2f22ffea151c212cc5db794e63622.webp?v=1758525899","width":2000},{"alt":null,"id":26084786077795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/088a4ee270b9e81858037bb5ee88eb8a10b25a82.webp?v=1758525900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/088a4ee270b9e81858037bb5ee88eb8a10b25a82.webp?v=1758525900","width":2000},{"alt":null,"id":26084786274403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2268b1e1129d0d9248e9bf5e5b675901f7d839.webp?v=1758525900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f2268b1e1129d0d9248e9bf5e5b675901f7d839.webp?v=1758525900","width":2000},{"alt":null,"id":26084786503779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d9923092ea8aa02291f6485af7b8fa782922a44.webp?v=1758525901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d9923092ea8aa02291f6485af7b8fa782922a44.webp?v=1758525901","width":2000},{"alt":null,"id":26084786667619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a9080bdfc532f4c3898b5b302d57bc6b85cb00a.webp?v=1758525901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a9080bdfc532f4c3898b5b302d57bc6b85cb00a.webp?v=1758525901","width":2000},{"alt":null,"id":26084786831459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902","width":2000},{"alt":null,"id":26084786995299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4041dd12e496db51095307e13b97bc4e2677d017.webp?v=1758525902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4041dd12e496db51095307e13b97bc4e2677d017.webp?v=1758525902","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43743049678947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514344312931,"product_id":7888421093475,"position":9,"created_at":"2025-09-22T15:25:00+08:00","updated_at":"2025-09-22T15:25:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902","variant_ids":[43743049678947]},"available":true,"name":"iPhone 13 Pro Max Mod NX KINGJUN Hello VIRUS FLOWER! - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-IQ04","featured_media":{"alt":null,"id":26084786831459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743049941091,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01232J5-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514343264355,"product_id":7888421093475,"position":3,"created_at":"2025-09-22T15:24:57+08:00","updated_at":"2025-09-22T15:24:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a11cd7b695648f68b6b8956029ebe6cbe81b1a.webp?v=1758525899","variant_ids":[43743049941091]},"available":true,"name":"iPhone 13 Pro Max Mod NX KINGJUN Hello VIRUS FLOWER! - 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":"NPB01232J5-IQ04","featured_media":{"alt":null,"id":26084785782883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3a11cd7b695648f68b6b8956029ebe6cbe81b1a.webp?v=1758525899"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43743049678947,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0123224-IQ04","requires_shipping":true,"taxable":true,"featured_image":{"id":34514344312931,"product_id":7888421093475,"position":9,"created_at":"2025-09-22T15:25:00+08:00","updated_at":"2025-09-22T15:25:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902","variant_ids":[43743049678947]},"available":true,"name":"iPhone 13 Pro Max Mod NX KINGJUN Hello VIRUS FLOWER! - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-IQ04","featured_media":{"alt":null,"id":26084786831459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85f0717956bc719b6f1037b8b21adc84cf2bcf0d.webp?v=1758525902"}},"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: "停產"
}