$product = {"id":7892639711331,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-aar02","description":null,"published_at":"2025-10-03T09:47:46+08:00","created_at":"2025-10-02T09:58:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 12 Pro Max","merge","reseller-aaronchang"],"price":110000,"price_min":110000,"price_max":110000,"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":43756592791651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543642869859,"product_id":7892639711331,"position":4,"created_at":"2025-10-02T09:58:25+08:00","updated_at":"2025-10-02T09:58:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307","variant_ids":[43756592791651]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-AAR02","featured_media":{"alt":null,"id":26113397751907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9afcaef858c16e9f3d8d916a1a075e189c3882.webp?v=1759370305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2845ee85652ab437e10ecaaa802b90f08027372.webp?v=1759370305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/372239b1184e7743a85ceb6b91c9a17443614659.webp?v=1759370306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46099d39afc6dfbfdd9d73c16cfbf7298eda7079.webp?v=1759370307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b33146c04b64c3954e087110ad2ae519a4e10402.webp?v=1759370308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52bd2a8f11cc220ebd8138efa93f06342333e3ab.webp?v=1759370310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09c15fb3e8165c38e2aed6a6bd1772a5677b096f.webp?v=1759370311","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae3c4f1a5507fa1be356e21ed79eafde765478da.webp?v=1759370313"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9afcaef858c16e9f3d8d916a1a075e189c3882.webp?v=1759370305","options":["color"],"media":[{"alt":null,"id":26113397162083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9afcaef858c16e9f3d8d916a1a075e189c3882.webp?v=1759370305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf9afcaef858c16e9f3d8d916a1a075e189c3882.webp?v=1759370305","width":2000},{"alt":null,"id":26113397391459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2845ee85652ab437e10ecaaa802b90f08027372.webp?v=1759370305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2845ee85652ab437e10ecaaa802b90f08027372.webp?v=1759370305","width":2000},{"alt":null,"id":26113397588067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/372239b1184e7743a85ceb6b91c9a17443614659.webp?v=1759370306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/372239b1184e7743a85ceb6b91c9a17443614659.webp?v=1759370306","width":2000},{"alt":null,"id":26113397751907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307","width":2000},{"alt":null,"id":26113397850211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46099d39afc6dfbfdd9d73c16cfbf7298eda7079.webp?v=1759370307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46099d39afc6dfbfdd9d73c16cfbf7298eda7079.webp?v=1759370307","width":2000},{"alt":null,"id":26113398014051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b33146c04b64c3954e087110ad2ae519a4e10402.webp?v=1759370308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b33146c04b64c3954e087110ad2ae519a4e10402.webp?v=1759370308","width":2000},{"alt":null,"id":26113398538339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52bd2a8f11cc220ebd8138efa93f06342333e3ab.webp?v=1759370310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52bd2a8f11cc220ebd8138efa93f06342333e3ab.webp?v=1759370310","width":2000},{"alt":null,"id":26113399029859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09c15fb3e8165c38e2aed6a6bd1772a5677b096f.webp?v=1759370311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09c15fb3e8165c38e2aed6a6bd1772a5677b096f.webp?v=1759370311","width":2000},{"alt":null,"id":26113399226467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae3c4f1a5507fa1be356e21ed79eafde765478da.webp?v=1759370313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae3c4f1a5507fa1be356e21ed79eafde765478da.webp?v=1759370313","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43756592791651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543642869859,"product_id":7892639711331,"position":4,"created_at":"2025-10-02T09:58:25+08:00","updated_at":"2025-10-02T09:58:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307","variant_ids":[43756592791651]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-AAR02","featured_media":{"alt":null,"id":26113397751907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43756592791651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-AAR02","requires_shipping":true,"taxable":true,"featured_image":{"id":34543642869859,"product_id":7892639711331,"position":4,"created_at":"2025-10-02T09:58:25+08:00","updated_at":"2025-10-02T09:58:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307","variant_ids":[43756592791651]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Ivy Girl - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-AAR02","featured_media":{"alt":null,"id":26113397751907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b260a1c5a15de0eea60159ebf0e2b404cf0efea9.webp?v=1759370307"}},"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: "停產"
}