$product = {"id":7414147121251,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 窯花","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-gd14","description":null,"published_at":"2024-06-11T17:49:25+08:00","created_at":"2024-05-05T14:12:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 13 Pro Max","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41904439197795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484778676323,"product_id":7414147121251,"position":4,"created_at":"2024-05-05T14:13:06+08:00","updated_at":"2024-05-05T14:13:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586","variant_ids":[41904439197795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 窯花 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-GD14","featured_media":{"alt":null,"id":23890073649251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904439525475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484774252643,"product_id":7414147121251,"position":1,"created_at":"2024-05-05T14:12:59+08:00","updated_at":"2024-05-05T14:12:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579","variant_ids":[41904439525475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 窯花 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-GD14","featured_media":{"alt":null,"id":23890069422179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5c82f799b73e31498370e640b5a3f12a23eece_cfea3fdc-4747-42d4-92c4-5a0c446ea883.webp?v=1714889581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8bf254052a3226d1a7bc5eae1095c44c9111db_62853b47-7c2e-4224-83ff-413ec2c950a4.webp?v=1714889584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d94a1afbbb33e2ea5ebdbd8dcc60ea712d42d990_8d4da3cf-eb0c-433b-b4b8-217db102f42b.webp?v=1714889588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544586e36b227decf98b1f9428a40369e803e92c_da35e3d3-0867-4dd4-a666-e25ecb62ce46.webp?v=1714889591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07b9100131a9ce9dbdb2f35f98b924e0c5e818cd_8e1f8dca-b884-4c3f-840d-0a548bd1caf5.webp?v=1714889593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89fed226aeaeafd8b11bdaa08f583410091b5b05_42ce253b-65d9-4adb-9540-987a5aa1d9af.webp?v=1714889595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0be205e09be25f32221ea1834692c4e8b737d677_8a4f3513-264c-49e2-85c4-a4680504aced.webp?v=1714889598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1330ff1994df5dc73bcea4a4e57873a54c4f39_4ac74047-c4f7-4ff4-aaa5-dcf7ff3ad39b.webp?v=1714889600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670129b869e35dfe918f82b59529e5d2dc784438_aa4fd880-ebc6-4b2d-981a-b1d8e4792054.webp?v=1714889603"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579","options":["color"],"media":[{"alt":null,"id":23890069422179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579","width":2000},{"alt":null,"id":23890071257187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5c82f799b73e31498370e640b5a3f12a23eece_cfea3fdc-4747-42d4-92c4-5a0c446ea883.webp?v=1714889581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5c82f799b73e31498370e640b5a3f12a23eece_cfea3fdc-4747-42d4-92c4-5a0c446ea883.webp?v=1714889581","width":2000},{"alt":null,"id":23890072436835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8bf254052a3226d1a7bc5eae1095c44c9111db_62853b47-7c2e-4224-83ff-413ec2c950a4.webp?v=1714889584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8bf254052a3226d1a7bc5eae1095c44c9111db_62853b47-7c2e-4224-83ff-413ec2c950a4.webp?v=1714889584","width":2000},{"alt":null,"id":23890073649251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586","width":2000},{"alt":null,"id":23890075287651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d94a1afbbb33e2ea5ebdbd8dcc60ea712d42d990_8d4da3cf-eb0c-433b-b4b8-217db102f42b.webp?v=1714889588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d94a1afbbb33e2ea5ebdbd8dcc60ea712d42d990_8d4da3cf-eb0c-433b-b4b8-217db102f42b.webp?v=1714889588","width":2000},{"alt":null,"id":23890076762211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544586e36b227decf98b1f9428a40369e803e92c_da35e3d3-0867-4dd4-a666-e25ecb62ce46.webp?v=1714889591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544586e36b227decf98b1f9428a40369e803e92c_da35e3d3-0867-4dd4-a666-e25ecb62ce46.webp?v=1714889591","width":2000},{"alt":null,"id":23890078171235,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07b9100131a9ce9dbdb2f35f98b924e0c5e818cd_8e1f8dca-b884-4c3f-840d-0a548bd1caf5.webp?v=1714889593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07b9100131a9ce9dbdb2f35f98b924e0c5e818cd_8e1f8dca-b884-4c3f-840d-0a548bd1caf5.webp?v=1714889593","width":2000},{"alt":null,"id":23890079744099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89fed226aeaeafd8b11bdaa08f583410091b5b05_42ce253b-65d9-4adb-9540-987a5aa1d9af.webp?v=1714889595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89fed226aeaeafd8b11bdaa08f583410091b5b05_42ce253b-65d9-4adb-9540-987a5aa1d9af.webp?v=1714889595","width":2000},{"alt":null,"id":23890081218659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0be205e09be25f32221ea1834692c4e8b737d677_8a4f3513-264c-49e2-85c4-a4680504aced.webp?v=1714889598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0be205e09be25f32221ea1834692c4e8b737d677_8a4f3513-264c-49e2-85c4-a4680504aced.webp?v=1714889598","width":2000},{"alt":null,"id":23890082824291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1330ff1994df5dc73bcea4a4e57873a54c4f39_4ac74047-c4f7-4ff4-aaa5-dcf7ff3ad39b.webp?v=1714889600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe1330ff1994df5dc73bcea4a4e57873a54c4f39_4ac74047-c4f7-4ff4-aaa5-dcf7ff3ad39b.webp?v=1714889600","width":2000},{"alt":null,"id":23890084528227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670129b869e35dfe918f82b59529e5d2dc784438_aa4fd880-ebc6-4b2d-981a-b1d8e4792054.webp?v=1714889603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670129b869e35dfe918f82b59529e5d2dc784438_aa4fd880-ebc6-4b2d-981a-b1d8e4792054.webp?v=1714889603","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904439197795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484778676323,"product_id":7414147121251,"position":4,"created_at":"2024-05-05T14:13:06+08:00","updated_at":"2024-05-05T14:13:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586","variant_ids":[41904439197795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 窯花 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-GD14","featured_media":{"alt":null,"id":23890073649251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904439525475,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484774252643,"product_id":7414147121251,"position":1,"created_at":"2024-05-05T14:12:59+08:00","updated_at":"2024-05-05T14:12:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579","variant_ids":[41904439525475]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 窯花 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-GD14","featured_media":{"alt":null,"id":23890069422179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e13918589d7211ce332a1c6d91fab2703689e44_f25d38b5-4341-4467-b727-797284d30c1e.webp?v=1714889579"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904439197795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31484778676323,"product_id":7414147121251,"position":4,"created_at":"2024-05-05T14:13:06+08:00","updated_at":"2024-05-05T14:13:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586","variant_ids":[41904439197795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 窯花 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-GD14","featured_media":{"alt":null,"id":23890073649251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35f232452ad302e2234be21f9a52d61f88b1a37_6b62711c-ecc2-44d6-9e34-05f44c278387.webp?v=1714889586"}},"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: "停產"
}