$product = {"id":7414054322275,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb14","description":null,"published_at":"2024-06-11T17:48:34+08:00","created_at":"2024-05-05T14:07:07+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":41903785476195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484573515875,"product_id":7414054322275,"position":5,"created_at":"2024-05-05T14:07:20+08:00","updated_at":"2024-05-05T14:07:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240","variant_ids":[41903785476195]},"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-SB14","featured_media":{"alt":null,"id":23889868619875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903785967715,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484583510115,"product_id":7414054322275,"position":9,"created_at":"2024-05-05T14:07:38+08:00","updated_at":"2024-05-05T14:07:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49db8885e09dd5fc6f9593e6c61af8d138b9f042_a6ec2af4-db8c-4403-a2d2-c896fab10eba.webp?v=1714889258","variant_ids":[41903785967715]},"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-SB14","featured_media":{"alt":null,"id":23889878614115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49db8885e09dd5fc6f9593e6c61af8d138b9f042_a6ec2af4-db8c-4403-a2d2-c896fab10eba.webp?v=1714889258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea1ecebe0df9754d3d6d8cea69830dc4e5865e0_d46595f9-f8bc-4c0a-9535-65133f24955c.webp?v=1714889229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2501c5b71c71f467eb01e3a551db65da5b37d374_5b93354f-75be-4ecf-a151-65aed35bd2a0.webp?v=1714889232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0995922e68f0fab2c1cdcc569b90988d2e66d7e_2544f0b0-ab44-4d68-94f9-c317f59622ca.webp?v=1714889235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c163ca55ab1d9dea07a057eb1d915f0be2d5af10_59fb7255-35f9-4b0a-b315-1db7348c193e.webp?v=1714889237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163d4b43f57437eb87eb11eeab4456aede647170_136e493f-1ae3-4ca7-a95c-9ec9d6501c6b.webp?v=1714889242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316a86fca84c936cfbbae5fd4db80cfa39190bca_c5980428-cb15-4b02-8d62-e365bd3d4d52.webp?v=1714889245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3917fe931ac7ba9b61dc1797ba71aecc8d5cb778_6d4d638d-e2a9-4665-8a4d-cabb8e97084e.webp?v=1714889247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49db8885e09dd5fc6f9593e6c61af8d138b9f042_a6ec2af4-db8c-4403-a2d2-c896fab10eba.webp?v=1714889258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d8d7e0a8e58c71747f345512f536a59b58b1208_74951ada-bbea-48df-afe8-044d21c2e933.webp?v=1714889260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/782e09c72985e6fe18fc8f91422ccc2dd7a2bc1b_8d423e8b-6d5e-46d2-bd71-2a2c8fef72b9.webp?v=1714889263"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea1ecebe0df9754d3d6d8cea69830dc4e5865e0_d46595f9-f8bc-4c0a-9535-65133f24955c.webp?v=1714889229","options":["color"],"media":[{"alt":null,"id":23889862000739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea1ecebe0df9754d3d6d8cea69830dc4e5865e0_d46595f9-f8bc-4c0a-9535-65133f24955c.webp?v=1714889229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea1ecebe0df9754d3d6d8cea69830dc4e5865e0_d46595f9-f8bc-4c0a-9535-65133f24955c.webp?v=1714889229","width":2000},{"alt":null,"id":23889863671907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2501c5b71c71f467eb01e3a551db65da5b37d374_5b93354f-75be-4ecf-a151-65aed35bd2a0.webp?v=1714889232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2501c5b71c71f467eb01e3a551db65da5b37d374_5b93354f-75be-4ecf-a151-65aed35bd2a0.webp?v=1714889232","width":2000},{"alt":null,"id":23889865408611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0995922e68f0fab2c1cdcc569b90988d2e66d7e_2544f0b0-ab44-4d68-94f9-c317f59622ca.webp?v=1714889235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0995922e68f0fab2c1cdcc569b90988d2e66d7e_2544f0b0-ab44-4d68-94f9-c317f59622ca.webp?v=1714889235","width":2000},{"alt":null,"id":23889867014243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c163ca55ab1d9dea07a057eb1d915f0be2d5af10_59fb7255-35f9-4b0a-b315-1db7348c193e.webp?v=1714889237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c163ca55ab1d9dea07a057eb1d915f0be2d5af10_59fb7255-35f9-4b0a-b315-1db7348c193e.webp?v=1714889237","width":2000},{"alt":null,"id":23889868619875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240","width":2000},{"alt":null,"id":23889869930595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163d4b43f57437eb87eb11eeab4456aede647170_136e493f-1ae3-4ca7-a95c-9ec9d6501c6b.webp?v=1714889242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163d4b43f57437eb87eb11eeab4456aede647170_136e493f-1ae3-4ca7-a95c-9ec9d6501c6b.webp?v=1714889242","width":2000},{"alt":null,"id":23889871667299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316a86fca84c936cfbbae5fd4db80cfa39190bca_c5980428-cb15-4b02-8d62-e365bd3d4d52.webp?v=1714889245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/316a86fca84c936cfbbae5fd4db80cfa39190bca_c5980428-cb15-4b02-8d62-e365bd3d4d52.webp?v=1714889245","width":2000},{"alt":null,"id":23889873010787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3917fe931ac7ba9b61dc1797ba71aecc8d5cb778_6d4d638d-e2a9-4665-8a4d-cabb8e97084e.webp?v=1714889247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3917fe931ac7ba9b61dc1797ba71aecc8d5cb778_6d4d638d-e2a9-4665-8a4d-cabb8e97084e.webp?v=1714889247","width":2000},{"alt":null,"id":23889878614115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49db8885e09dd5fc6f9593e6c61af8d138b9f042_a6ec2af4-db8c-4403-a2d2-c896fab10eba.webp?v=1714889258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49db8885e09dd5fc6f9593e6c61af8d138b9f042_a6ec2af4-db8c-4403-a2d2-c896fab10eba.webp?v=1714889258","width":2000},{"alt":null,"id":23889879924835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d8d7e0a8e58c71747f345512f536a59b58b1208_74951ada-bbea-48df-afe8-044d21c2e933.webp?v=1714889260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d8d7e0a8e58c71747f345512f536a59b58b1208_74951ada-bbea-48df-afe8-044d21c2e933.webp?v=1714889260","width":2000},{"alt":null,"id":23889881104483,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/782e09c72985e6fe18fc8f91422ccc2dd7a2bc1b_8d423e8b-6d5e-46d2-bd71-2a2c8fef72b9.webp?v=1714889263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/782e09c72985e6fe18fc8f91422ccc2dd7a2bc1b_8d423e8b-6d5e-46d2-bd71-2a2c8fef72b9.webp?v=1714889263","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903785476195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484573515875,"product_id":7414054322275,"position":5,"created_at":"2024-05-05T14:07:20+08:00","updated_at":"2024-05-05T14:07:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240","variant_ids":[41903785476195]},"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-SB14","featured_media":{"alt":null,"id":23889868619875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903785967715,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484583510115,"product_id":7414054322275,"position":9,"created_at":"2024-05-05T14:07:38+08:00","updated_at":"2024-05-05T14:07:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49db8885e09dd5fc6f9593e6c61af8d138b9f042_a6ec2af4-db8c-4403-a2d2-c896fab10eba.webp?v=1714889258","variant_ids":[41903785967715]},"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-SB14","featured_media":{"alt":null,"id":23889878614115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49db8885e09dd5fc6f9593e6c61af8d138b9f042_a6ec2af4-db8c-4403-a2d2-c896fab10eba.webp?v=1714889258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903785476195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484573515875,"product_id":7414054322275,"position":5,"created_at":"2024-05-05T14:07:20+08:00","updated_at":"2024-05-05T14:07:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240","variant_ids":[41903785476195]},"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-SB14","featured_media":{"alt":null,"id":23889868619875,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3966b2e86b06469cd3ad4841d93dfa1aa257c2bd_900c9f2f-4750-4070-9b63-86deee6495c0.webp?v=1714889240"}},"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: "停產"
}