$product = {"id":7892599799907,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Waiting for","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-aar08","description":null,"published_at":"2025-10-03T09:54:20+08:00","created_at":"2025-10-02T09:43:58+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":43756438618211,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-AAR08","requires_shipping":true,"taxable":true,"featured_image":{"id":34543485223011,"product_id":7892599799907,"position":9,"created_at":"2025-10-02T09:44:08+08:00","updated_at":"2025-10-02T09:44:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451","variant_ids":[43756438618211]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Waiting for - 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-AAR08","featured_media":{"alt":null,"id":26113240105059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f639cc9a2b57c8f7e5bb6fd1720471e96eea85c1.webp?v=1759369444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded932d0a5b015d8c81fa3b2ef754f9fb5a0aa3.webp?v=1759369444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be6f9fb3b39b020b389329dcd607680e615e2bf4.webp?v=1759369445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ef0eff061a40f0046c449dbda04bcf7d652d9c.webp?v=1759369446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d9a4da884e6d5243bcc36aaaad71e163409c1a.webp?v=1759369447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b657a7f581ca8d7216b85d4fdff949064c96c0.webp?v=1759369447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcda7d7719bb25d1833a2e6d91e046c8c073682.webp?v=1759369448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4d84811d0267150ce778df8e7c45220d370984.webp?v=1759369449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f639cc9a2b57c8f7e5bb6fd1720471e96eea85c1.webp?v=1759369444","options":["color"],"media":[{"alt":null,"id":26113238696035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f639cc9a2b57c8f7e5bb6fd1720471e96eea85c1.webp?v=1759369444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f639cc9a2b57c8f7e5bb6fd1720471e96eea85c1.webp?v=1759369444","width":2000},{"alt":null,"id":26113238794339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded932d0a5b015d8c81fa3b2ef754f9fb5a0aa3.webp?v=1759369444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded932d0a5b015d8c81fa3b2ef754f9fb5a0aa3.webp?v=1759369444","width":2000},{"alt":null,"id":26113238925411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be6f9fb3b39b020b389329dcd607680e615e2bf4.webp?v=1759369445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be6f9fb3b39b020b389329dcd607680e615e2bf4.webp?v=1759369445","width":2000},{"alt":null,"id":26113239220323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ef0eff061a40f0046c449dbda04bcf7d652d9c.webp?v=1759369446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ef0eff061a40f0046c449dbda04bcf7d652d9c.webp?v=1759369446","width":2000},{"alt":null,"id":26113239318627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d9a4da884e6d5243bcc36aaaad71e163409c1a.webp?v=1759369447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d9a4da884e6d5243bcc36aaaad71e163409c1a.webp?v=1759369447","width":2000},{"alt":null,"id":26113239416931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b657a7f581ca8d7216b85d4fdff949064c96c0.webp?v=1759369447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70b657a7f581ca8d7216b85d4fdff949064c96c0.webp?v=1759369447","width":2000},{"alt":null,"id":26113239482467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcda7d7719bb25d1833a2e6d91e046c8c073682.webp?v=1759369448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adcda7d7719bb25d1833a2e6d91e046c8c073682.webp?v=1759369448","width":2000},{"alt":null,"id":26113239744611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4d84811d0267150ce778df8e7c45220d370984.webp?v=1759369449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b4d84811d0267150ce778df8e7c45220d370984.webp?v=1759369449","width":2000},{"alt":null,"id":26113240105059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43756438618211,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-AAR08","requires_shipping":true,"taxable":true,"featured_image":{"id":34543485223011,"product_id":7892599799907,"position":9,"created_at":"2025-10-02T09:44:08+08:00","updated_at":"2025-10-02T09:44:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451","variant_ids":[43756438618211]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Waiting for - 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-AAR08","featured_media":{"alt":null,"id":26113240105059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43756438618211,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-AAR08","requires_shipping":true,"taxable":true,"featured_image":{"id":34543485223011,"product_id":7892599799907,"position":9,"created_at":"2025-10-02T09:44:08+08:00","updated_at":"2025-10-02T09:44:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451","variant_ids":[43756438618211]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) Aaron Chang Waiting for - 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-AAR08","featured_media":{"alt":null,"id":26113240105059,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a24edcaa9023822642742f9aaabc9842554d97.webp?v=1759369451"}},"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: "停產"
}