$product = {"id":7414167797859,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 峇里島在看","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af06","description":null,"published_at":"2024-06-11T17:49:34+08:00","created_at":"2024-05-05T14:13:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41904578691171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484834545763,"product_id":7414167797859,"position":11,"created_at":"2024-05-05T14:14:23+08:00","updated_at":"2024-05-05T14:14:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663","variant_ids":[41904578691171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23890130632803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904579084387,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484832907363,"product_id":7414167797859,"position":10,"created_at":"2024-05-05T14:14:21+08:00","updated_at":"2024-05-05T14:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403fe8091cff78ce5006b274d910a8f2f9cc5da8_ab7f9535-1d95-45f9-bb26-05d164fd27d3.webp?v=1714889661","variant_ids":[41904579084387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23890129059939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403fe8091cff78ce5006b274d910a8f2f9cc5da8_ab7f9535-1d95-45f9-bb26-05d164fd27d3.webp?v=1714889661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5435523b85052d55f54a90dc6048f386112931c_13f6aa8d-fe3a-4bfe-b4f5-0f7e560b7dac.webp?v=1714889639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5423b8524b61d84ec163bcf77b29a99b21dcae_8768bf82-e6b5-4efd-ae0a-025a1953d84b.webp?v=1714889641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ec02f5379dfcb1fbf45a08a079c6f292e65ee8_72bdd509-aec3-44f8-a51c-f1c688ab9bc3.webp?v=1714889644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2143300fdd6dafd57ae3b645eeab5506e360fe60_a7e232ea-0186-4ffd-8d7b-3a9a3b29ead7.webp?v=1714889646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62d838d5d6dc74562aae9c699c55e0503c188d5_2f313d1f-c72e-4ef2-8635-56d2e4d9390b.webp?v=1714889649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1001afe992a07b4fd1aaab8ed45fcf1ef80cd3_192d3c38-48f8-499c-a557-ebfe9972b838.webp?v=1714889651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f608ee43293886934a352c18c5b00da19aef76_98cbca30-a29e-4f93-907b-dc7f9250955e.webp?v=1714889654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71f601c5529284c83cf30018dca1b6ad254ce21_70ad8137-4455-4660-a7c4-bff467981951.webp?v=1714889656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab92830b129157b6bb1d39866dcf126c4d193769_ca50c875-1bf0-4c78-a177-06727177114d.webp?v=1714889658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403fe8091cff78ce5006b274d910a8f2f9cc5da8_ab7f9535-1d95-45f9-bb26-05d164fd27d3.webp?v=1714889661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5435523b85052d55f54a90dc6048f386112931c_13f6aa8d-fe3a-4bfe-b4f5-0f7e560b7dac.webp?v=1714889639","options":["color"],"media":[{"alt":null,"id":23890112807011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5435523b85052d55f54a90dc6048f386112931c_13f6aa8d-fe3a-4bfe-b4f5-0f7e560b7dac.webp?v=1714889639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5435523b85052d55f54a90dc6048f386112931c_13f6aa8d-fe3a-4bfe-b4f5-0f7e560b7dac.webp?v=1714889639","width":2000},{"alt":null,"id":23890114281571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5423b8524b61d84ec163bcf77b29a99b21dcae_8768bf82-e6b5-4efd-ae0a-025a1953d84b.webp?v=1714889641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5423b8524b61d84ec163bcf77b29a99b21dcae_8768bf82-e6b5-4efd-ae0a-025a1953d84b.webp?v=1714889641","width":2000},{"alt":null,"id":23890116214883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ec02f5379dfcb1fbf45a08a079c6f292e65ee8_72bdd509-aec3-44f8-a51c-f1c688ab9bc3.webp?v=1714889644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66ec02f5379dfcb1fbf45a08a079c6f292e65ee8_72bdd509-aec3-44f8-a51c-f1c688ab9bc3.webp?v=1714889644","width":2000},{"alt":null,"id":23890117754979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2143300fdd6dafd57ae3b645eeab5506e360fe60_a7e232ea-0186-4ffd-8d7b-3a9a3b29ead7.webp?v=1714889646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2143300fdd6dafd57ae3b645eeab5506e360fe60_a7e232ea-0186-4ffd-8d7b-3a9a3b29ead7.webp?v=1714889646","width":2000},{"alt":null,"id":23890119491683,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62d838d5d6dc74562aae9c699c55e0503c188d5_2f313d1f-c72e-4ef2-8635-56d2e4d9390b.webp?v=1714889649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62d838d5d6dc74562aae9c699c55e0503c188d5_2f313d1f-c72e-4ef2-8635-56d2e4d9390b.webp?v=1714889649","width":2000},{"alt":null,"id":23890121654371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1001afe992a07b4fd1aaab8ed45fcf1ef80cd3_192d3c38-48f8-499c-a557-ebfe9972b838.webp?v=1714889651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a1001afe992a07b4fd1aaab8ed45fcf1ef80cd3_192d3c38-48f8-499c-a557-ebfe9972b838.webp?v=1714889651","width":2000},{"alt":null,"id":23890123161699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f608ee43293886934a352c18c5b00da19aef76_98cbca30-a29e-4f93-907b-dc7f9250955e.webp?v=1714889654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f608ee43293886934a352c18c5b00da19aef76_98cbca30-a29e-4f93-907b-dc7f9250955e.webp?v=1714889654","width":2000},{"alt":null,"id":23890125062243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71f601c5529284c83cf30018dca1b6ad254ce21_70ad8137-4455-4660-a7c4-bff467981951.webp?v=1714889656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d71f601c5529284c83cf30018dca1b6ad254ce21_70ad8137-4455-4660-a7c4-bff467981951.webp?v=1714889656","width":2000},{"alt":null,"id":23890126831715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab92830b129157b6bb1d39866dcf126c4d193769_ca50c875-1bf0-4c78-a177-06727177114d.webp?v=1714889658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab92830b129157b6bb1d39866dcf126c4d193769_ca50c875-1bf0-4c78-a177-06727177114d.webp?v=1714889658","width":2000},{"alt":null,"id":23890129059939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403fe8091cff78ce5006b274d910a8f2f9cc5da8_ab7f9535-1d95-45f9-bb26-05d164fd27d3.webp?v=1714889661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403fe8091cff78ce5006b274d910a8f2f9cc5da8_ab7f9535-1d95-45f9-bb26-05d164fd27d3.webp?v=1714889661","width":2000},{"alt":null,"id":23890130632803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904578691171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484834545763,"product_id":7414167797859,"position":11,"created_at":"2024-05-05T14:14:23+08:00","updated_at":"2024-05-05T14:14:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663","variant_ids":[41904578691171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23890130632803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904579084387,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484832907363,"product_id":7414167797859,"position":10,"created_at":"2024-05-05T14:14:21+08:00","updated_at":"2024-05-05T14:14:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403fe8091cff78ce5006b274d910a8f2f9cc5da8_ab7f9535-1d95-45f9-bb26-05d164fd27d3.webp?v=1714889661","variant_ids":[41904579084387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23890129059939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403fe8091cff78ce5006b274d910a8f2f9cc5da8_ab7f9535-1d95-45f9-bb26-05d164fd27d3.webp?v=1714889661"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904578691171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484834545763,"product_id":7414167797859,"position":11,"created_at":"2024-05-05T14:14:23+08:00","updated_at":"2024-05-05T14:14:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663","variant_ids":[41904578691171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 人在做 峇里島在看 - 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-AF06","featured_media":{"alt":null,"id":23890130632803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9042c928b861f1ca032891b1495dfbca8b558f46_a9bddd8f-056c-49fd-9e30-34452c738229.webp?v=1714889663"}},"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: "停產"
}