$product = {"id":7414055534691,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb10","description":null,"published_at":"2024-06-11T17:48:35+08:00","created_at":"2024-05-05T14:07:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41903773122659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484575252579,"product_id":7414055534691,"position":5,"created_at":"2024-05-05T14:07:23+08:00","updated_at":"2024-05-05T14:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243","variant_ids":[41903773122659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23889870323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903773417571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484572237923,"product_id":7414055534691,"position":3,"created_at":"2024-05-05T14:07:18+08:00","updated_at":"2024-05-05T14:07:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ec988a2321d4e0c112a8a1092bf79460a970e9_21857b77-00d9-4381-8acc-e5fdd8994772.webp?v=1714889238","variant_ids":[41903773417571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23889867341923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ec988a2321d4e0c112a8a1092bf79460a970e9_21857b77-00d9-4381-8acc-e5fdd8994772.webp?v=1714889238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f784d910126ef065ef8d3a07b27b2ba56f0b936_df8eebcc-ba72-4f6b-964e-2f0ab3cefd49.webp?v=1714889233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef21f6c406912a9631bd5006b7f7a98459c6a14_88e34f52-9921-4274-8c25-8adacf11b5a8.webp?v=1714889236","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ec988a2321d4e0c112a8a1092bf79460a970e9_21857b77-00d9-4381-8acc-e5fdd8994772.webp?v=1714889238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c10fd37ceb721942662eb434547f9caf84ae475_b9595b92-69e9-483c-aed2-69ae97d469af.webp?v=1714889240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f04c80b820698a3823c1d48bf8c724d0fcb4c01_14e44f89-726c-482c-99a4-9410c9efb883.webp?v=1714889245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610aa5e14eeb9eb4152a521fde9fd87802799ef5_df708625-7365-4bc0-9b38-56daea7ea5d9.webp?v=1714889247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2971bcd0d5a194a3f03d011189daab7eb2b29704_35decb6e-f654-4fa5-9ae7-70005f1b0c99.webp?v=1714889250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dd9d6a244d7d347d468a0bad9be14b3dde7b3a_d75079bf-f214-4c66-9d60-d4b4b9aa2707.webp?v=1714889252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4fe1319af137eba7f7936988880efb7bf76033b_dd409c91-cec0-442c-8a74-29873775b5e9.webp?v=1714889255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb16464ba13fe29aba859fa1c95b6439c3a015c_74e4da9c-47e4-4af4-8410-b7ac527219ad.webp?v=1714889257"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f784d910126ef065ef8d3a07b27b2ba56f0b936_df8eebcc-ba72-4f6b-964e-2f0ab3cefd49.webp?v=1714889233","options":["color"],"media":[{"alt":null,"id":23889864556643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f784d910126ef065ef8d3a07b27b2ba56f0b936_df8eebcc-ba72-4f6b-964e-2f0ab3cefd49.webp?v=1714889233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f784d910126ef065ef8d3a07b27b2ba56f0b936_df8eebcc-ba72-4f6b-964e-2f0ab3cefd49.webp?v=1714889233","width":2000},{"alt":null,"id":23889865965667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef21f6c406912a9631bd5006b7f7a98459c6a14_88e34f52-9921-4274-8c25-8adacf11b5a8.webp?v=1714889236"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ef21f6c406912a9631bd5006b7f7a98459c6a14_88e34f52-9921-4274-8c25-8adacf11b5a8.webp?v=1714889236","width":2000},{"alt":null,"id":23889867341923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ec988a2321d4e0c112a8a1092bf79460a970e9_21857b77-00d9-4381-8acc-e5fdd8994772.webp?v=1714889238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ec988a2321d4e0c112a8a1092bf79460a970e9_21857b77-00d9-4381-8acc-e5fdd8994772.webp?v=1714889238","width":2000},{"alt":null,"id":23889868783715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c10fd37ceb721942662eb434547f9caf84ae475_b9595b92-69e9-483c-aed2-69ae97d469af.webp?v=1714889240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c10fd37ceb721942662eb434547f9caf84ae475_b9595b92-69e9-483c-aed2-69ae97d469af.webp?v=1714889240","width":2000},{"alt":null,"id":23889870323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243","width":2000},{"alt":null,"id":23889872027747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f04c80b820698a3823c1d48bf8c724d0fcb4c01_14e44f89-726c-482c-99a4-9410c9efb883.webp?v=1714889245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f04c80b820698a3823c1d48bf8c724d0fcb4c01_14e44f89-726c-482c-99a4-9410c9efb883.webp?v=1714889245","width":2000},{"alt":null,"id":23889873240163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610aa5e14eeb9eb4152a521fde9fd87802799ef5_df708625-7365-4bc0-9b38-56daea7ea5d9.webp?v=1714889247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610aa5e14eeb9eb4152a521fde9fd87802799ef5_df708625-7365-4bc0-9b38-56daea7ea5d9.webp?v=1714889247","width":2000},{"alt":null,"id":23889874452579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2971bcd0d5a194a3f03d011189daab7eb2b29704_35decb6e-f654-4fa5-9ae7-70005f1b0c99.webp?v=1714889250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2971bcd0d5a194a3f03d011189daab7eb2b29704_35decb6e-f654-4fa5-9ae7-70005f1b0c99.webp?v=1714889250","width":2000},{"alt":null,"id":23889875599459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dd9d6a244d7d347d468a0bad9be14b3dde7b3a_d75079bf-f214-4c66-9d60-d4b4b9aa2707.webp?v=1714889252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dd9d6a244d7d347d468a0bad9be14b3dde7b3a_d75079bf-f214-4c66-9d60-d4b4b9aa2707.webp?v=1714889252","width":2000},{"alt":null,"id":23889876910179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4fe1319af137eba7f7936988880efb7bf76033b_dd409c91-cec0-442c-8a74-29873775b5e9.webp?v=1714889255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4fe1319af137eba7f7936988880efb7bf76033b_dd409c91-cec0-442c-8a74-29873775b5e9.webp?v=1714889255","width":2000},{"alt":null,"id":23889878548579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb16464ba13fe29aba859fa1c95b6439c3a015c_74e4da9c-47e4-4af4-8410-b7ac527219ad.webp?v=1714889257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adb16464ba13fe29aba859fa1c95b6439c3a015c_74e4da9c-47e4-4af4-8410-b7ac527219ad.webp?v=1714889257","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903773122659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484575252579,"product_id":7414055534691,"position":5,"created_at":"2024-05-05T14:07:23+08:00","updated_at":"2024-05-05T14:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243","variant_ids":[41903773122659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23889870323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903773417571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484572237923,"product_id":7414055534691,"position":3,"created_at":"2024-05-05T14:07:18+08:00","updated_at":"2024-05-05T14:07:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ec988a2321d4e0c112a8a1092bf79460a970e9_21857b77-00d9-4381-8acc-e5fdd8994772.webp?v=1714889238","variant_ids":[41903773417571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23889867341923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0ec988a2321d4e0c112a8a1092bf79460a970e9_21857b77-00d9-4381-8acc-e5fdd8994772.webp?v=1714889238"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903773122659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484575252579,"product_id":7414055534691,"position":5,"created_at":"2024-05-05T14:07:23+08:00","updated_at":"2024-05-05T14:07:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243","variant_ids":[41903773122659]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23889870323811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50445f233bb398ba498f7d905aad627c8a32032a_c6150c0e-52e1-4d21-8445-cdd623c018a9.webp?v=1714889243"}},"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: "停產"
}