$product = {"id":7414274949219,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 高譚守護者","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb20","description":null,"published_at":"2024-06-11T17:50:25+08:00","created_at":"2024-05-05T14:19:41+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":41905356472419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485060743267,"product_id":7414274949219,"position":11,"created_at":"2024-05-05T14:20:06+08:00","updated_at":"2024-05-05T14:20:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006","variant_ids":[41905356472419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-SB20","featured_media":{"alt":null,"id":23890375606371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905357258851,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485044916323,"product_id":7414274949219,"position":1,"created_at":"2024-05-05T14:19:43+08:00","updated_at":"2024-05-05T14:19:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983","variant_ids":[41905357258851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-SB20","featured_media":{"alt":null,"id":23890360074339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b008839b6e5b2543fc50778b84a09e3084695b19_607e8c69-91b3-40df-a027-f86fd84318f1.webp?v=1714889986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/642cb0a7f0bbccd811c94611a128584f76babb84_bad7656d-225a-49e3-b7b7-7e74a46001fb.webp?v=1714889988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea8494ad4b36c1ef7b72da676e87c04da1a22cd_cc78b5b6-80c7-4c9f-8db5-45a15e28f8c0.webp?v=1714889990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7ee2b886d0fb9991ece5cbe60a8bf31ac8bbaa_72339062-6a35-4806-b568-b387fe63bca1.webp?v=1714889992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06c6d5b2026bafc08fb6b70a9a0463dce0467bd5_7ad97c8e-0ebd-4aa6-b794-b4a450633ff0.webp?v=1714889995","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed7f69d0e6d87a8a5ad9138f3f009c7c004dc1d9_a7ec1268-d914-4a57-a29a-f22ac04b6497.webp?v=1714889997","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5b0128c5b3622959e7429e179a4542031d1bff_de779306-363f-4e35-84fc-e3e6f56e9ec8.webp?v=1714889999","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2866c4ed62d6f50a6b4a95f6fe46b39a08fd7828_68e85d17-4fa6-4d4a-ae9b-60cfd4e115f7.webp?v=1714890001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0882a52d141ee53f0ae1247797053fcd2aecd2ae_bd8f9a5f-13c0-4fee-bdcb-b130e213591a.webp?v=1714890004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983","options":["color"],"media":[{"alt":null,"id":23890360074339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983","width":2000},{"alt":null,"id":23890361548899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b008839b6e5b2543fc50778b84a09e3084695b19_607e8c69-91b3-40df-a027-f86fd84318f1.webp?v=1714889986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b008839b6e5b2543fc50778b84a09e3084695b19_607e8c69-91b3-40df-a027-f86fd84318f1.webp?v=1714889986","width":2000},{"alt":null,"id":23890363875427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/642cb0a7f0bbccd811c94611a128584f76babb84_bad7656d-225a-49e3-b7b7-7e74a46001fb.webp?v=1714889988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/642cb0a7f0bbccd811c94611a128584f76babb84_bad7656d-225a-49e3-b7b7-7e74a46001fb.webp?v=1714889988","width":2000},{"alt":null,"id":23890365317219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea8494ad4b36c1ef7b72da676e87c04da1a22cd_cc78b5b6-80c7-4c9f-8db5-45a15e28f8c0.webp?v=1714889990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea8494ad4b36c1ef7b72da676e87c04da1a22cd_cc78b5b6-80c7-4c9f-8db5-45a15e28f8c0.webp?v=1714889990","width":2000},{"alt":null,"id":23890366759011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7ee2b886d0fb9991ece5cbe60a8bf31ac8bbaa_72339062-6a35-4806-b568-b387fe63bca1.webp?v=1714889992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e7ee2b886d0fb9991ece5cbe60a8bf31ac8bbaa_72339062-6a35-4806-b568-b387fe63bca1.webp?v=1714889992","width":2000},{"alt":null,"id":23890368200803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06c6d5b2026bafc08fb6b70a9a0463dce0467bd5_7ad97c8e-0ebd-4aa6-b794-b4a450633ff0.webp?v=1714889995"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06c6d5b2026bafc08fb6b70a9a0463dce0467bd5_7ad97c8e-0ebd-4aa6-b794-b4a450633ff0.webp?v=1714889995","width":2000},{"alt":null,"id":23890369413219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed7f69d0e6d87a8a5ad9138f3f009c7c004dc1d9_a7ec1268-d914-4a57-a29a-f22ac04b6497.webp?v=1714889997"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed7f69d0e6d87a8a5ad9138f3f009c7c004dc1d9_a7ec1268-d914-4a57-a29a-f22ac04b6497.webp?v=1714889997","width":2000},{"alt":null,"id":23890370953315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5b0128c5b3622959e7429e179a4542031d1bff_de779306-363f-4e35-84fc-e3e6f56e9ec8.webp?v=1714889999"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5b0128c5b3622959e7429e179a4542031d1bff_de779306-363f-4e35-84fc-e3e6f56e9ec8.webp?v=1714889999","width":2000},{"alt":null,"id":23890372329571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2866c4ed62d6f50a6b4a95f6fe46b39a08fd7828_68e85d17-4fa6-4d4a-ae9b-60cfd4e115f7.webp?v=1714890001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2866c4ed62d6f50a6b4a95f6fe46b39a08fd7828_68e85d17-4fa6-4d4a-ae9b-60cfd4e115f7.webp?v=1714890001","width":2000},{"alt":null,"id":23890374164579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0882a52d141ee53f0ae1247797053fcd2aecd2ae_bd8f9a5f-13c0-4fee-bdcb-b130e213591a.webp?v=1714890004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0882a52d141ee53f0ae1247797053fcd2aecd2ae_bd8f9a5f-13c0-4fee-bdcb-b130e213591a.webp?v=1714890004","width":2000},{"alt":null,"id":23890375606371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905356472419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485060743267,"product_id":7414274949219,"position":11,"created_at":"2024-05-05T14:20:06+08:00","updated_at":"2024-05-05T14:20:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006","variant_ids":[41905356472419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-SB20","featured_media":{"alt":null,"id":23890375606371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905357258851,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485044916323,"product_id":7414274949219,"position":1,"created_at":"2024-05-05T14:19:43+08:00","updated_at":"2024-05-05T14:19:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983","variant_ids":[41905357258851]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-SB20","featured_media":{"alt":null,"id":23890360074339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa593370b30cb0782249668d26dbebda8950d329_6a502abe-7df7-45ed-8428-4b71ed76e6c7.webp?v=1714889983"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905356472419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31485060743267,"product_id":7414274949219,"position":11,"created_at":"2024-05-05T14:20:06+08:00","updated_at":"2024-05-05T14:20:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006","variant_ids":[41905356472419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-SB20","featured_media":{"alt":null,"id":23890375606371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daef7848bf23c9c941e286ee8c6d072e2b4dd282_47c561f8-94b3-4cfb-80e2-6f48c3fd09cc.webp?v=1714890006"}},"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: "停產"
}