$product = {"id":7414689431651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(錫安國家公園)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af14","description":null,"published_at":"2024-06-11T17:53:09+08:00","created_at":"2024-05-05T14:38:16+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":41908306247779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486037590115,"product_id":7414689431651,"position":4,"created_at":"2024-05-05T14:38:26+08:00","updated_at":"2024-05-05T14:38:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106","variant_ids":[41908306247779]},"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-AF14","featured_media":{"alt":null,"id":23891373162595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908306542691,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486040440931,"product_id":7414689431651,"position":6,"created_at":"2024-05-05T14:38:31+08:00","updated_at":"2024-05-05T14:38:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67b74e378dcf08761b04754d3fe7601c6366ad7_73156f8f-7243-4339-a2b1-a9b179a40699.webp?v=1714891111","variant_ids":[41908306542691]},"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-AF14","featured_media":{"alt":null,"id":23891375915107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67b74e378dcf08761b04754d3fe7601c6366ad7_73156f8f-7243-4339-a2b1-a9b179a40699.webp?v=1714891111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdf5938467f69be6680aaad939d12b101c9324b6_cb3fcd16-80cf-48c2-b9af-56000f8de0e7.webp?v=1714891099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c16bfbc6c048d071ed3499f3035a750e687a0ea_c88cb7c4-af07-440d-b735-ee6f8a4862ed.webp?v=1714891101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82669e4bc8a687a468a3a132c12ef2cc8f754356_eb118b40-e86b-4bad-abf2-f39b84bfd052.webp?v=1714891104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a7d5da1043fbcc1731f6d0d65ad24a0ddd24db_5a9605e4-8b71-4bc1-a325-44509ee7be5a.webp?v=1714891108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67b74e378dcf08761b04754d3fe7601c6366ad7_73156f8f-7243-4339-a2b1-a9b179a40699.webp?v=1714891111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc7053c1eb58b470c75a216d6884bb46cbcbb344_2213c372-9f6e-409d-9baf-45e3be22ef6a.webp?v=1714891113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149f9b489490e78d39955ce9e0586f517e320324_0c74fe9c-ebbc-4a1e-a7d0-74069d6249e9.webp?v=1714891116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a38d4515850fe75a506c205afa520a9a210c690c_cec5c577-9e8f-4222-9726-f49c87b579ea.webp?v=1714891118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea28c488b3f94e5edde6057d67eca74588b0e715_b10c24f4-f664-410d-bf2f-932e2cc66842.webp?v=1714891121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b4ee6e56adeaa00d46d5e063d1b7776bcaea39_160bd9a1-4817-4b5c-bfbe-5672ce6566ca.webp?v=1714891123"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdf5938467f69be6680aaad939d12b101c9324b6_cb3fcd16-80cf-48c2-b9af-56000f8de0e7.webp?v=1714891099","options":["color"],"media":[{"alt":null,"id":23891368706147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdf5938467f69be6680aaad939d12b101c9324b6_cb3fcd16-80cf-48c2-b9af-56000f8de0e7.webp?v=1714891099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdf5938467f69be6680aaad939d12b101c9324b6_cb3fcd16-80cf-48c2-b9af-56000f8de0e7.webp?v=1714891099","width":2000},{"alt":null,"id":23891370442851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c16bfbc6c048d071ed3499f3035a750e687a0ea_c88cb7c4-af07-440d-b735-ee6f8a4862ed.webp?v=1714891101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c16bfbc6c048d071ed3499f3035a750e687a0ea_c88cb7c4-af07-440d-b735-ee6f8a4862ed.webp?v=1714891101","width":2000},{"alt":null,"id":23891371753571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82669e4bc8a687a468a3a132c12ef2cc8f754356_eb118b40-e86b-4bad-abf2-f39b84bfd052.webp?v=1714891104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82669e4bc8a687a468a3a132c12ef2cc8f754356_eb118b40-e86b-4bad-abf2-f39b84bfd052.webp?v=1714891104","width":2000},{"alt":null,"id":23891373162595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106","width":2000},{"alt":null,"id":23891374538851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a7d5da1043fbcc1731f6d0d65ad24a0ddd24db_5a9605e4-8b71-4bc1-a325-44509ee7be5a.webp?v=1714891108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a7d5da1043fbcc1731f6d0d65ad24a0ddd24db_5a9605e4-8b71-4bc1-a325-44509ee7be5a.webp?v=1714891108","width":2000},{"alt":null,"id":23891375915107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67b74e378dcf08761b04754d3fe7601c6366ad7_73156f8f-7243-4339-a2b1-a9b179a40699.webp?v=1714891111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67b74e378dcf08761b04754d3fe7601c6366ad7_73156f8f-7243-4339-a2b1-a9b179a40699.webp?v=1714891111","width":2000},{"alt":null,"id":23891377455203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc7053c1eb58b470c75a216d6884bb46cbcbb344_2213c372-9f6e-409d-9baf-45e3be22ef6a.webp?v=1714891113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc7053c1eb58b470c75a216d6884bb46cbcbb344_2213c372-9f6e-409d-9baf-45e3be22ef6a.webp?v=1714891113","width":2000},{"alt":null,"id":23891378896995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149f9b489490e78d39955ce9e0586f517e320324_0c74fe9c-ebbc-4a1e-a7d0-74069d6249e9.webp?v=1714891116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/149f9b489490e78d39955ce9e0586f517e320324_0c74fe9c-ebbc-4a1e-a7d0-74069d6249e9.webp?v=1714891116","width":2000},{"alt":null,"id":23891380338787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a38d4515850fe75a506c205afa520a9a210c690c_cec5c577-9e8f-4222-9726-f49c87b579ea.webp?v=1714891118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a38d4515850fe75a506c205afa520a9a210c690c_cec5c577-9e8f-4222-9726-f49c87b579ea.webp?v=1714891118","width":2000},{"alt":null,"id":23891381125219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea28c488b3f94e5edde6057d67eca74588b0e715_b10c24f4-f664-410d-bf2f-932e2cc66842.webp?v=1714891121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea28c488b3f94e5edde6057d67eca74588b0e715_b10c24f4-f664-410d-bf2f-932e2cc66842.webp?v=1714891121","width":2000},{"alt":null,"id":23891382304867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b4ee6e56adeaa00d46d5e063d1b7776bcaea39_160bd9a1-4817-4b5c-bfbe-5672ce6566ca.webp?v=1714891123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b4ee6e56adeaa00d46d5e063d1b7776bcaea39_160bd9a1-4817-4b5c-bfbe-5672ce6566ca.webp?v=1714891123","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41908306247779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486037590115,"product_id":7414689431651,"position":4,"created_at":"2024-05-05T14:38:26+08:00","updated_at":"2024-05-05T14:38:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106","variant_ids":[41908306247779]},"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-AF14","featured_media":{"alt":null,"id":23891373162595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908306542691,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486040440931,"product_id":7414689431651,"position":6,"created_at":"2024-05-05T14:38:31+08:00","updated_at":"2024-05-05T14:38:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67b74e378dcf08761b04754d3fe7601c6366ad7_73156f8f-7243-4339-a2b1-a9b179a40699.webp?v=1714891111","variant_ids":[41908306542691]},"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-AF14","featured_media":{"alt":null,"id":23891375915107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67b74e378dcf08761b04754d3fe7601c6366ad7_73156f8f-7243-4339-a2b1-a9b179a40699.webp?v=1714891111"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41908306247779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF14","requires_shipping":true,"taxable":true,"featured_image":{"id":31486037590115,"product_id":7414689431651,"position":4,"created_at":"2024-05-05T14:38:26+08:00","updated_at":"2024-05-05T14:38:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106","variant_ids":[41908306247779]},"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-AF14","featured_media":{"alt":null,"id":23891373162595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21e49cdeb84494ef0c6b46c1a326fe7b5a1102a9_a39a9054-1101-4e6c-8b03-51bf4d5e4554.webp?v=1714891106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}