$product = {"id":7414994370659,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - Work Day","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-hq03","description":null,"published_at":"2024-06-11T17:55:07+08:00","created_at":"2024-05-05T20:02:44+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 12 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":41910730621027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31487873712227,"product_id":7414994370659,"position":1,"created_at":"2024-05-05T20:02:46+08:00","updated_at":"2024-05-05T20:02:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566","variant_ids":[41910730621027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - Work Day - 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":"MPB0118724-HQ03","featured_media":{"alt":null,"id":23893217738851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24b16be41f738cb2104f14a262380a78c807010_1426b61d-9c56-4f93-b7af-ac5059e61564.webp?v=1714910569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbde2f397cfe2fae9e957f4c3edef161c2083476_0216565a-80b8-46b3-be57-46cbd2a3d9a1.webp?v=1714910571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb2fdd12ba66faaab5668fecb724266b30090db_b56f26f5-a901-476d-8e6d-ffa474c2f759.webp?v=1714910573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6dc1b5bac3104ae4ec6fb402004ccbb64e1d28_32ad5699-c2a1-42b1-8431-0a7f624ab9c4.webp?v=1714910575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046ecfa0668f5477355adcab0cb45a9847189841_b83fd1e1-6c31-4c53-babd-f55d7a4686f8.webp?v=1714910578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/837c7eedb8852e54f84ab7a650fa466a06e582d1_9b1b6c31-290b-4066-b891-db58b9a459e1.webp?v=1714910580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e109003e7b6b8896fde552cfc8843dbbda74ff1_cf67b4f7-6d36-4c00-a7b1-d7d7300ec4bb.webp?v=1714910582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04643016344a944e59bd244a172a4efc72dae9c1_c5626366-e5c3-4753-95bc-205ff19a0bc8.webp?v=1714910585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2081299493a483830a1a0eaa9e304ab088da8b6d_12f2f21b-2955-4b42-9d22-6d4f17bd7c7c.webp?v=1714910587"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566","options":["color"],"media":[{"alt":null,"id":23893217738851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566","width":2000},{"alt":null,"id":23893218230371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24b16be41f738cb2104f14a262380a78c807010_1426b61d-9c56-4f93-b7af-ac5059e61564.webp?v=1714910569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d24b16be41f738cb2104f14a262380a78c807010_1426b61d-9c56-4f93-b7af-ac5059e61564.webp?v=1714910569","width":2000},{"alt":null,"id":23893218754659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbde2f397cfe2fae9e957f4c3edef161c2083476_0216565a-80b8-46b3-be57-46cbd2a3d9a1.webp?v=1714910571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbde2f397cfe2fae9e957f4c3edef161c2083476_0216565a-80b8-46b3-be57-46cbd2a3d9a1.webp?v=1714910571","width":2000},{"alt":null,"id":23893219180643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb2fdd12ba66faaab5668fecb724266b30090db_b56f26f5-a901-476d-8e6d-ffa474c2f759.webp?v=1714910573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb2fdd12ba66faaab5668fecb724266b30090db_b56f26f5-a901-476d-8e6d-ffa474c2f759.webp?v=1714910573","width":2000},{"alt":null,"id":23893219934307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6dc1b5bac3104ae4ec6fb402004ccbb64e1d28_32ad5699-c2a1-42b1-8431-0a7f624ab9c4.webp?v=1714910575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6dc1b5bac3104ae4ec6fb402004ccbb64e1d28_32ad5699-c2a1-42b1-8431-0a7f624ab9c4.webp?v=1714910575","width":2000},{"alt":null,"id":23893220589667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046ecfa0668f5477355adcab0cb45a9847189841_b83fd1e1-6c31-4c53-babd-f55d7a4686f8.webp?v=1714910578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046ecfa0668f5477355adcab0cb45a9847189841_b83fd1e1-6c31-4c53-babd-f55d7a4686f8.webp?v=1714910578","width":2000},{"alt":null,"id":23893221081187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/837c7eedb8852e54f84ab7a650fa466a06e582d1_9b1b6c31-290b-4066-b891-db58b9a459e1.webp?v=1714910580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/837c7eedb8852e54f84ab7a650fa466a06e582d1_9b1b6c31-290b-4066-b891-db58b9a459e1.webp?v=1714910580","width":2000},{"alt":null,"id":23893221605475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e109003e7b6b8896fde552cfc8843dbbda74ff1_cf67b4f7-6d36-4c00-a7b1-d7d7300ec4bb.webp?v=1714910582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e109003e7b6b8896fde552cfc8843dbbda74ff1_cf67b4f7-6d36-4c00-a7b1-d7d7300ec4bb.webp?v=1714910582","width":2000},{"alt":null,"id":23893222031459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04643016344a944e59bd244a172a4efc72dae9c1_c5626366-e5c3-4753-95bc-205ff19a0bc8.webp?v=1714910585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04643016344a944e59bd244a172a4efc72dae9c1_c5626366-e5c3-4753-95bc-205ff19a0bc8.webp?v=1714910585","width":2000},{"alt":null,"id":23893222654051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2081299493a483830a1a0eaa9e304ab088da8b6d_12f2f21b-2955-4b42-9d22-6d4f17bd7c7c.webp?v=1714910587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2081299493a483830a1a0eaa9e304ab088da8b6d_12f2f21b-2955-4b42-9d22-6d4f17bd7c7c.webp?v=1714910587","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41910730621027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31487873712227,"product_id":7414994370659,"position":1,"created_at":"2024-05-05T20:02:46+08:00","updated_at":"2024-05-05T20:02:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566","variant_ids":[41910730621027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - Work Day - 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":"MPB0118724-HQ03","featured_media":{"alt":null,"id":23893217738851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41910730621027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31487873712227,"product_id":7414994370659,"position":1,"created_at":"2024-05-05T20:02:46+08:00","updated_at":"2024-05-05T20:02:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566","variant_ids":[41910730621027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Pixel Jeff 皮傑 - Work Day - 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":"MPB0118724-HQ03","featured_media":{"alt":null,"id":23893217738851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e528d5c254d21a2877f14c6d0e2fd32d5b5b56_730e92f3-6646-490e-a3af-eee52a6f08f5.webp?v=1714910566"}},"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: "停產"
}