$product = {"id":7414152659043,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Pixel Jeff 皮傑 - 街頭潮流","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-hq06","description":null,"published_at":"2024-06-11T17:49:27+08:00","created_at":"2024-05-05T14:13:14+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41904485597283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484785066083,"product_id":7414152659043,"position":1,"created_at":"2024-05-05T14:13:16+08:00","updated_at":"2024-05-05T14:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596","variant_ids":[41904485597283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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-HQ06","featured_media":{"alt":null,"id":23890080333923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904485892195,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484792176739,"product_id":7414152659043,"position":5,"created_at":"2024-05-05T14:13:26+08:00","updated_at":"2024-05-05T14:13:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95c5388c107924564e25e350f6fa0741340604f_d7eedbea-ac29-4486-8091-9e69137af475.webp?v=1714889606","variant_ids":[41904485892195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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-HQ06","featured_media":{"alt":null,"id":23890087739491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95c5388c107924564e25e350f6fa0741340604f_d7eedbea-ac29-4486-8091-9e69137af475.webp?v=1714889606"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2744830963597673a7d1a1bbe623e4eb0a8817a_4e6b170f-80b9-46b1-9f2a-0c3684aa4959.webp?v=1714889599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302c03b0ce9bcfc337d6064e2c8d2f869b12d_23da132b-a058-4d29-9c89-a764b44761bf.webp?v=1714889601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f2a9db7e2ad270038c5001fe7d8f5ded74ef6b7_c6849415-9c8c-40ab-ae27-e1aedfe23f38.webp?v=1714889604","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95c5388c107924564e25e350f6fa0741340604f_d7eedbea-ac29-4486-8091-9e69137af475.webp?v=1714889606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1306d75e99253c31982db13807c79c1d27abedfe_0513c91a-0225-45c7-8e40-8b8b1ca53314.webp?v=1714889609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea258da5119091d33e3f6954f53e4044a1481a1f_ff197404-ea56-4091-a6fd-0379f60227ca.webp?v=1714889611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e2600c5a359fcc64a7a8e5566e442d3643b2cd_c95b9798-4bc3-47a0-840f-b68cad1f319c.webp?v=1714889613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e4726e6d2c68925850192896c4c8400535af479_141b99b7-36eb-4c60-9500-92a4735d0f25.webp?v=1714889616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d611af323bcaff40fb1faeb803eddaab9ab301ed_a48efd09-7d30-4788-a9d2-9bb2d776ca57.webp?v=1714889619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb57109b85ed3db03b666269b65ad3d9454f67e_9ab25720-fb6c-4416-b9f4-7690aa1cf257.webp?v=1714889621"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596","options":["color"],"media":[{"alt":null,"id":23890080333923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596","width":2000},{"alt":null,"id":23890081972323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2744830963597673a7d1a1bbe623e4eb0a8817a_4e6b170f-80b9-46b1-9f2a-0c3684aa4959.webp?v=1714889599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2744830963597673a7d1a1bbe623e4eb0a8817a_4e6b170f-80b9-46b1-9f2a-0c3684aa4959.webp?v=1714889599","width":2000},{"alt":null,"id":23890083577955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302c03b0ce9bcfc337d6064e2c8d2f869b12d_23da132b-a058-4d29-9c89-a764b44761bf.webp?v=1714889601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2db302c03b0ce9bcfc337d6064e2c8d2f869b12d_23da132b-a058-4d29-9c89-a764b44761bf.webp?v=1714889601","width":2000},{"alt":null,"id":23890085609571,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f2a9db7e2ad270038c5001fe7d8f5ded74ef6b7_c6849415-9c8c-40ab-ae27-e1aedfe23f38.webp?v=1714889604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f2a9db7e2ad270038c5001fe7d8f5ded74ef6b7_c6849415-9c8c-40ab-ae27-e1aedfe23f38.webp?v=1714889604","width":2000},{"alt":null,"id":23890087739491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95c5388c107924564e25e350f6fa0741340604f_d7eedbea-ac29-4486-8091-9e69137af475.webp?v=1714889606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95c5388c107924564e25e350f6fa0741340604f_d7eedbea-ac29-4486-8091-9e69137af475.webp?v=1714889606","width":2000},{"alt":null,"id":23890089377891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1306d75e99253c31982db13807c79c1d27abedfe_0513c91a-0225-45c7-8e40-8b8b1ca53314.webp?v=1714889609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1306d75e99253c31982db13807c79c1d27abedfe_0513c91a-0225-45c7-8e40-8b8b1ca53314.webp?v=1714889609","width":2000},{"alt":null,"id":23890090950755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea258da5119091d33e3f6954f53e4044a1481a1f_ff197404-ea56-4091-a6fd-0379f60227ca.webp?v=1714889611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea258da5119091d33e3f6954f53e4044a1481a1f_ff197404-ea56-4091-a6fd-0379f60227ca.webp?v=1714889611","width":2000},{"alt":null,"id":23890092916835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e2600c5a359fcc64a7a8e5566e442d3643b2cd_c95b9798-4bc3-47a0-840f-b68cad1f319c.webp?v=1714889613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62e2600c5a359fcc64a7a8e5566e442d3643b2cd_c95b9798-4bc3-47a0-840f-b68cad1f319c.webp?v=1714889613","width":2000},{"alt":null,"id":23890094784611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e4726e6d2c68925850192896c4c8400535af479_141b99b7-36eb-4c60-9500-92a4735d0f25.webp?v=1714889616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e4726e6d2c68925850192896c4c8400535af479_141b99b7-36eb-4c60-9500-92a4735d0f25.webp?v=1714889616","width":2000},{"alt":null,"id":23890097143907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d611af323bcaff40fb1faeb803eddaab9ab301ed_a48efd09-7d30-4788-a9d2-9bb2d776ca57.webp?v=1714889619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d611af323bcaff40fb1faeb803eddaab9ab301ed_a48efd09-7d30-4788-a9d2-9bb2d776ca57.webp?v=1714889619","width":2000},{"alt":null,"id":23890099306595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb57109b85ed3db03b666269b65ad3d9454f67e_9ab25720-fb6c-4416-b9f4-7690aa1cf257.webp?v=1714889621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb57109b85ed3db03b666269b65ad3d9454f67e_9ab25720-fb6c-4416-b9f4-7690aa1cf257.webp?v=1714889621","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904485597283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484785066083,"product_id":7414152659043,"position":1,"created_at":"2024-05-05T14:13:16+08:00","updated_at":"2024-05-05T14:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596","variant_ids":[41904485597283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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-HQ06","featured_media":{"alt":null,"id":23890080333923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904485892195,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484792176739,"product_id":7414152659043,"position":5,"created_at":"2024-05-05T14:13:26+08:00","updated_at":"2024-05-05T14:13:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95c5388c107924564e25e350f6fa0741340604f_d7eedbea-ac29-4486-8091-9e69137af475.webp?v=1714889606","variant_ids":[41904485892195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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-HQ06","featured_media":{"alt":null,"id":23890087739491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d95c5388c107924564e25e350f6fa0741340604f_d7eedbea-ac29-4486-8091-9e69137af475.webp?v=1714889606"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904485597283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-HQ06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484785066083,"product_id":7414152659043,"position":1,"created_at":"2024-05-05T14:13:16+08:00","updated_at":"2024-05-05T14:13:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596","variant_ids":[41904485597283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Pixel Jeff 皮傑 - 街頭潮流 - 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-HQ06","featured_media":{"alt":null,"id":23890080333923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0eb749a4692e22f883aeb7d9625b423d2f99727_443a03d9-6856-445e-ae01-d0248a8c0410.webp?v=1714889596"}},"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: "停產"
}