$product = {"id":7413996093539,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Miracles Take Time","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-rl02","description":null,"published_at":"2024-06-11T17:47:13+08:00","created_at":"2024-05-05T13:57:47+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":41903134343267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-RL02","requires_shipping":true,"taxable":true,"featured_image":{"id":31484420784227,"product_id":7413996093539,"position":8,"created_at":"2024-05-05T13:58:05+08:00","updated_at":"2024-05-05T13:58:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685","variant_ids":[41903134343267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Miracles Take Time - 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-RL02","featured_media":{"alt":null,"id":23889714806883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903134638179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-RL02","requires_shipping":true,"taxable":true,"featured_image":{"id":31484419899491,"product_id":7413996093539,"position":6,"created_at":"2024-05-05T13:58:00+08:00","updated_at":"2024-05-05T13:58:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244453ecfb7682638a3c0d58f90fb9b3d344a1c_c7ebcf9e-9a0d-416a-b3db-9d327b5beac8.webp?v=1714888680","variant_ids":[41903134638179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Miracles Take Time - 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-RL02","featured_media":{"alt":null,"id":23889713922147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244453ecfb7682638a3c0d58f90fb9b3d344a1c_c7ebcf9e-9a0d-416a-b3db-9d327b5beac8.webp?v=1714888680"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc0cab421c80f0f6ec92b9fbc6d6ab037d957a92_e8b1f024-f425-4594-bfae-11d57f77664a.webp?v=1714888669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5712a9936a4070e62a36cc912d55033fc542aee2_a9f27d21-fa30-41bf-9d34-f3b7c393f7aa.webp?v=1714888671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efe3380ddd89479e7f5aa84d232ffd3318fd2eb8_968056b8-9570-4dc3-86c6-b16188b9fe9b.webp?v=1714888673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae3b480e741d38f3fcc6a782b34fe2def21dbd85_8932f7c1-bb55-4dee-a4e4-555ce4ff10b2.webp?v=1714888676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b8e75a5dae891236f1b9caa955c199964f1807_75f25809-968e-4abe-9061-62bdda7a4548.webp?v=1714888678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244453ecfb7682638a3c0d58f90fb9b3d344a1c_c7ebcf9e-9a0d-416a-b3db-9d327b5beac8.webp?v=1714888680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b630477d745d6bc2585433865553b46e9a6a89_7e5f3686-5454-4fb7-818f-4e5df604c4b3.webp?v=1714888682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0017c727719696a4ee80456260ffc9c6939ed6c_794e536b-48b1-4f93-a6fd-568e0cc488b3.webp?v=1714888687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e66acd585375b2164143d317cac538b9b4f52d_99a5711e-092c-41a0-abf9-1820f3c2e1db.webp?v=1714888689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59cddb5dccdcca03a3b9ac1b76f4c8b4185d63c6_1df366ad-7d2d-48bb-a846-a145ea7aa8e4.webp?v=1714888691"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc0cab421c80f0f6ec92b9fbc6d6ab037d957a92_e8b1f024-f425-4594-bfae-11d57f77664a.webp?v=1714888669","options":["color"],"media":[{"alt":null,"id":23889711628387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc0cab421c80f0f6ec92b9fbc6d6ab037d957a92_e8b1f024-f425-4594-bfae-11d57f77664a.webp?v=1714888669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc0cab421c80f0f6ec92b9fbc6d6ab037d957a92_e8b1f024-f425-4594-bfae-11d57f77664a.webp?v=1714888669","width":2000},{"alt":null,"id":23889712119907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5712a9936a4070e62a36cc912d55033fc542aee2_a9f27d21-fa30-41bf-9d34-f3b7c393f7aa.webp?v=1714888671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5712a9936a4070e62a36cc912d55033fc542aee2_a9f27d21-fa30-41bf-9d34-f3b7c393f7aa.webp?v=1714888671","width":2000},{"alt":null,"id":23889712513123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efe3380ddd89479e7f5aa84d232ffd3318fd2eb8_968056b8-9570-4dc3-86c6-b16188b9fe9b.webp?v=1714888673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efe3380ddd89479e7f5aa84d232ffd3318fd2eb8_968056b8-9570-4dc3-86c6-b16188b9fe9b.webp?v=1714888673","width":2000},{"alt":null,"id":23889713037411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae3b480e741d38f3fcc6a782b34fe2def21dbd85_8932f7c1-bb55-4dee-a4e4-555ce4ff10b2.webp?v=1714888676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae3b480e741d38f3fcc6a782b34fe2def21dbd85_8932f7c1-bb55-4dee-a4e4-555ce4ff10b2.webp?v=1714888676","width":2000},{"alt":null,"id":23889713430627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b8e75a5dae891236f1b9caa955c199964f1807_75f25809-968e-4abe-9061-62bdda7a4548.webp?v=1714888678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4b8e75a5dae891236f1b9caa955c199964f1807_75f25809-968e-4abe-9061-62bdda7a4548.webp?v=1714888678","width":2000},{"alt":null,"id":23889713922147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244453ecfb7682638a3c0d58f90fb9b3d344a1c_c7ebcf9e-9a0d-416a-b3db-9d327b5beac8.webp?v=1714888680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244453ecfb7682638a3c0d58f90fb9b3d344a1c_c7ebcf9e-9a0d-416a-b3db-9d327b5beac8.webp?v=1714888680","width":2000},{"alt":null,"id":23889714282595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b630477d745d6bc2585433865553b46e9a6a89_7e5f3686-5454-4fb7-818f-4e5df604c4b3.webp?v=1714888682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b630477d745d6bc2585433865553b46e9a6a89_7e5f3686-5454-4fb7-818f-4e5df604c4b3.webp?v=1714888682","width":2000},{"alt":null,"id":23889714806883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685","width":2000},{"alt":null,"id":23889715363939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0017c727719696a4ee80456260ffc9c6939ed6c_794e536b-48b1-4f93-a6fd-568e0cc488b3.webp?v=1714888687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0017c727719696a4ee80456260ffc9c6939ed6c_794e536b-48b1-4f93-a6fd-568e0cc488b3.webp?v=1714888687","width":2000},{"alt":null,"id":23889715888227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e66acd585375b2164143d317cac538b9b4f52d_99a5711e-092c-41a0-abf9-1820f3c2e1db.webp?v=1714888689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e66acd585375b2164143d317cac538b9b4f52d_99a5711e-092c-41a0-abf9-1820f3c2e1db.webp?v=1714888689","width":2000},{"alt":null,"id":23889716379747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59cddb5dccdcca03a3b9ac1b76f4c8b4185d63c6_1df366ad-7d2d-48bb-a846-a145ea7aa8e4.webp?v=1714888691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59cddb5dccdcca03a3b9ac1b76f4c8b4185d63c6_1df366ad-7d2d-48bb-a846-a145ea7aa8e4.webp?v=1714888691","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903134343267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-RL02","requires_shipping":true,"taxable":true,"featured_image":{"id":31484420784227,"product_id":7413996093539,"position":8,"created_at":"2024-05-05T13:58:05+08:00","updated_at":"2024-05-05T13:58:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685","variant_ids":[41903134343267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Miracles Take Time - 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-RL02","featured_media":{"alt":null,"id":23889714806883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903134638179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-RL02","requires_shipping":true,"taxable":true,"featured_image":{"id":31484419899491,"product_id":7413996093539,"position":6,"created_at":"2024-05-05T13:58:00+08:00","updated_at":"2024-05-05T13:58:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244453ecfb7682638a3c0d58f90fb9b3d344a1c_c7ebcf9e-9a0d-416a-b3db-9d327b5beac8.webp?v=1714888680","variant_ids":[41903134638179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Miracles Take Time - 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-RL02","featured_media":{"alt":null,"id":23889713922147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c244453ecfb7682638a3c0d58f90fb9b3d344a1c_c7ebcf9e-9a0d-416a-b3db-9d327b5beac8.webp?v=1714888680"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903134343267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-RL02","requires_shipping":true,"taxable":true,"featured_image":{"id":31484420784227,"product_id":7413996093539,"position":8,"created_at":"2024-05-05T13:58:05+08:00","updated_at":"2024-05-05T13:58:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685","variant_ids":[41903134343267]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Twenty One Point Five - 21.5 - Miracles Take Time - 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-RL02","featured_media":{"alt":null,"id":23889714806883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e65f00e78b749e01da6a8d3c59d75bbd6459070_76b9abdb-f38e-4d01-9c1a-fb530239d8c1.webp?v=1714888685"}},"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: "停產"
}