$product = {"id":7415096311907,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 復古版","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sb01","description":null,"published_at":"2024-06-11T17:57:52+08:00","created_at":"2024-05-05T20:22:05+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 12 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":41911828349027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488152174691,"product_id":7415096311907,"position":6,"created_at":"2024-05-05T20:22:20+08:00","updated_at":"2024-05-05T20:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741","variant_ids":[41911828349027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 復古版 - 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":"MPB0118724-SB01","featured_media":{"alt":null,"id":23893496758371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9231bcf292c90180d6847554723328bfdad217db_1f4578b0-9664-4082-9208-038194ae8901.webp?v=1714911728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e4d2cb8b3d3b495ebfd78dcdcae2c9c5759cf1_ea2b86ef-9457-4d33-bddb-21989962f165.webp?v=1714911730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4619b71322a9af7b1b4565056eb00f356fc86483_4303d555-88c9-4733-8008-d55d504f96a8.webp?v=1714911732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03257807ed34e7e1de4fbb2475bc3f4cd3a451d2_9f6d1a4c-cc09-4ffb-a511-8f017f8d2865.webp?v=1714911736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38ca3ae0d1f532fb2ba6ac450e1e4aca9fd2b45_070b1420-c908-4f1e-8f38-30fbc531f55d.webp?v=1714911738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf39dbd07929f5eadfa5753f3ea95c05eb813b2_a512a4d2-cb5d-40ac-86d7-eb7953515af9.webp?v=1714911743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06056b415845b3682daf608669a009c75d37b44c_5d1da1c2-9675-453d-be00-533363866f69.webp?v=1714911745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335f79b7c718d2ac4314f7cfc654fae7c894b87b_c83d8ee2-89d6-4a50-af82-4f3ab22c7324.webp?v=1714911748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e56edb2079db429b388a79a8de3fcdf441e3948_fb6c026e-f6c1-4e7b-9e13-9a7e884775f2.webp?v=1714911751"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9231bcf292c90180d6847554723328bfdad217db_1f4578b0-9664-4082-9208-038194ae8901.webp?v=1714911728","options":["color"],"media":[{"alt":null,"id":23893493252195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9231bcf292c90180d6847554723328bfdad217db_1f4578b0-9664-4082-9208-038194ae8901.webp?v=1714911728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9231bcf292c90180d6847554723328bfdad217db_1f4578b0-9664-4082-9208-038194ae8901.webp?v=1714911728","width":2000},{"alt":null,"id":23893493907555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e4d2cb8b3d3b495ebfd78dcdcae2c9c5759cf1_ea2b86ef-9457-4d33-bddb-21989962f165.webp?v=1714911730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46e4d2cb8b3d3b495ebfd78dcdcae2c9c5759cf1_ea2b86ef-9457-4d33-bddb-21989962f165.webp?v=1714911730","width":2000},{"alt":null,"id":23893494562915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4619b71322a9af7b1b4565056eb00f356fc86483_4303d555-88c9-4733-8008-d55d504f96a8.webp?v=1714911732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4619b71322a9af7b1b4565056eb00f356fc86483_4303d555-88c9-4733-8008-d55d504f96a8.webp?v=1714911732","width":2000},{"alt":null,"id":23893495513187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03257807ed34e7e1de4fbb2475bc3f4cd3a451d2_9f6d1a4c-cc09-4ffb-a511-8f017f8d2865.webp?v=1714911736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03257807ed34e7e1de4fbb2475bc3f4cd3a451d2_9f6d1a4c-cc09-4ffb-a511-8f017f8d2865.webp?v=1714911736","width":2000},{"alt":null,"id":23893496070243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38ca3ae0d1f532fb2ba6ac450e1e4aca9fd2b45_070b1420-c908-4f1e-8f38-30fbc531f55d.webp?v=1714911738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d38ca3ae0d1f532fb2ba6ac450e1e4aca9fd2b45_070b1420-c908-4f1e-8f38-30fbc531f55d.webp?v=1714911738","width":2000},{"alt":null,"id":23893496758371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741","width":2000},{"alt":null,"id":23893497184355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf39dbd07929f5eadfa5753f3ea95c05eb813b2_a512a4d2-cb5d-40ac-86d7-eb7953515af9.webp?v=1714911743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cf39dbd07929f5eadfa5753f3ea95c05eb813b2_a512a4d2-cb5d-40ac-86d7-eb7953515af9.webp?v=1714911743","width":2000},{"alt":null,"id":23893497643107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06056b415845b3682daf608669a009c75d37b44c_5d1da1c2-9675-453d-be00-533363866f69.webp?v=1714911745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06056b415845b3682daf608669a009c75d37b44c_5d1da1c2-9675-453d-be00-533363866f69.webp?v=1714911745","width":2000},{"alt":null,"id":23893498298467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335f79b7c718d2ac4314f7cfc654fae7c894b87b_c83d8ee2-89d6-4a50-af82-4f3ab22c7324.webp?v=1714911748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/335f79b7c718d2ac4314f7cfc654fae7c894b87b_c83d8ee2-89d6-4a50-af82-4f3ab22c7324.webp?v=1714911748","width":2000},{"alt":null,"id":23893498921059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e56edb2079db429b388a79a8de3fcdf441e3948_fb6c026e-f6c1-4e7b-9e13-9a7e884775f2.webp?v=1714911751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e56edb2079db429b388a79a8de3fcdf441e3948_fb6c026e-f6c1-4e7b-9e13-9a7e884775f2.webp?v=1714911751","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911828349027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488152174691,"product_id":7415096311907,"position":6,"created_at":"2024-05-05T20:22:20+08:00","updated_at":"2024-05-05T20:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741","variant_ids":[41911828349027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 復古版 - 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":"MPB0118724-SB01","featured_media":{"alt":null,"id":23893496758371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911828349027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488152174691,"product_id":7415096311907,"position":6,"created_at":"2024-05-05T20:22:20+08:00","updated_at":"2024-05-05T20:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741","variant_ids":[41911828349027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 復古版 - 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":"MPB0118724-SB01","featured_media":{"alt":null,"id":23893496758371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec2bf360da14148d21faf439e212d5b94ffa9fdb_a7549b2b-ea23-4216-aec3-4d4a21c2c6c9.webp?v=1714911741"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}