$product = {"id":7413982167139,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(優勝美地國家公園)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af13","description":null,"published_at":"2024-06-11T17:46:49+08:00","created_at":"2024-05-05T13:55:06+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":41902979580003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383920227,"product_id":7413982167139,"position":1,"created_at":"2024-05-05T13:55:08+08:00","updated_at":"2024-05-05T13:55:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508","variant_ids":[41902979580003]},"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-AF13","featured_media":{"alt":null,"id":23889677779043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902979874915,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484385296483,"product_id":7413982167139,"position":4,"created_at":"2024-05-05T13:55:15+08:00","updated_at":"2024-05-05T13:55:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfb2a88591afc8631ed80cd66a2f9f45517bc621_59f00c43-2288-4760-a6fb-5112adc9de0d.webp?v=1714888515","variant_ids":[41902979874915]},"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-AF13","featured_media":{"alt":null,"id":23889679188067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfb2a88591afc8631ed80cd66a2f9f45517bc621_59f00c43-2288-4760-a6fb-5112adc9de0d.webp?v=1714888515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a73664f3285341650d57cc46ea414065c9bc1a9_8c327ade-5cf3-4066-8fec-ea5ae31be347.webp?v=1714888511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b310ed17504125dd2ee6368afc28dcb8c3fffb_ac5164f1-e91a-40d2-928b-2974ea9a7e81.webp?v=1714888513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfb2a88591afc8631ed80cd66a2f9f45517bc621_59f00c43-2288-4760-a6fb-5112adc9de0d.webp?v=1714888515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907fe54e858d74518369af3e13a09f9be694ab2f_753752a1-1bbf-44d5-9710-8330142936fe.webp?v=1714888518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae437d3489ee07ecc77223852687889977e65bc6_09df5abf-a319-43ad-a9e6-15b4d7440350.webp?v=1714888520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319f5382d5ea9ddc112bfaccc174bdcb07db8cd3_d49aab8b-1c75-4562-b6d9-f807e674029e.webp?v=1714888522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/888fc802d936bf863b8d97637db8dd039fc7ffce_3afc793d-9c00-4fbf-ae8a-4956d8c5f88d.webp?v=1714888524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b282196579866be04d678814b1aa5c4025bee36_231edc0a-f746-48e4-ab5c-cc7c7a4dba58.webp?v=1714888527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46037115c729491be4f0b9328401283a41ff8c7c_613e2aaa-de11-4f1e-a58a-86618520c082.webp?v=1714888529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3717c6e2d79b7b7e404266517e72c081491941b1_0d8ac8d8-7740-4492-8d96-fd292e7a07f6.webp?v=1714888532"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508","options":["color"],"media":[{"alt":null,"id":23889677779043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508","width":2000},{"alt":null,"id":23889678303331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a73664f3285341650d57cc46ea414065c9bc1a9_8c327ade-5cf3-4066-8fec-ea5ae31be347.webp?v=1714888511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a73664f3285341650d57cc46ea414065c9bc1a9_8c327ade-5cf3-4066-8fec-ea5ae31be347.webp?v=1714888511","width":2000},{"alt":null,"id":23889678663779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b310ed17504125dd2ee6368afc28dcb8c3fffb_ac5164f1-e91a-40d2-928b-2974ea9a7e81.webp?v=1714888513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b310ed17504125dd2ee6368afc28dcb8c3fffb_ac5164f1-e91a-40d2-928b-2974ea9a7e81.webp?v=1714888513","width":2000},{"alt":null,"id":23889679188067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfb2a88591afc8631ed80cd66a2f9f45517bc621_59f00c43-2288-4760-a6fb-5112adc9de0d.webp?v=1714888515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfb2a88591afc8631ed80cd66a2f9f45517bc621_59f00c43-2288-4760-a6fb-5112adc9de0d.webp?v=1714888515","width":2000},{"alt":null,"id":23889679712355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907fe54e858d74518369af3e13a09f9be694ab2f_753752a1-1bbf-44d5-9710-8330142936fe.webp?v=1714888518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/907fe54e858d74518369af3e13a09f9be694ab2f_753752a1-1bbf-44d5-9710-8330142936fe.webp?v=1714888518","width":2000},{"alt":null,"id":23889680367715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae437d3489ee07ecc77223852687889977e65bc6_09df5abf-a319-43ad-a9e6-15b4d7440350.webp?v=1714888520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae437d3489ee07ecc77223852687889977e65bc6_09df5abf-a319-43ad-a9e6-15b4d7440350.webp?v=1714888520","width":2000},{"alt":null,"id":23889680629859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319f5382d5ea9ddc112bfaccc174bdcb07db8cd3_d49aab8b-1c75-4562-b6d9-f807e674029e.webp?v=1714888522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319f5382d5ea9ddc112bfaccc174bdcb07db8cd3_d49aab8b-1c75-4562-b6d9-f807e674029e.webp?v=1714888522","width":2000},{"alt":null,"id":23889681219683,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/888fc802d936bf863b8d97637db8dd039fc7ffce_3afc793d-9c00-4fbf-ae8a-4956d8c5f88d.webp?v=1714888524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/888fc802d936bf863b8d97637db8dd039fc7ffce_3afc793d-9c00-4fbf-ae8a-4956d8c5f88d.webp?v=1714888524","width":2000},{"alt":null,"id":23889681514595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b282196579866be04d678814b1aa5c4025bee36_231edc0a-f746-48e4-ab5c-cc7c7a4dba58.webp?v=1714888527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b282196579866be04d678814b1aa5c4025bee36_231edc0a-f746-48e4-ab5c-cc7c7a4dba58.webp?v=1714888527","width":2000},{"alt":null,"id":23889681907811,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46037115c729491be4f0b9328401283a41ff8c7c_613e2aaa-de11-4f1e-a58a-86618520c082.webp?v=1714888529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46037115c729491be4f0b9328401283a41ff8c7c_613e2aaa-de11-4f1e-a58a-86618520c082.webp?v=1714888529","width":2000},{"alt":null,"id":23889682464867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3717c6e2d79b7b7e404266517e72c081491941b1_0d8ac8d8-7740-4492-8d96-fd292e7a07f6.webp?v=1714888532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3717c6e2d79b7b7e404266517e72c081491941b1_0d8ac8d8-7740-4492-8d96-fd292e7a07f6.webp?v=1714888532","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902979580003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383920227,"product_id":7413982167139,"position":1,"created_at":"2024-05-05T13:55:08+08:00","updated_at":"2024-05-05T13:55:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508","variant_ids":[41902979580003]},"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-AF13","featured_media":{"alt":null,"id":23889677779043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902979874915,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484385296483,"product_id":7413982167139,"position":4,"created_at":"2024-05-05T13:55:15+08:00","updated_at":"2024-05-05T13:55:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfb2a88591afc8631ed80cd66a2f9f45517bc621_59f00c43-2288-4760-a6fb-5112adc9de0d.webp?v=1714888515","variant_ids":[41902979874915]},"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-AF13","featured_media":{"alt":null,"id":23889679188067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfb2a88591afc8631ed80cd66a2f9f45517bc621_59f00c43-2288-4760-a6fb-5112adc9de0d.webp?v=1714888515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902979580003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF13","requires_shipping":true,"taxable":true,"featured_image":{"id":31484383920227,"product_id":7413982167139,"position":1,"created_at":"2024-05-05T13:55:08+08:00","updated_at":"2024-05-05T13:55:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508","variant_ids":[41902979580003]},"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-AF13","featured_media":{"alt":null,"id":23889677779043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8169089cc5fef4789a9c947b95d6d4803e127344_32cab1d7-a658-4c9a-b645-44e60aa87178.webp?v=1714888508"}},"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: "停產"
}