$product = {"id":7415056236643,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 小丑","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sb14","description":null,"published_at":"2024-06-11T17:56:47+08:00","created_at":"2024-05-05T20:14:24+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":41911402365027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31488038436963,"product_id":7415056236643,"position":6,"created_at":"2024-05-05T20:14:40+08:00","updated_at":"2024-05-05T20:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280","variant_ids":[41911402365027]},"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-SB14","featured_media":{"alt":null,"id":23893382791267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a933e5b938345200cdbcf13ac3025a37462ed7b_c28075b2-1b6c-409c-ba1a-709f27d2cf94.webp?v=1714911267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b29fca68bdf4138ba51d48c08b41d7f1f45c0e7_5a59a10d-efae-4a77-8e0d-52aea23a0983.webp?v=1714911270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5274e81557f137cc8a490f461aa6b2ce03e83_9ae173c6-2a41-4794-a1a8-749ba49cb072.webp?v=1714911272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c45ee80c53adc9365e09c198043e1d3e6a3a9dd_a2ca9533-2609-4cfc-b2b2-c6077b77a583.webp?v=1714911275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cfc9709d008ec3746e1ca0abc157d1d702f9be2_0c23f2e3-d934-4857-9884-52b2ff234970.webp?v=1714911277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc4dbbca2ee4be65a7acb72d5baa07ac57608e5_ce763071-bfe7-4b91-be6c-eeff93c0eeba.webp?v=1714911282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa24da0d66b402b4bab112220b247f29078e339c_4db655d6-710a-4196-89eb-0016c4f1d023.webp?v=1714911285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c2a855b7e59eb5c92b62d145c829e4d0229e486_b4f968b8-e28b-4399-b667-9ec85f9d60ff.webp?v=1714911287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b15609bfdc7b41352b50cae9e8c6779abbe146_9b975415-3d16-41c1-87ea-8e59173b5aa6.webp?v=1714911290"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a933e5b938345200cdbcf13ac3025a37462ed7b_c28075b2-1b6c-409c-ba1a-709f27d2cf94.webp?v=1714911267","options":["color"],"media":[{"alt":null,"id":23893379711075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a933e5b938345200cdbcf13ac3025a37462ed7b_c28075b2-1b6c-409c-ba1a-709f27d2cf94.webp?v=1714911267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a933e5b938345200cdbcf13ac3025a37462ed7b_c28075b2-1b6c-409c-ba1a-709f27d2cf94.webp?v=1714911267","width":2000},{"alt":null,"id":23893380300899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b29fca68bdf4138ba51d48c08b41d7f1f45c0e7_5a59a10d-efae-4a77-8e0d-52aea23a0983.webp?v=1714911270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b29fca68bdf4138ba51d48c08b41d7f1f45c0e7_5a59a10d-efae-4a77-8e0d-52aea23a0983.webp?v=1714911270","width":2000},{"alt":null,"id":23893381120099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5274e81557f137cc8a490f461aa6b2ce03e83_9ae173c6-2a41-4794-a1a8-749ba49cb072.webp?v=1714911272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5274e81557f137cc8a490f461aa6b2ce03e83_9ae173c6-2a41-4794-a1a8-749ba49cb072.webp?v=1714911272","width":2000},{"alt":null,"id":23893381677155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c45ee80c53adc9365e09c198043e1d3e6a3a9dd_a2ca9533-2609-4cfc-b2b2-c6077b77a583.webp?v=1714911275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c45ee80c53adc9365e09c198043e1d3e6a3a9dd_a2ca9533-2609-4cfc-b2b2-c6077b77a583.webp?v=1714911275","width":2000},{"alt":null,"id":23893382299747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cfc9709d008ec3746e1ca0abc157d1d702f9be2_0c23f2e3-d934-4857-9884-52b2ff234970.webp?v=1714911277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cfc9709d008ec3746e1ca0abc157d1d702f9be2_0c23f2e3-d934-4857-9884-52b2ff234970.webp?v=1714911277","width":2000},{"alt":null,"id":23893382791267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280","width":2000},{"alt":null,"id":23893383315555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc4dbbca2ee4be65a7acb72d5baa07ac57608e5_ce763071-bfe7-4b91-be6c-eeff93c0eeba.webp?v=1714911282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc4dbbca2ee4be65a7acb72d5baa07ac57608e5_ce763071-bfe7-4b91-be6c-eeff93c0eeba.webp?v=1714911282","width":2000},{"alt":null,"id":23893383741539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa24da0d66b402b4bab112220b247f29078e339c_4db655d6-710a-4196-89eb-0016c4f1d023.webp?v=1714911285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa24da0d66b402b4bab112220b247f29078e339c_4db655d6-710a-4196-89eb-0016c4f1d023.webp?v=1714911285","width":2000},{"alt":null,"id":23893384626275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c2a855b7e59eb5c92b62d145c829e4d0229e486_b4f968b8-e28b-4399-b667-9ec85f9d60ff.webp?v=1714911287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c2a855b7e59eb5c92b62d145c829e4d0229e486_b4f968b8-e28b-4399-b667-9ec85f9d60ff.webp?v=1714911287","width":2000},{"alt":null,"id":23893385183331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b15609bfdc7b41352b50cae9e8c6779abbe146_9b975415-3d16-41c1-87ea-8e59173b5aa6.webp?v=1714911290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b15609bfdc7b41352b50cae9e8c6779abbe146_9b975415-3d16-41c1-87ea-8e59173b5aa6.webp?v=1714911290","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911402365027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31488038436963,"product_id":7415056236643,"position":6,"created_at":"2024-05-05T20:14:40+08:00","updated_at":"2024-05-05T20:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280","variant_ids":[41911402365027]},"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-SB14","featured_media":{"alt":null,"id":23893382791267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911402365027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31488038436963,"product_id":7415056236643,"position":6,"created_at":"2024-05-05T20:14:40+08:00","updated_at":"2024-05-05T20:14:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280","variant_ids":[41911402365027]},"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-SB14","featured_media":{"alt":null,"id":23893382791267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/398ed276a551cb84a33118a9d1311095feab1558_17a630f4-bf13-4f61-b192-19c782d062a6.webp?v=1714911280"}},"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: "停產"
}