$product = {"id":7414037381219,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Batman Logo","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb03","description":null,"published_at":"2024-06-11T17:48:25+08:00","created_at":"2024-05-05T14:05:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","Top50","type-Mod NX Printable MagSafe Printable"],"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":41903616262243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520824931,"product_id":7414037381219,"position":5,"created_at":"2024-05-05T14:06:07+08:00","updated_at":"2024-05-05T14:06:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167","variant_ids":[41903616262243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Batman Logo - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB03","featured_media":{"alt":null,"id":23889814978659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903617015907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484521283683,"product_id":7414037381219,"position":6,"created_at":"2024-05-05T14:06:09+08:00","updated_at":"2024-05-05T14:06:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d13adb15547914ec19da2b778c236e4772a9a8_9d5a28aa-d98e-4ace-95b8-9cab052ee2ac.webp?v=1714889169","variant_ids":[41903617015907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Batman Logo - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SB03","featured_media":{"alt":null,"id":23889815404643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d13adb15547914ec19da2b778c236e4772a9a8_9d5a28aa-d98e-4ace-95b8-9cab052ee2ac.webp?v=1714889169"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891433f9be9bcb0690118eef922885a55000ab73_d8f02949-6ea4-4577-bbe6-93b5b742b590.webp?v=1714889157","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0481c331511144da6473d15d0529d79f641bdc3_6651e063-ef3f-4a71-9bd4-2bbed08de79e.webp?v=1714889160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14342da1a67f8d6d3943a69b0a025ebb85f734ed_5c94c1c1-d7de-4f39-b6f0-a97025e77a27.webp?v=1714889162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8c50c7d181556e3bbf42a99d4874256c9b0176_f7b1021c-6630-4ded-a392-1efcea3b4e7c.webp?v=1714889164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d13adb15547914ec19da2b778c236e4772a9a8_9d5a28aa-d98e-4ace-95b8-9cab052ee2ac.webp?v=1714889169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3e3980f23d32ef4083892ddb56834185e2ebda8_6e20c7ba-4a14-493e-85ee-5a9ef0bda21f.webp?v=1714889171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb75c8e9bdb37ea0da022b1fd633a808285f620d_ac862f27-0dbd-4b4b-8ca4-4fd2a357b0de.webp?v=1714889173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/400486df4558a73f190353402f1bd5b98427d625_6fbd96ea-0594-4f11-a1af-5038879591d3.webp?v=1714889175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b4f7e8a694accefaf96b55db1a93ea61074e2f9_f8748f09-20d8-42e1-a817-2703d34a6a47.webp?v=1714889178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/400af7a40f547d6d3876ac5674e6a3826759d1dc_5880c595-cd1b-418a-ab2a-479da23947dd.webp?v=1714889180"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891433f9be9bcb0690118eef922885a55000ab73_d8f02949-6ea4-4577-bbe6-93b5b742b590.webp?v=1714889157","options":["color"],"media":[{"alt":null,"id":23889813143651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891433f9be9bcb0690118eef922885a55000ab73_d8f02949-6ea4-4577-bbe6-93b5b742b590.webp?v=1714889157"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891433f9be9bcb0690118eef922885a55000ab73_d8f02949-6ea4-4577-bbe6-93b5b742b590.webp?v=1714889157","width":2000},{"alt":null,"id":23889813733475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0481c331511144da6473d15d0529d79f641bdc3_6651e063-ef3f-4a71-9bd4-2bbed08de79e.webp?v=1714889160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0481c331511144da6473d15d0529d79f641bdc3_6651e063-ef3f-4a71-9bd4-2bbed08de79e.webp?v=1714889160","width":2000},{"alt":null,"id":23889814093923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14342da1a67f8d6d3943a69b0a025ebb85f734ed_5c94c1c1-d7de-4f39-b6f0-a97025e77a27.webp?v=1714889162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14342da1a67f8d6d3943a69b0a025ebb85f734ed_5c94c1c1-d7de-4f39-b6f0-a97025e77a27.webp?v=1714889162","width":2000},{"alt":null,"id":23889814585443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8c50c7d181556e3bbf42a99d4874256c9b0176_f7b1021c-6630-4ded-a392-1efcea3b4e7c.webp?v=1714889164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe8c50c7d181556e3bbf42a99d4874256c9b0176_f7b1021c-6630-4ded-a392-1efcea3b4e7c.webp?v=1714889164","width":2000},{"alt":null,"id":23889814978659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167","width":2000},{"alt":null,"id":23889815404643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d13adb15547914ec19da2b778c236e4772a9a8_9d5a28aa-d98e-4ace-95b8-9cab052ee2ac.webp?v=1714889169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d13adb15547914ec19da2b778c236e4772a9a8_9d5a28aa-d98e-4ace-95b8-9cab052ee2ac.webp?v=1714889169","width":2000},{"alt":null,"id":23889816354915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3e3980f23d32ef4083892ddb56834185e2ebda8_6e20c7ba-4a14-493e-85ee-5a9ef0bda21f.webp?v=1714889171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3e3980f23d32ef4083892ddb56834185e2ebda8_6e20c7ba-4a14-493e-85ee-5a9ef0bda21f.webp?v=1714889171","width":2000},{"alt":null,"id":23889817895011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb75c8e9bdb37ea0da022b1fd633a808285f620d_ac862f27-0dbd-4b4b-8ca4-4fd2a357b0de.webp?v=1714889173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb75c8e9bdb37ea0da022b1fd633a808285f620d_ac862f27-0dbd-4b4b-8ca4-4fd2a357b0de.webp?v=1714889173","width":2000},{"alt":null,"id":23889820614755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/400486df4558a73f190353402f1bd5b98427d625_6fbd96ea-0594-4f11-a1af-5038879591d3.webp?v=1714889175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/400486df4558a73f190353402f1bd5b98427d625_6fbd96ea-0594-4f11-a1af-5038879591d3.webp?v=1714889175","width":2000},{"alt":null,"id":23889822318691,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b4f7e8a694accefaf96b55db1a93ea61074e2f9_f8748f09-20d8-42e1-a817-2703d34a6a47.webp?v=1714889178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b4f7e8a694accefaf96b55db1a93ea61074e2f9_f8748f09-20d8-42e1-a817-2703d34a6a47.webp?v=1714889178","width":2000},{"alt":null,"id":23889824055395,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/400af7a40f547d6d3876ac5674e6a3826759d1dc_5880c595-cd1b-418a-ab2a-479da23947dd.webp?v=1714889180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/400af7a40f547d6d3876ac5674e6a3826759d1dc_5880c595-cd1b-418a-ab2a-479da23947dd.webp?v=1714889180","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903616262243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520824931,"product_id":7414037381219,"position":5,"created_at":"2024-05-05T14:06:07+08:00","updated_at":"2024-05-05T14:06:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167","variant_ids":[41903616262243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Batman Logo - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB03","featured_media":{"alt":null,"id":23889814978659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903617015907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484521283683,"product_id":7414037381219,"position":6,"created_at":"2024-05-05T14:06:09+08:00","updated_at":"2024-05-05T14:06:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d13adb15547914ec19da2b778c236e4772a9a8_9d5a28aa-d98e-4ace-95b8-9cab052ee2ac.webp?v=1714889169","variant_ids":[41903617015907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Batman Logo - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SB03","featured_media":{"alt":null,"id":23889815404643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d13adb15547914ec19da2b778c236e4772a9a8_9d5a28aa-d98e-4ace-95b8-9cab052ee2ac.webp?v=1714889169"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903616262243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520824931,"product_id":7414037381219,"position":5,"created_at":"2024-05-05T14:06:07+08:00","updated_at":"2024-05-05T14:06:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167","variant_ids":[41903616262243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Batman Logo - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB03","featured_media":{"alt":null,"id":23889814978659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d361362f135475cb2d5648567cda146f2a4beaa8_386f9451-9cd5-4e57-997c-1b7044e0af27.webp?v=1714889167"}},"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: "停產"
}