$product = {"id":7892614021219,"title":"iPhone XR Mod NX Aaron Chang Ivy Boy","handle":"iphone-xr-mod-nx-printable-aar01","description":null,"published_at":"2025-10-03T09:51:57+08:00","created_at":"2025-10-02T09:48:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone XR","merge","reseller-aaronchang"],"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":43756491407459,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543542370403,"product_id":7892614021219,"position":9,"created_at":"2025-10-02T09:48:58+08:00","updated_at":"2025-10-02T09:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740","variant_ids":[43756491407459]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-AAR01","featured_media":{"alt":null,"id":26113297252451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756495077475,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543541256291,"product_id":7892614021219,"position":4,"created_at":"2025-10-02T09:48:55+08:00","updated_at":"2025-10-02T09:48:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ca886525b38e53952dadb2862c6a001675f3bb.webp?v=1759369737","variant_ids":[43756495077475]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-AAR01","featured_media":{"alt":null,"id":26113296138339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ca886525b38e53952dadb2862c6a001675f3bb.webp?v=1759369737"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756495241315,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543541911651,"product_id":7892614021219,"position":7,"created_at":"2025-10-02T09:48:57+08:00","updated_at":"2025-10-02T09:48:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3f83c629efb14e7dc9aa31173d330c12efa639.webp?v=1759369739","variant_ids":[43756495241315]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-AAR01","featured_media":{"alt":null,"id":26113296793699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3f83c629efb14e7dc9aa31173d330c12efa639.webp?v=1759369739"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756495274083,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543542698083,"product_id":7892614021219,"position":10,"created_at":"2025-10-02T09:49:00+08:00","updated_at":"2025-10-02T09:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78ccc5726d72f3baf9e70fdeb6942f3693b908f.webp?v=1759369742","variant_ids":[43756495274083]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-AAR01","featured_media":{"alt":null,"id":26113297580131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78ccc5726d72f3baf9e70fdeb6942f3693b908f.webp?v=1759369742"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14254cedb1a29b76b7b84c550984657945bce3cc.webp?v=1759369735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79101320e656362b2c997e90b7f6875205a8148f.webp?v=1759369735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1558f3080251fd97f44008f40993ba5d5fea6d.webp?v=1759369736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ca886525b38e53952dadb2862c6a001675f3bb.webp?v=1759369737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a446af90d1d18901dc1bd0cb89c68947007fa7.webp?v=1759369737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fdf6d2de59990d83596f5e55a53dbca836c673.webp?v=1759369738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3f83c629efb14e7dc9aa31173d330c12efa639.webp?v=1759369739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dd5cba51fe28c5d87a3f2062576c451eac199f2.webp?v=1759369739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78ccc5726d72f3baf9e70fdeb6942f3693b908f.webp?v=1759369742"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14254cedb1a29b76b7b84c550984657945bce3cc.webp?v=1759369735","options":["color"],"media":[{"alt":null,"id":26113295679587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14254cedb1a29b76b7b84c550984657945bce3cc.webp?v=1759369735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14254cedb1a29b76b7b84c550984657945bce3cc.webp?v=1759369735","width":2000},{"alt":null,"id":26113295843427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79101320e656362b2c997e90b7f6875205a8148f.webp?v=1759369735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79101320e656362b2c997e90b7f6875205a8148f.webp?v=1759369735","width":2000},{"alt":null,"id":26113296007267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1558f3080251fd97f44008f40993ba5d5fea6d.webp?v=1759369736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e1558f3080251fd97f44008f40993ba5d5fea6d.webp?v=1759369736","width":2000},{"alt":null,"id":26113296138339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ca886525b38e53952dadb2862c6a001675f3bb.webp?v=1759369737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ca886525b38e53952dadb2862c6a001675f3bb.webp?v=1759369737","width":2000},{"alt":null,"id":26113296367715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a446af90d1d18901dc1bd0cb89c68947007fa7.webp?v=1759369737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19a446af90d1d18901dc1bd0cb89c68947007fa7.webp?v=1759369737","width":2000},{"alt":null,"id":26113296597091,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fdf6d2de59990d83596f5e55a53dbca836c673.webp?v=1759369738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fdf6d2de59990d83596f5e55a53dbca836c673.webp?v=1759369738","width":2000},{"alt":null,"id":26113296793699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3f83c629efb14e7dc9aa31173d330c12efa639.webp?v=1759369739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3f83c629efb14e7dc9aa31173d330c12efa639.webp?v=1759369739","width":2000},{"alt":null,"id":26113297055843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dd5cba51fe28c5d87a3f2062576c451eac199f2.webp?v=1759369739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dd5cba51fe28c5d87a3f2062576c451eac199f2.webp?v=1759369739","width":2000},{"alt":null,"id":26113297252451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740","width":2000},{"alt":null,"id":26113297580131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78ccc5726d72f3baf9e70fdeb6942f3693b908f.webp?v=1759369742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78ccc5726d72f3baf9e70fdeb6942f3693b908f.webp?v=1759369742","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43756491407459,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543542370403,"product_id":7892614021219,"position":9,"created_at":"2025-10-02T09:48:58+08:00","updated_at":"2025-10-02T09:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740","variant_ids":[43756491407459]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-AAR01","featured_media":{"alt":null,"id":26113297252451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756495077475,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0108504-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543541256291,"product_id":7892614021219,"position":4,"created_at":"2025-10-02T09:48:55+08:00","updated_at":"2025-10-02T09:48:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ca886525b38e53952dadb2862c6a001675f3bb.webp?v=1759369737","variant_ids":[43756495077475]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108504-AAR01","featured_media":{"alt":null,"id":26113296138339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ca886525b38e53952dadb2862c6a001675f3bb.webp?v=1759369737"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756495241315,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108524-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543541911651,"product_id":7892614021219,"position":7,"created_at":"2025-10-02T09:48:57+08:00","updated_at":"2025-10-02T09:48:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3f83c629efb14e7dc9aa31173d330c12efa639.webp?v=1759369739","variant_ids":[43756495241315]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108524-AAR01","featured_media":{"alt":null,"id":26113296793699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c3f83c629efb14e7dc9aa31173d330c12efa639.webp?v=1759369739"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43756495274083,"title":"Camo Green","option1":"Camo Green","option2":null,"option3":null,"sku":"NPB0108515-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543542698083,"product_id":7892614021219,"position":10,"created_at":"2025-10-02T09:49:00+08:00","updated_at":"2025-10-02T09:49:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78ccc5726d72f3baf9e70fdeb6942f3693b908f.webp?v=1759369742","variant_ids":[43756495274083]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - Camo Green","public_title":"Camo Green","options":["Camo Green"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108515-AAR01","featured_media":{"alt":null,"id":26113297580131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a78ccc5726d72f3baf9e70fdeb6942f3693b908f.webp?v=1759369742"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43756491407459,"title":"Lavender","option1":"Lavender","option2":null,"option3":null,"sku":"NPB01085C1-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543542370403,"product_id":7892614021219,"position":9,"created_at":"2025-10-02T09:48:58+08:00","updated_at":"2025-10-02T09:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740","variant_ids":[43756491407459]},"available":true,"name":"iPhone XR Mod NX Aaron Chang Ivy Boy - Lavender","public_title":"Lavender","options":["Lavender"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01085C1-AAR01","featured_media":{"alt":null,"id":26113297252451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e967cd01410f25abb6c4518f05e0a6ca94ba6bd5.webp?v=1759369740"}},"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: "停產"
}