$product = {"id":7415117152355,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 經典Logo","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sb11","description":null,"published_at":"2024-06-11T17:58:25+08:00","created_at":"2024-05-05T20:25:59+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":41912055038051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488201916515,"product_id":7415117152355,"position":2,"created_at":"2024-05-05T20:26:04+08:00","updated_at":"2024-05-05T20:26:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964","variant_ids":[41912055038051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 經典Logo - 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-SB11","featured_media":{"alt":null,"id":23893546598499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b87a5925d76ee554d16234ae58f32a5122c665_180c4851-d0f7-4f8e-b6bd-34ce7da13a03.webp?v=1714911962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4fd22593e9a5327890535c985160e230cbc091_85fa455b-0f22-4395-8548-5cb97b2c8ddc.webp?v=1714911966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8361d5cd9a82675e345a8c63502a5dc99ea3c66_c3c332da-6fad-4c31-bb8b-ff19f5f2ff76.webp?v=1714911968","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f117593b0e42152d14c2f2bae53ccaa5d6675_2fb810da-d3c5-4a3c-ac91-af29f5af1074.webp?v=1714911971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1aa1a49f80fa47b96cff0939afd1eeef2b45f0_6e1051f8-1237-4058-8d14-9c503c4271eb.webp?v=1714911973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a06973ab57291ec1a8719d1f09ef3ed2ada6c6a_9b904e11-8874-4d6f-858c-9ddcd2450d0b.webp?v=1714911976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1ffc013cd27ecdb2c3f24360177750d8732180_62f3d018-a0a1-419d-a5a9-3fee8553e2cb.webp?v=1714911978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7ce0825e15b23889f3a5a3be77d54b9f6878a60_43cd5626-fbb2-42c1-8ab5-22a8978c921a.webp?v=1714911980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae7cdb3e31d2001471e4ac00e4e3fa7907c5ba4_b6ce6cf1-5758-4259-99a2-14f7833cb81d.webp?v=1714911983"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b87a5925d76ee554d16234ae58f32a5122c665_180c4851-d0f7-4f8e-b6bd-34ce7da13a03.webp?v=1714911962","options":["color"],"media":[{"alt":null,"id":23893545975907,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b87a5925d76ee554d16234ae58f32a5122c665_180c4851-d0f7-4f8e-b6bd-34ce7da13a03.webp?v=1714911962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b87a5925d76ee554d16234ae58f32a5122c665_180c4851-d0f7-4f8e-b6bd-34ce7da13a03.webp?v=1714911962","width":2000},{"alt":null,"id":23893546598499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964","width":2000},{"alt":null,"id":23893547352163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4fd22593e9a5327890535c985160e230cbc091_85fa455b-0f22-4395-8548-5cb97b2c8ddc.webp?v=1714911966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4fd22593e9a5327890535c985160e230cbc091_85fa455b-0f22-4395-8548-5cb97b2c8ddc.webp?v=1714911966","width":2000},{"alt":null,"id":23893547778147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8361d5cd9a82675e345a8c63502a5dc99ea3c66_c3c332da-6fad-4c31-bb8b-ff19f5f2ff76.webp?v=1714911968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8361d5cd9a82675e345a8c63502a5dc99ea3c66_c3c332da-6fad-4c31-bb8b-ff19f5f2ff76.webp?v=1714911968","width":2000},{"alt":null,"id":23893548171363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f117593b0e42152d14c2f2bae53ccaa5d6675_2fb810da-d3c5-4a3c-ac91-af29f5af1074.webp?v=1714911971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f117593b0e42152d14c2f2bae53ccaa5d6675_2fb810da-d3c5-4a3c-ac91-af29f5af1074.webp?v=1714911971","width":2000},{"alt":null,"id":23893548761187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1aa1a49f80fa47b96cff0939afd1eeef2b45f0_6e1051f8-1237-4058-8d14-9c503c4271eb.webp?v=1714911973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1aa1a49f80fa47b96cff0939afd1eeef2b45f0_6e1051f8-1237-4058-8d14-9c503c4271eb.webp?v=1714911973","width":2000},{"alt":null,"id":23893549154403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a06973ab57291ec1a8719d1f09ef3ed2ada6c6a_9b904e11-8874-4d6f-858c-9ddcd2450d0b.webp?v=1714911976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a06973ab57291ec1a8719d1f09ef3ed2ada6c6a_9b904e11-8874-4d6f-858c-9ddcd2450d0b.webp?v=1714911976","width":2000},{"alt":null,"id":23893549613155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1ffc013cd27ecdb2c3f24360177750d8732180_62f3d018-a0a1-419d-a5a9-3fee8553e2cb.webp?v=1714911978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1ffc013cd27ecdb2c3f24360177750d8732180_62f3d018-a0a1-419d-a5a9-3fee8553e2cb.webp?v=1714911978","width":2000},{"alt":null,"id":23893549875299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7ce0825e15b23889f3a5a3be77d54b9f6878a60_43cd5626-fbb2-42c1-8ab5-22a8978c921a.webp?v=1714911980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7ce0825e15b23889f3a5a3be77d54b9f6878a60_43cd5626-fbb2-42c1-8ab5-22a8978c921a.webp?v=1714911980","width":2000},{"alt":null,"id":23893550923875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae7cdb3e31d2001471e4ac00e4e3fa7907c5ba4_b6ce6cf1-5758-4259-99a2-14f7833cb81d.webp?v=1714911983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae7cdb3e31d2001471e4ac00e4e3fa7907c5ba4_b6ce6cf1-5758-4259-99a2-14f7833cb81d.webp?v=1714911983","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41912055038051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488201916515,"product_id":7415117152355,"position":2,"created_at":"2024-05-05T20:26:04+08:00","updated_at":"2024-05-05T20:26:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964","variant_ids":[41912055038051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 經典Logo - 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-SB11","featured_media":{"alt":null,"id":23893546598499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41912055038051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488201916515,"product_id":7415117152355,"position":2,"created_at":"2024-05-05T20:26:04+08:00","updated_at":"2024-05-05T20:26:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964","variant_ids":[41912055038051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 經典Logo - 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-SB11","featured_media":{"alt":null,"id":23893546598499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6ad20f4d947e1affb3918b6b18fcd963b7d9c20_22235965-9794-4aeb-bd1c-b0218d824bbc.webp?v=1714911964"}},"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: "停產"
}