$product = {"id":7413980332131,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-rl01","description":null,"published_at":"2024-06-11T17:46:47+08:00","created_at":"2024-05-05T13:54:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Twenty One Point Five - 21.5","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-twenty-one-point-five","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-twenty-one-point-five","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":41902949171299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484382969955,"product_id":7413980332131,"position":10,"created_at":"2024-05-05T13:55:04+08:00","updated_at":"2024-05-05T13:55:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504","variant_ids":[41902949171299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-RL01","featured_media":{"alt":null,"id":23889676828771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902949466211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484378611811,"product_id":7413980332131,"position":1,"created_at":"2024-05-05T13:54:43+08:00","updated_at":"2024-05-05T13:54:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483","variant_ids":[41902949466211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-RL01","featured_media":{"alt":null,"id":23889672470627,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff056daf335ed20dd5a9835618d57e2f16e9f0a0_49cf5754-20fa-4f5f-a226-0a4b2593135f.webp?v=1714888485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac627bc1223d5b89a4dc3ce8bb220010609c2879_1671e792-9a57-473c-afda-8dcf9ab015da.webp?v=1714888488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac43d919f3cf29326ec834b6811a99799ec3d1dc_e822c669-4551-48b2-a562-10d09c9f0a2a.webp?v=1714888490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e77a0952b4588289e25c2dfe12ed423a8d8eb672_1cc0bfb7-ba46-49df-9e42-9253861312a1.webp?v=1714888492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83419f032654610a716c6222a3692431b8ef4aa6_f068e599-a3b5-4221-ba33-541a28d5c695.webp?v=1714888494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c69829b48c7bccfd97b4b976507c1d3a6e5c385_c16815c3-700f-4d8f-921c-214c59515993.webp?v=1714888497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2c868a6032d4d5e100cd0fec721990a7c98177_2eeb5bce-c6c8-4756-baa5-c115e282130e.webp?v=1714888499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/804f121ba2c8cb43c7789341006ded3e9d11cfc2_93f2b44b-c459-47f5-92d9-c30375313935.webp?v=1714888501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94a85699f0c976358cc0a254f8ae350f39095125_dc8a0461-42f9-41b6-b6d7-03b81bd5cff5.webp?v=1714888506"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483","options":["color"],"media":[{"alt":null,"id":23889672470627,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483","width":2000},{"alt":null,"id":23889673125987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff056daf335ed20dd5a9835618d57e2f16e9f0a0_49cf5754-20fa-4f5f-a226-0a4b2593135f.webp?v=1714888485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff056daf335ed20dd5a9835618d57e2f16e9f0a0_49cf5754-20fa-4f5f-a226-0a4b2593135f.webp?v=1714888485","width":2000},{"alt":null,"id":23889673551971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac627bc1223d5b89a4dc3ce8bb220010609c2879_1671e792-9a57-473c-afda-8dcf9ab015da.webp?v=1714888488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac627bc1223d5b89a4dc3ce8bb220010609c2879_1671e792-9a57-473c-afda-8dcf9ab015da.webp?v=1714888488","width":2000},{"alt":null,"id":23889673846883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac43d919f3cf29326ec834b6811a99799ec3d1dc_e822c669-4551-48b2-a562-10d09c9f0a2a.webp?v=1714888490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac43d919f3cf29326ec834b6811a99799ec3d1dc_e822c669-4551-48b2-a562-10d09c9f0a2a.webp?v=1714888490","width":2000},{"alt":null,"id":23889674305635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e77a0952b4588289e25c2dfe12ed423a8d8eb672_1cc0bfb7-ba46-49df-9e42-9253861312a1.webp?v=1714888492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e77a0952b4588289e25c2dfe12ed423a8d8eb672_1cc0bfb7-ba46-49df-9e42-9253861312a1.webp?v=1714888492","width":2000},{"alt":null,"id":23889674666083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83419f032654610a716c6222a3692431b8ef4aa6_f068e599-a3b5-4221-ba33-541a28d5c695.webp?v=1714888494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83419f032654610a716c6222a3692431b8ef4aa6_f068e599-a3b5-4221-ba33-541a28d5c695.webp?v=1714888494","width":2000},{"alt":null,"id":23889675157603,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c69829b48c7bccfd97b4b976507c1d3a6e5c385_c16815c3-700f-4d8f-921c-214c59515993.webp?v=1714888497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c69829b48c7bccfd97b4b976507c1d3a6e5c385_c16815c3-700f-4d8f-921c-214c59515993.webp?v=1714888497","width":2000},{"alt":null,"id":23889675845731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2c868a6032d4d5e100cd0fec721990a7c98177_2eeb5bce-c6c8-4756-baa5-c115e282130e.webp?v=1714888499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b2c868a6032d4d5e100cd0fec721990a7c98177_2eeb5bce-c6c8-4756-baa5-c115e282130e.webp?v=1714888499","width":2000},{"alt":null,"id":23889676337251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/804f121ba2c8cb43c7789341006ded3e9d11cfc2_93f2b44b-c459-47f5-92d9-c30375313935.webp?v=1714888501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/804f121ba2c8cb43c7789341006ded3e9d11cfc2_93f2b44b-c459-47f5-92d9-c30375313935.webp?v=1714888501","width":2000},{"alt":null,"id":23889676828771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504","width":2000},{"alt":null,"id":23889677484131,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94a85699f0c976358cc0a254f8ae350f39095125_dc8a0461-42f9-41b6-b6d7-03b81bd5cff5.webp?v=1714888506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94a85699f0c976358cc0a254f8ae350f39095125_dc8a0461-42f9-41b6-b6d7-03b81bd5cff5.webp?v=1714888506","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902949171299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484382969955,"product_id":7413980332131,"position":10,"created_at":"2024-05-05T13:55:04+08:00","updated_at":"2024-05-05T13:55:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504","variant_ids":[41902949171299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-RL01","featured_media":{"alt":null,"id":23889676828771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902949466211,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484378611811,"product_id":7413980332131,"position":1,"created_at":"2024-05-05T13:54:43+08:00","updated_at":"2024-05-05T13:54:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483","variant_ids":[41902949466211]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-RL01","featured_media":{"alt":null,"id":23889672470627,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0f7c5224c6382c7ed1f02b092220322d0a2139_298ce14b-cbc5-4b49-b0a6-823504988553.webp?v=1714888483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902949171299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-RL01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484382969955,"product_id":7413980332131,"position":10,"created_at":"2024-05-05T13:55:04+08:00","updated_at":"2024-05-05T13:55:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504","variant_ids":[41902949171299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Mundane Everyday - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-RL01","featured_media":{"alt":null,"id":23889676828771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b0c14da085a46385b16aac75dc073a2d6c1418_8cb11977-7211-42e2-9416-6eeea7994f1e.webp?v=1714888504"}},"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: "停產"
}