$product = {"id":7414037971043,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(亞馬遜雨林)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af09","description":null,"published_at":"2024-06-11T17:48:26+08:00","created_at":"2024-05-05T14:06:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41903633301603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520693859,"product_id":7414037971043,"position":2,"created_at":"2024-05-05T14:06:06+08:00","updated_at":"2024-05-05T14:06:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166","variant_ids":[41903633301603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(亞馬遜雨林) - 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-AF09","featured_media":{"alt":null,"id":23889814847587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903634022499,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520333411,"product_id":7414037971043,"position":1,"created_at":"2024-05-05T14:06:04+08:00","updated_at":"2024-05-05T14:06:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164","variant_ids":[41903634022499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(亞馬遜雨林) - 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-AF09","featured_media":{"alt":null,"id":23889814454371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf469ef6d6cec23d9cf99f8fd090da7a2982a216_f7e016ab-0936-4e28-a393-fa02647e01ea.webp?v=1714889168","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77a550394e55c2e9cea62144b7de238ccc2c8911_65e09317-7c71-4ee2-9980-d359490cc1b4.webp?v=1714889171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaff2ee9d77815f9d05991fa658526dfc58519_fe73f6a1-df06-4a73-bab9-9322ab77993b.webp?v=1714889173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5fc884131844a2dfff5c6cbc6f77a0bc1803b25_d1f7bdc0-1903-4c02-af32-a34e35a39bcc.webp?v=1714889176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c5fda7e523b20beed79e315d18b284517abcb6_1d6bf367-2f75-44e9-9d97-17e59698e5ea.webp?v=1714889178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffa69e390dab93990f082ae9b774a6c861cf16b7_1158d6ac-1cf4-4558-a1f3-f19f5974c3a7.webp?v=1714889181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a739bbdfd1697bd3485c1e5ecb4a12022454f80_2e65e061-10d9-4c3c-911c-5a67125958a6.webp?v=1714889183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1944ad3fc3f9ee6f1ba255b04b0f757b9e89acd1_17c32678-70cd-4339-9e47-a97c63cf06af.webp?v=1714889185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ac25282306fbd9db96495cc6b4b96e0bf65310_77d6858d-a8cb-44bb-9e47-b93a274217f7.webp?v=1714889188"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164","options":["color"],"media":[{"alt":null,"id":23889814454371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164","width":2000},{"alt":null,"id":23889814847587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166","width":2000},{"alt":null,"id":23889815339107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf469ef6d6cec23d9cf99f8fd090da7a2982a216_f7e016ab-0936-4e28-a393-fa02647e01ea.webp?v=1714889168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf469ef6d6cec23d9cf99f8fd090da7a2982a216_f7e016ab-0936-4e28-a393-fa02647e01ea.webp?v=1714889168","width":2000},{"alt":null,"id":23889816223843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77a550394e55c2e9cea62144b7de238ccc2c8911_65e09317-7c71-4ee2-9980-d359490cc1b4.webp?v=1714889171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77a550394e55c2e9cea62144b7de238ccc2c8911_65e09317-7c71-4ee2-9980-d359490cc1b4.webp?v=1714889171","width":2000},{"alt":null,"id":23889817927779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaff2ee9d77815f9d05991fa658526dfc58519_fe73f6a1-df06-4a73-bab9-9322ab77993b.webp?v=1714889173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8faaff2ee9d77815f9d05991fa658526dfc58519_fe73f6a1-df06-4a73-bab9-9322ab77993b.webp?v=1714889173","width":2000},{"alt":null,"id":23889820942435,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5fc884131844a2dfff5c6cbc6f77a0bc1803b25_d1f7bdc0-1903-4c02-af32-a34e35a39bcc.webp?v=1714889176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5fc884131844a2dfff5c6cbc6f77a0bc1803b25_d1f7bdc0-1903-4c02-af32-a34e35a39bcc.webp?v=1714889176","width":2000},{"alt":null,"id":23889822711907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c5fda7e523b20beed79e315d18b284517abcb6_1d6bf367-2f75-44e9-9d97-17e59698e5ea.webp?v=1714889178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c5fda7e523b20beed79e315d18b284517abcb6_1d6bf367-2f75-44e9-9d97-17e59698e5ea.webp?v=1714889178","width":2000},{"alt":null,"id":23889824645219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffa69e390dab93990f082ae9b774a6c861cf16b7_1158d6ac-1cf4-4558-a1f3-f19f5974c3a7.webp?v=1714889181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffa69e390dab93990f082ae9b774a6c861cf16b7_1158d6ac-1cf4-4558-a1f3-f19f5974c3a7.webp?v=1714889181","width":2000},{"alt":null,"id":23889826316387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a739bbdfd1697bd3485c1e5ecb4a12022454f80_2e65e061-10d9-4c3c-911c-5a67125958a6.webp?v=1714889183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a739bbdfd1697bd3485c1e5ecb4a12022454f80_2e65e061-10d9-4c3c-911c-5a67125958a6.webp?v=1714889183","width":2000},{"alt":null,"id":23889828118627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1944ad3fc3f9ee6f1ba255b04b0f757b9e89acd1_17c32678-70cd-4339-9e47-a97c63cf06af.webp?v=1714889185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1944ad3fc3f9ee6f1ba255b04b0f757b9e89acd1_17c32678-70cd-4339-9e47-a97c63cf06af.webp?v=1714889185","width":2000},{"alt":null,"id":23889829953635,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ac25282306fbd9db96495cc6b4b96e0bf65310_77d6858d-a8cb-44bb-9e47-b93a274217f7.webp?v=1714889188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74ac25282306fbd9db96495cc6b4b96e0bf65310_77d6858d-a8cb-44bb-9e47-b93a274217f7.webp?v=1714889188","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903633301603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520693859,"product_id":7414037971043,"position":2,"created_at":"2024-05-05T14:06:06+08:00","updated_at":"2024-05-05T14:06:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166","variant_ids":[41903633301603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(亞馬遜雨林) - 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-AF09","featured_media":{"alt":null,"id":23889814847587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903634022499,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520333411,"product_id":7414037971043,"position":1,"created_at":"2024-05-05T14:06:04+08:00","updated_at":"2024-05-05T14:06:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164","variant_ids":[41903634022499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(亞馬遜雨林) - 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-AF09","featured_media":{"alt":null,"id":23889814454371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28003eb69230de1da534d85c1c47464c4bb63d7f_368482e2-61d9-4289-821a-060c72247278.webp?v=1714889164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903633301603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484520693859,"product_id":7414037971043,"position":2,"created_at":"2024-05-05T14:06:06+08:00","updated_at":"2024-05-05T14:06:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166","variant_ids":[41903633301603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(亞馬遜雨林) - 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-AF09","featured_media":{"alt":null,"id":23889814847587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe3ad7f89f2c9c46ed83fae670458faee3df0a2_193f13e7-16de-4666-95bc-ef94f3232df2.webp?v=1714889166"}},"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: "停產"
}