$product = {"id":7415017209955,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 復古漫畫插圖","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sb08","description":null,"published_at":"2024-06-11T17:55:44+08:00","created_at":"2024-05-05T20:07:05+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 12 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":41910976774243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31487934824547,"product_id":7415017209955,"position":6,"created_at":"2024-05-05T20:07:19+08:00","updated_at":"2024-05-05T20:07:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839","variant_ids":[41910976774243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-SB08","featured_media":{"alt":null,"id":23893278851171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e9b837862212eeec357cf67666e73cd2cfc21c_a317f301-b83c-4fff-ab57-c1c514329aec.webp?v=1714910827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bd9e1a4ba3dca667f4b0f584864a798cfa98c2f_338d878c-1d19-4c82-a602-dd544f0ead71.webp?v=1714910830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56282ee6e226135f9715de581aaee7b67e8464a4_fb6daa04-aded-4855-bac5-9df2e9152a73.webp?v=1714910832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa287c713e882365721f7c07f66bce5115b2d65_c6550c6e-f2fc-4555-a96c-0f8baa07359b.webp?v=1714910834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58dd0c868d3a11c349bf46fc1b2ba455ca958206_2ba1de52-2c9f-49aa-8d1f-b1fe2b237124.webp?v=1714910837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79607f4fadf19fafba7f63093ae1118e642c3c3_7a02d460-6e7f-4981-96fd-88c9fb7a8f68.webp?v=1714910842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3e36e3639c21ee98c6ff957e8d644b2d47003f0_b9f95ffe-0aec-44b7-8dfc-dad2d8a9b8c1.webp?v=1714910844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9943b35b02ea058c39113d7efde3c1ce61e9a703_4144faf4-7225-40c3-83dd-26fa772f2d12.webp?v=1714910846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa551d5f0d9d29dab057f5252927c1fca10f831f_750616c9-4633-4da3-949b-761d47935413.webp?v=1714910849"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e9b837862212eeec357cf67666e73cd2cfc21c_a317f301-b83c-4fff-ab57-c1c514329aec.webp?v=1714910827","options":["color"],"media":[{"alt":null,"id":23893275803747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e9b837862212eeec357cf67666e73cd2cfc21c_a317f301-b83c-4fff-ab57-c1c514329aec.webp?v=1714910827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e9b837862212eeec357cf67666e73cd2cfc21c_a317f301-b83c-4fff-ab57-c1c514329aec.webp?v=1714910827","width":2000},{"alt":null,"id":23893276426339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bd9e1a4ba3dca667f4b0f584864a798cfa98c2f_338d878c-1d19-4c82-a602-dd544f0ead71.webp?v=1714910830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bd9e1a4ba3dca667f4b0f584864a798cfa98c2f_338d878c-1d19-4c82-a602-dd544f0ead71.webp?v=1714910830","width":2000},{"alt":null,"id":23893277081699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56282ee6e226135f9715de581aaee7b67e8464a4_fb6daa04-aded-4855-bac5-9df2e9152a73.webp?v=1714910832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56282ee6e226135f9715de581aaee7b67e8464a4_fb6daa04-aded-4855-bac5-9df2e9152a73.webp?v=1714910832","width":2000},{"alt":null,"id":23893277868131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa287c713e882365721f7c07f66bce5115b2d65_c6550c6e-f2fc-4555-a96c-0f8baa07359b.webp?v=1714910834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa287c713e882365721f7c07f66bce5115b2d65_c6550c6e-f2fc-4555-a96c-0f8baa07359b.webp?v=1714910834","width":2000},{"alt":null,"id":23893278457955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58dd0c868d3a11c349bf46fc1b2ba455ca958206_2ba1de52-2c9f-49aa-8d1f-b1fe2b237124.webp?v=1714910837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58dd0c868d3a11c349bf46fc1b2ba455ca958206_2ba1de52-2c9f-49aa-8d1f-b1fe2b237124.webp?v=1714910837","width":2000},{"alt":null,"id":23893278851171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839","width":2000},{"alt":null,"id":23893279604835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79607f4fadf19fafba7f63093ae1118e642c3c3_7a02d460-6e7f-4981-96fd-88c9fb7a8f68.webp?v=1714910842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a79607f4fadf19fafba7f63093ae1118e642c3c3_7a02d460-6e7f-4981-96fd-88c9fb7a8f68.webp?v=1714910842","width":2000},{"alt":null,"id":23893279998051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3e36e3639c21ee98c6ff957e8d644b2d47003f0_b9f95ffe-0aec-44b7-8dfc-dad2d8a9b8c1.webp?v=1714910844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3e36e3639c21ee98c6ff957e8d644b2d47003f0_b9f95ffe-0aec-44b7-8dfc-dad2d8a9b8c1.webp?v=1714910844","width":2000},{"alt":null,"id":23893280718947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9943b35b02ea058c39113d7efde3c1ce61e9a703_4144faf4-7225-40c3-83dd-26fa772f2d12.webp?v=1714910846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9943b35b02ea058c39113d7efde3c1ce61e9a703_4144faf4-7225-40c3-83dd-26fa772f2d12.webp?v=1714910846","width":2000},{"alt":null,"id":23893281079395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa551d5f0d9d29dab057f5252927c1fca10f831f_750616c9-4633-4da3-949b-761d47935413.webp?v=1714910849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa551d5f0d9d29dab057f5252927c1fca10f831f_750616c9-4633-4da3-949b-761d47935413.webp?v=1714910849","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910976774243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31487934824547,"product_id":7415017209955,"position":6,"created_at":"2024-05-05T20:07:19+08:00","updated_at":"2024-05-05T20:07:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839","variant_ids":[41910976774243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-SB08","featured_media":{"alt":null,"id":23893278851171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910976774243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31487934824547,"product_id":7415017209955,"position":6,"created_at":"2024-05-05T20:07:19+08:00","updated_at":"2024-05-05T20:07:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839","variant_ids":[41910976774243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-SB08","featured_media":{"alt":null,"id":23893278851171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7df4c8f81f544fbe61e5b8e2d604976fa822f71_a57cade8-56b0-4173-b8c9-952e0c7c3e70.webp?v=1714910839"}},"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: "停產"
}