$product = {"id":7413988098147,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(底片版)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-ae05","description":null,"published_at":"2024-06-11T17:47:00+08:00","created_at":"2024-05-05T13:56:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 13 Pro Max","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41903036760163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484397486179,"product_id":7413988098147,"position":1,"created_at":"2024-05-05T13:56:13+08:00","updated_at":"2024-05-05T13:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573","variant_ids":[41903036760163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23889691410531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903037349987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400500835,"product_id":7413988098147,"position":7,"created_at":"2024-05-05T13:56:27+08:00","updated_at":"2024-05-05T13:56:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d306c7e9866585d11ee237b6b943df794cf90bfb_81db0f57-f406-4c64-a97e-ca360b40ec99.webp?v=1714888587","variant_ids":[41903037349987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23889694425187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d306c7e9866585d11ee237b6b943df794cf90bfb_81db0f57-f406-4c64-a97e-ca360b40ec99.webp?v=1714888587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331d3458dffeafca2dc31986bb818d9aa6ad4720_60098a0e-3681-4c99-af38-65e66f4fcd7b.webp?v=1714888576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8531a7662734e0a899016db09649cec5b25ac32_8461eeb1-7d00-42b7-bdd3-d1f00f06a4fd.webp?v=1714888578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4edbda55f89f2f9874674f93c2c7afa8c70967_10a4a9ea-2f52-4fcf-b27a-34e9177cc8cc.webp?v=1714888580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/896a684fc0873937b0d8d9f86929f7d4ffeea4f6_7bc28b71-b78c-4092-a237-3af8bfca55b4.webp?v=1714888582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39aa4932d59c880e7b44220a783ad44da7985aa8_5f8ead9a-7578-47e3-8a9c-20163132a9b2.webp?v=1714888585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d306c7e9866585d11ee237b6b943df794cf90bfb_81db0f57-f406-4c64-a97e-ca360b40ec99.webp?v=1714888587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153d9609ff5bcc074bc135768a98a06c9b6f9138_e2479a45-bb6d-4ff9-9877-549185d52a10.webp?v=1714888590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b863a28526daa45421d44acc9929ef051ec5ede1_c137e85c-6d61-41e3-bd2f-b4283227a936.webp?v=1714888592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e476cbe9ce302bdf85283474be295db3c467285_99681707-e4ae-4def-b302-e247a2406a5c.webp?v=1714888594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc875e3ebc7130676de7182ae10fee81e44762f_bd0badae-46d9-4f45-9a74-9a9cc156b861.webp?v=1714888597"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573","options":["color"],"media":[{"alt":null,"id":23889691410531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573","width":2000},{"alt":null,"id":23889691902051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331d3458dffeafca2dc31986bb818d9aa6ad4720_60098a0e-3681-4c99-af38-65e66f4fcd7b.webp?v=1714888576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331d3458dffeafca2dc31986bb818d9aa6ad4720_60098a0e-3681-4c99-af38-65e66f4fcd7b.webp?v=1714888576","width":2000},{"alt":null,"id":23889692393571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8531a7662734e0a899016db09649cec5b25ac32_8461eeb1-7d00-42b7-bdd3-d1f00f06a4fd.webp?v=1714888578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8531a7662734e0a899016db09649cec5b25ac32_8461eeb1-7d00-42b7-bdd3-d1f00f06a4fd.webp?v=1714888578","width":2000},{"alt":null,"id":23889692950627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4edbda55f89f2f9874674f93c2c7afa8c70967_10a4a9ea-2f52-4fcf-b27a-34e9177cc8cc.webp?v=1714888580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4edbda55f89f2f9874674f93c2c7afa8c70967_10a4a9ea-2f52-4fcf-b27a-34e9177cc8cc.webp?v=1714888580","width":2000},{"alt":null,"id":23889693409379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/896a684fc0873937b0d8d9f86929f7d4ffeea4f6_7bc28b71-b78c-4092-a237-3af8bfca55b4.webp?v=1714888582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/896a684fc0873937b0d8d9f86929f7d4ffeea4f6_7bc28b71-b78c-4092-a237-3af8bfca55b4.webp?v=1714888582","width":2000},{"alt":null,"id":23889693966435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39aa4932d59c880e7b44220a783ad44da7985aa8_5f8ead9a-7578-47e3-8a9c-20163132a9b2.webp?v=1714888585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39aa4932d59c880e7b44220a783ad44da7985aa8_5f8ead9a-7578-47e3-8a9c-20163132a9b2.webp?v=1714888585","width":2000},{"alt":null,"id":23889694425187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d306c7e9866585d11ee237b6b943df794cf90bfb_81db0f57-f406-4c64-a97e-ca360b40ec99.webp?v=1714888587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d306c7e9866585d11ee237b6b943df794cf90bfb_81db0f57-f406-4c64-a97e-ca360b40ec99.webp?v=1714888587","width":2000},{"alt":null,"id":23889694949475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153d9609ff5bcc074bc135768a98a06c9b6f9138_e2479a45-bb6d-4ff9-9877-549185d52a10.webp?v=1714888590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153d9609ff5bcc074bc135768a98a06c9b6f9138_e2479a45-bb6d-4ff9-9877-549185d52a10.webp?v=1714888590","width":2000},{"alt":null,"id":23889695440995,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b863a28526daa45421d44acc9929ef051ec5ede1_c137e85c-6d61-41e3-bd2f-b4283227a936.webp?v=1714888592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b863a28526daa45421d44acc9929ef051ec5ede1_c137e85c-6d61-41e3-bd2f-b4283227a936.webp?v=1714888592","width":2000},{"alt":null,"id":23889695998051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e476cbe9ce302bdf85283474be295db3c467285_99681707-e4ae-4def-b302-e247a2406a5c.webp?v=1714888594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e476cbe9ce302bdf85283474be295db3c467285_99681707-e4ae-4def-b302-e247a2406a5c.webp?v=1714888594","width":2000},{"alt":null,"id":23889696391267,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc875e3ebc7130676de7182ae10fee81e44762f_bd0badae-46d9-4f45-9a74-9a9cc156b861.webp?v=1714888597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc875e3ebc7130676de7182ae10fee81e44762f_bd0badae-46d9-4f45-9a74-9a9cc156b861.webp?v=1714888597","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903036760163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484397486179,"product_id":7413988098147,"position":1,"created_at":"2024-05-05T13:56:13+08:00","updated_at":"2024-05-05T13:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573","variant_ids":[41903036760163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23889691410531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903037349987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484400500835,"product_id":7413988098147,"position":7,"created_at":"2024-05-05T13:56:27+08:00","updated_at":"2024-05-05T13:56:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d306c7e9866585d11ee237b6b943df794cf90bfb_81db0f57-f406-4c64-a97e-ca360b40ec99.webp?v=1714888587","variant_ids":[41903037349987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23889694425187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d306c7e9866585d11ee237b6b943df794cf90bfb_81db0f57-f406-4c64-a97e-ca360b40ec99.webp?v=1714888587"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903036760163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484397486179,"product_id":7413988098147,"position":1,"created_at":"2024-05-05T13:56:13+08:00","updated_at":"2024-05-05T13:56:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573","variant_ids":[41903036760163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23889691410531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea986f5e30d0f0b00dc4ff5c5cb689d2027c7c15_9cc55425-7a45-43ff-8553-87dedc5b6eb1.webp?v=1714888573"}},"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: "停產"
}