$product = {"id":7414988570723,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - Logo","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sb16","description":null,"published_at":"2024-06-11T17:54:58+08:00","created_at":"2024-05-05T20:01:40+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":41910673801315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31487862407267,"product_id":7414988570723,"position":7,"created_at":"2024-05-05T20:01:57+08:00","updated_at":"2024-05-05T20:01:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517","variant_ids":[41910673801315]},"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-SB16","featured_media":{"alt":null,"id":23893206401123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84d914161e89e6c1e5cc617707c7d83fee0a84dc_0bafb0f2-0642-46e2-8473-36feaac08e66.webp?v=1714910502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2875c39fa13c3c848baf09461736aac70b28396e_96304002-ab9e-4c60-80c4-d065827d4ee1.webp?v=1714910505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da24aea4278dbf95db7f840679c245017c0018c0_42715e47-b4b5-41da-b0df-e2e900865e38.webp?v=1714910507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3fe17c9dcb943bc1c71c6926cbdf42b39c91d6_340c3574-b606-49fd-80ad-d11ca596854f.webp?v=1714910510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5fb224420802cfd509f466f277f44ba761aa195_df5dc1ef-1ed0-4e50-9b82-9a4263e32be0.webp?v=1714910512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d3d077fadddaf31bf8129dd9039266dd2193d0_892d6c42-c926-4887-8dc3-d6e08e16677a.webp?v=1714910514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a892baf4807f2b3ddd2dfdf03222c9fe8e76007_ed71c154-bc99-4a3d-b6bd-72796afde6e5.webp?v=1714910519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39ae4363b6fda40ad4d314a77e51419d805bba5_78ea385f-1404-473c-b7cd-d553cf7beddf.webp?v=1714910522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/416e15c96adccb31b1f0225670bae19f71dd54fa_d7510bb0-db71-4888-838e-76671a862313.webp?v=1714910524"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84d914161e89e6c1e5cc617707c7d83fee0a84dc_0bafb0f2-0642-46e2-8473-36feaac08e66.webp?v=1714910502","options":["color"],"media":[{"alt":null,"id":23893203157091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84d914161e89e6c1e5cc617707c7d83fee0a84dc_0bafb0f2-0642-46e2-8473-36feaac08e66.webp?v=1714910502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84d914161e89e6c1e5cc617707c7d83fee0a84dc_0bafb0f2-0642-46e2-8473-36feaac08e66.webp?v=1714910502","width":2000},{"alt":null,"id":23893203615843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2875c39fa13c3c848baf09461736aac70b28396e_96304002-ab9e-4c60-80c4-d065827d4ee1.webp?v=1714910505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2875c39fa13c3c848baf09461736aac70b28396e_96304002-ab9e-4c60-80c4-d065827d4ee1.webp?v=1714910505","width":2000},{"alt":null,"id":23893204271203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da24aea4278dbf95db7f840679c245017c0018c0_42715e47-b4b5-41da-b0df-e2e900865e38.webp?v=1714910507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da24aea4278dbf95db7f840679c245017c0018c0_42715e47-b4b5-41da-b0df-e2e900865e38.webp?v=1714910507","width":2000},{"alt":null,"id":23893204631651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3fe17c9dcb943bc1c71c6926cbdf42b39c91d6_340c3574-b606-49fd-80ad-d11ca596854f.webp?v=1714910510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3fe17c9dcb943bc1c71c6926cbdf42b39c91d6_340c3574-b606-49fd-80ad-d11ca596854f.webp?v=1714910510","width":2000},{"alt":null,"id":23893205516387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5fb224420802cfd509f466f277f44ba761aa195_df5dc1ef-1ed0-4e50-9b82-9a4263e32be0.webp?v=1714910512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5fb224420802cfd509f466f277f44ba761aa195_df5dc1ef-1ed0-4e50-9b82-9a4263e32be0.webp?v=1714910512","width":2000},{"alt":null,"id":23893205876835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d3d077fadddaf31bf8129dd9039266dd2193d0_892d6c42-c926-4887-8dc3-d6e08e16677a.webp?v=1714910514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d3d077fadddaf31bf8129dd9039266dd2193d0_892d6c42-c926-4887-8dc3-d6e08e16677a.webp?v=1714910514","width":2000},{"alt":null,"id":23893206401123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517","width":2000},{"alt":null,"id":23893206761571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a892baf4807f2b3ddd2dfdf03222c9fe8e76007_ed71c154-bc99-4a3d-b6bd-72796afde6e5.webp?v=1714910519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a892baf4807f2b3ddd2dfdf03222c9fe8e76007_ed71c154-bc99-4a3d-b6bd-72796afde6e5.webp?v=1714910519","width":2000},{"alt":null,"id":23893207449699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39ae4363b6fda40ad4d314a77e51419d805bba5_78ea385f-1404-473c-b7cd-d553cf7beddf.webp?v=1714910522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b39ae4363b6fda40ad4d314a77e51419d805bba5_78ea385f-1404-473c-b7cd-d553cf7beddf.webp?v=1714910522","width":2000},{"alt":null,"id":23893207941219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/416e15c96adccb31b1f0225670bae19f71dd54fa_d7510bb0-db71-4888-838e-76671a862313.webp?v=1714910524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/416e15c96adccb31b1f0225670bae19f71dd54fa_d7510bb0-db71-4888-838e-76671a862313.webp?v=1714910524","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910673801315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31487862407267,"product_id":7414988570723,"position":7,"created_at":"2024-05-05T20:01:57+08:00","updated_at":"2024-05-05T20:01:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517","variant_ids":[41910673801315]},"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-SB16","featured_media":{"alt":null,"id":23893206401123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910673801315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31487862407267,"product_id":7414988570723,"position":7,"created_at":"2024-05-05T20:01:57+08:00","updated_at":"2024-05-05T20:01:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517","variant_ids":[41910673801315]},"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-SB16","featured_media":{"alt":null,"id":23893206401123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dbac045ef7cc2c4b99d01f85d72ada29e4888c_888902ac-d22b-4aad-af3c-5ca3aaff0bff.webp?v=1714910517"}},"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: "停產"
}