$product = {"id":7414401040483,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女與小丑","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb18","description":null,"published_at":"2024-06-11T17:51:07+08:00","created_at":"2024-05-05T14:24:17+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 13 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":41906231214179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485362143331,"product_id":7414401040483,"position":6,"created_at":"2024-05-05T14:24:31+08:00","updated_at":"2024-05-05T14:24:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271","variant_ids":[41906231214179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-SB18","featured_media":{"alt":null,"id":23890679464035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906232066147,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485351100515,"product_id":7414401040483,"position":3,"created_at":"2024-05-05T14:24:24+08:00","updated_at":"2024-05-05T14:24:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c0e62e1195b4a6b2fa43e5a7c6c824e67d59e7_97d56b44-519e-4791-881f-f4a6d3bd455c.webp?v=1714890264","variant_ids":[41906232066147]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-SB18","featured_media":{"alt":null,"id":23890668748899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c0e62e1195b4a6b2fa43e5a7c6c824e67d59e7_97d56b44-519e-4791-881f-f4a6d3bd455c.webp?v=1714890264"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0d11317d145dad9d75337db4b6f68da8882223_c1b998c7-5655-4571-a588-fbf9f0c1e7f3.webp?v=1714890259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a3e7ecca2f014e6dfa651bbd9559f0b481cc4fc_9e379593-22d8-474a-9dcf-ccc6c752fa23.webp?v=1714890261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c0e62e1195b4a6b2fa43e5a7c6c824e67d59e7_97d56b44-519e-4791-881f-f4a6d3bd455c.webp?v=1714890264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af98bdac0c465c2e8f05fab24c1240c5102ab5_24980fb2-ca85-4a94-81a8-a49e3a34174a.webp?v=1714890266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e320d8fc8a93f35d06ca1ac7c8b130cbe8cf528_64841b8c-8cd8-445b-80fc-99c3413726a9.webp?v=1714890268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13247aab1dd8fb42c2e51e12e19e6467736791bd_e70a3a1f-49fb-4d0d-85eb-2be6c9bd46bf.webp?v=1714890273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a30e7142be0032f42dc4fda0394a6956c483571_ea2117fc-671b-4b30-ae53-30c27f0b24f7.webp?v=1714890275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6531623e9fee4722233e25e4e521a2cb0fb7b9ca_ca3cc210-713e-4212-8823-23a2410b085c.webp?v=1714890278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1547cf7094779b5353816eccdc66c5af520a2ea1_dbf4bb2b-7817-4647-aa63-aa3a28d92564.webp?v=1714890280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf11dac4d38f1aaaefa8e1c727d174eb5a04ee2_b19dc25f-47ee-4c17-bf69-a6471241a142.webp?v=1714890283"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0d11317d145dad9d75337db4b6f68da8882223_c1b998c7-5655-4571-a588-fbf9f0c1e7f3.webp?v=1714890259","options":["color"],"media":[{"alt":null,"id":23890661474403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0d11317d145dad9d75337db4b6f68da8882223_c1b998c7-5655-4571-a588-fbf9f0c1e7f3.webp?v=1714890259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0d11317d145dad9d75337db4b6f68da8882223_c1b998c7-5655-4571-a588-fbf9f0c1e7f3.webp?v=1714890259","width":2000},{"alt":null,"id":23890664980579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a3e7ecca2f014e6dfa651bbd9559f0b481cc4fc_9e379593-22d8-474a-9dcf-ccc6c752fa23.webp?v=1714890261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a3e7ecca2f014e6dfa651bbd9559f0b481cc4fc_9e379593-22d8-474a-9dcf-ccc6c752fa23.webp?v=1714890261","width":2000},{"alt":null,"id":23890668748899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c0e62e1195b4a6b2fa43e5a7c6c824e67d59e7_97d56b44-519e-4791-881f-f4a6d3bd455c.webp?v=1714890264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c0e62e1195b4a6b2fa43e5a7c6c824e67d59e7_97d56b44-519e-4791-881f-f4a6d3bd455c.webp?v=1714890264","width":2000},{"alt":null,"id":23890672517219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af98bdac0c465c2e8f05fab24c1240c5102ab5_24980fb2-ca85-4a94-81a8-a49e3a34174a.webp?v=1714890266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9af98bdac0c465c2e8f05fab24c1240c5102ab5_24980fb2-ca85-4a94-81a8-a49e3a34174a.webp?v=1714890266","width":2000},{"alt":null,"id":23890676088931,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e320d8fc8a93f35d06ca1ac7c8b130cbe8cf528_64841b8c-8cd8-445b-80fc-99c3413726a9.webp?v=1714890268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e320d8fc8a93f35d06ca1ac7c8b130cbe8cf528_64841b8c-8cd8-445b-80fc-99c3413726a9.webp?v=1714890268","width":2000},{"alt":null,"id":23890679464035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271","width":2000},{"alt":null,"id":23890683134051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13247aab1dd8fb42c2e51e12e19e6467736791bd_e70a3a1f-49fb-4d0d-85eb-2be6c9bd46bf.webp?v=1714890273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13247aab1dd8fb42c2e51e12e19e6467736791bd_e70a3a1f-49fb-4d0d-85eb-2be6c9bd46bf.webp?v=1714890273","width":2000},{"alt":null,"id":23890686804067,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a30e7142be0032f42dc4fda0394a6956c483571_ea2117fc-671b-4b30-ae53-30c27f0b24f7.webp?v=1714890275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a30e7142be0032f42dc4fda0394a6956c483571_ea2117fc-671b-4b30-ae53-30c27f0b24f7.webp?v=1714890275","width":2000},{"alt":null,"id":23890690441315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6531623e9fee4722233e25e4e521a2cb0fb7b9ca_ca3cc210-713e-4212-8823-23a2410b085c.webp?v=1714890278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6531623e9fee4722233e25e4e521a2cb0fb7b9ca_ca3cc210-713e-4212-8823-23a2410b085c.webp?v=1714890278","width":2000},{"alt":null,"id":23890694504547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1547cf7094779b5353816eccdc66c5af520a2ea1_dbf4bb2b-7817-4647-aa63-aa3a28d92564.webp?v=1714890280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1547cf7094779b5353816eccdc66c5af520a2ea1_dbf4bb2b-7817-4647-aa63-aa3a28d92564.webp?v=1714890280","width":2000},{"alt":null,"id":23890697977955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf11dac4d38f1aaaefa8e1c727d174eb5a04ee2_b19dc25f-47ee-4c17-bf69-a6471241a142.webp?v=1714890283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf11dac4d38f1aaaefa8e1c727d174eb5a04ee2_b19dc25f-47ee-4c17-bf69-a6471241a142.webp?v=1714890283","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906231214179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485362143331,"product_id":7414401040483,"position":6,"created_at":"2024-05-05T14:24:31+08:00","updated_at":"2024-05-05T14:24:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271","variant_ids":[41906231214179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-SB18","featured_media":{"alt":null,"id":23890679464035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906232066147,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485351100515,"product_id":7414401040483,"position":3,"created_at":"2024-05-05T14:24:24+08:00","updated_at":"2024-05-05T14:24:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c0e62e1195b4a6b2fa43e5a7c6c824e67d59e7_97d56b44-519e-4791-881f-f4a6d3bd455c.webp?v=1714890264","variant_ids":[41906232066147]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-SB18","featured_media":{"alt":null,"id":23890668748899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c0e62e1195b4a6b2fa43e5a7c6c824e67d59e7_97d56b44-519e-4791-881f-f4a6d3bd455c.webp?v=1714890264"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906231214179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485362143331,"product_id":7414401040483,"position":6,"created_at":"2024-05-05T14:24:31+08:00","updated_at":"2024-05-05T14:24:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271","variant_ids":[41906231214179]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-SB18","featured_media":{"alt":null,"id":23890679464035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3b44980a68e55215c99e22c019790a52069c479_d402b158-3678-4929-bb8e-b6be2ce331d6.webp?v=1714890271"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(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: "停產"
}