$product = {"id":7414081880163,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 哥譚市","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb19","description":null,"published_at":"2024-06-11T17:48:49+08:00","created_at":"2024-05-05T14:08:45+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":41903960096867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31484631679075,"product_id":7414081880163,"position":4,"created_at":"2024-05-05T14:08:55+08:00","updated_at":"2024-05-05T14:08:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335","variant_ids":[41903960096867]},"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-SB19","featured_media":{"alt":null,"id":23889926750307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903960653923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31484630237283,"product_id":7414081880163,"position":3,"created_at":"2024-05-05T14:08:52+08:00","updated_at":"2024-05-05T14:08:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44f296c56752daf12ca314fa2d6b9fcb5e3bf0f_066f1b5f-cfd6-48d9-9d18-b5443f2b6d91.webp?v=1714889332","variant_ids":[41903960653923]},"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-SB19","featured_media":{"alt":null,"id":23889925308515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44f296c56752daf12ca314fa2d6b9fcb5e3bf0f_066f1b5f-cfd6-48d9-9d18-b5443f2b6d91.webp?v=1714889332"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b30026767fc47b383acbf57428b8c3343bb5abe7_0f50aad3-7aaf-4858-888b-b3bc73f7af7e.webp?v=1714889327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/782fe469d34a446def73a97fe4392191b5ca14da_3caee069-cdb8-45f7-9af3-4d9d4ba64878.webp?v=1714889330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44f296c56752daf12ca314fa2d6b9fcb5e3bf0f_066f1b5f-cfd6-48d9-9d18-b5443f2b6d91.webp?v=1714889332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfe333c07f2bb3312b881f07fabfa0fa4d9129_150eb751-4acb-4418-8bb6-57a14274809c.webp?v=1714889337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7e048697613446dafaef0f1288c3f5c2853d5c_b424f79d-8e7f-47f6-92e9-2ae05ca42327.webp?v=1714889339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87db9c4a4ed0c85ecc0d74d43eeb0961f3d80969_24653dc2-1912-4d6c-8f43-20ab3dcfa24f.webp?v=1714889342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57548c40f74c23903d54bfe8c5fbf3106a9aae15_66929e89-7f34-4632-822a-f08963afddac.webp?v=1714889344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb3c7097c453c5d1efba8745edf693b2655922e_b0293f08-5593-4843-bb7a-abadf0c6a6b1.webp?v=1714889346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c7ce08a7c4d98536a4796f1e779b326dec73617_12fe6f19-d4ca-4474-b5b9-3ae192322bf9.webp?v=1714889349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cee335acec5cf7d7bcd30a260cec4b2e0c3d77_be3c2470-728f-4243-a6a3-3856f1c1513f.webp?v=1714889351"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b30026767fc47b383acbf57428b8c3343bb5abe7_0f50aad3-7aaf-4858-888b-b3bc73f7af7e.webp?v=1714889327","options":["color"],"media":[{"alt":null,"id":23889922523235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b30026767fc47b383acbf57428b8c3343bb5abe7_0f50aad3-7aaf-4858-888b-b3bc73f7af7e.webp?v=1714889327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b30026767fc47b383acbf57428b8c3343bb5abe7_0f50aad3-7aaf-4858-888b-b3bc73f7af7e.webp?v=1714889327","width":2000},{"alt":null,"id":23889924063331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/782fe469d34a446def73a97fe4392191b5ca14da_3caee069-cdb8-45f7-9af3-4d9d4ba64878.webp?v=1714889330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/782fe469d34a446def73a97fe4392191b5ca14da_3caee069-cdb8-45f7-9af3-4d9d4ba64878.webp?v=1714889330","width":2000},{"alt":null,"id":23889925308515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44f296c56752daf12ca314fa2d6b9fcb5e3bf0f_066f1b5f-cfd6-48d9-9d18-b5443f2b6d91.webp?v=1714889332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44f296c56752daf12ca314fa2d6b9fcb5e3bf0f_066f1b5f-cfd6-48d9-9d18-b5443f2b6d91.webp?v=1714889332","width":2000},{"alt":null,"id":23889926750307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335","width":2000},{"alt":null,"id":23889928192099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfe333c07f2bb3312b881f07fabfa0fa4d9129_150eb751-4acb-4418-8bb6-57a14274809c.webp?v=1714889337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dedfe333c07f2bb3312b881f07fabfa0fa4d9129_150eb751-4acb-4418-8bb6-57a14274809c.webp?v=1714889337","width":2000},{"alt":null,"id":23889929699427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7e048697613446dafaef0f1288c3f5c2853d5c_b424f79d-8e7f-47f6-92e9-2ae05ca42327.webp?v=1714889339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a7e048697613446dafaef0f1288c3f5c2853d5c_b424f79d-8e7f-47f6-92e9-2ae05ca42327.webp?v=1714889339","width":2000},{"alt":null,"id":23889933402211,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87db9c4a4ed0c85ecc0d74d43eeb0961f3d80969_24653dc2-1912-4d6c-8f43-20ab3dcfa24f.webp?v=1714889342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87db9c4a4ed0c85ecc0d74d43eeb0961f3d80969_24653dc2-1912-4d6c-8f43-20ab3dcfa24f.webp?v=1714889342","width":2000},{"alt":null,"id":23889934778467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57548c40f74c23903d54bfe8c5fbf3106a9aae15_66929e89-7f34-4632-822a-f08963afddac.webp?v=1714889344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57548c40f74c23903d54bfe8c5fbf3106a9aae15_66929e89-7f34-4632-822a-f08963afddac.webp?v=1714889344","width":2000},{"alt":null,"id":23889936187491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb3c7097c453c5d1efba8745edf693b2655922e_b0293f08-5593-4843-bb7a-abadf0c6a6b1.webp?v=1714889346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb3c7097c453c5d1efba8745edf693b2655922e_b0293f08-5593-4843-bb7a-abadf0c6a6b1.webp?v=1714889346","width":2000},{"alt":null,"id":23889937596515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c7ce08a7c4d98536a4796f1e779b326dec73617_12fe6f19-d4ca-4474-b5b9-3ae192322bf9.webp?v=1714889349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c7ce08a7c4d98536a4796f1e779b326dec73617_12fe6f19-d4ca-4474-b5b9-3ae192322bf9.webp?v=1714889349","width":2000},{"alt":null,"id":23889938907235,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cee335acec5cf7d7bcd30a260cec4b2e0c3d77_be3c2470-728f-4243-a6a3-3856f1c1513f.webp?v=1714889351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cee335acec5cf7d7bcd30a260cec4b2e0c3d77_be3c2470-728f-4243-a6a3-3856f1c1513f.webp?v=1714889351","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903960096867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31484631679075,"product_id":7414081880163,"position":4,"created_at":"2024-05-05T14:08:55+08:00","updated_at":"2024-05-05T14:08:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335","variant_ids":[41903960096867]},"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-SB19","featured_media":{"alt":null,"id":23889926750307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903960653923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31484630237283,"product_id":7414081880163,"position":3,"created_at":"2024-05-05T14:08:52+08:00","updated_at":"2024-05-05T14:08:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44f296c56752daf12ca314fa2d6b9fcb5e3bf0f_066f1b5f-cfd6-48d9-9d18-b5443f2b6d91.webp?v=1714889332","variant_ids":[41903960653923]},"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-SB19","featured_media":{"alt":null,"id":23889925308515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44f296c56752daf12ca314fa2d6b9fcb5e3bf0f_066f1b5f-cfd6-48d9-9d18-b5443f2b6d91.webp?v=1714889332"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903960096867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31484631679075,"product_id":7414081880163,"position":4,"created_at":"2024-05-05T14:08:55+08:00","updated_at":"2024-05-05T14:08:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335","variant_ids":[41903960096867]},"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-SB19","featured_media":{"alt":null,"id":23889926750307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8cfab70039e273582bc1bfbd84708d1f96ed2048_ab61bc6b-e27a-4d43-9929-e4d7845cacae.webp?v=1714889335"}},"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: "停產"
}