$product = {"id":7413995896931,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb52","description":null,"published_at":"2024-06-11T17:47:13+08:00","created_at":"2024-05-05T13:57:45+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":41903132606563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31484420391011,"product_id":7413995896931,"position":8,"created_at":"2024-05-05T13:58:02+08:00","updated_at":"2024-05-05T13:58:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682","variant_ids":[41903132606563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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-PB52","featured_media":{"alt":null,"id":23889714380899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903132934243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31484417671267,"product_id":7413995896931,"position":2,"created_at":"2024-05-05T13:57:49+08:00","updated_at":"2024-05-05T13:57:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7922becb63675478bbebd57e3370e08da930c35c_b2139ce6-7a73-4c5c-881a-d95ca0c426f2.webp?v=1714888669","variant_ids":[41903132934243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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-PB52","featured_media":{"alt":null,"id":23889711693923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7922becb63675478bbebd57e3370e08da930c35c_b2139ce6-7a73-4c5c-881a-d95ca0c426f2.webp?v=1714888669"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d90dec0ea8ec98ec45ae1b2b13e5efcf98f165f_4f7c3984-d9ba-42bb-a425-826ec4d2a57c.webp?v=1714888667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7922becb63675478bbebd57e3370e08da930c35c_b2139ce6-7a73-4c5c-881a-d95ca0c426f2.webp?v=1714888669","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6406f51261e74ad13cbb2fe6a2b88eaa61fa4415_782232af-b5be-421f-ada0-5edfe4a112a5.webp?v=1714888671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af24f477039370771f36a44d298f39c14e78e415_f940a0c5-2b58-4b81-b232-b4e334161c9e.webp?v=1714888673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d38ad719dd1f6caa23512c024f660f5752af5c_bfb61245-f8d6-41ba-8d82-24ccd26d5bfd.webp?v=1714888676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d8dac1c31b2d27635a6fd7dfa12be09b4254887_fcf3e178-fe98-4502-9334-66e6a08eee0e.webp?v=1714888678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb46566dd5a925787c955e13220f3cb715dfa23_1dc015d2-6922-44ff-96ea-390fe7a4f5ab.webp?v=1714888680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e24bca3aa42bd2103202858e2fac5f954ed71c9_04085ce9-6fb6-4d61-92ca-6fb6c1cc62a1.webp?v=1714888685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8806777823ba77c4da737d51b92e553d94e54d95_ab66bfda-480d-4ae4-8ad2-0050de9bd03d.webp?v=1714888687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3beafff223a1ffca0526f759c5b23b96a248d069_e0aaeb0b-de8e-41ce-83aa-13a399a5672b.webp?v=1714888689"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d90dec0ea8ec98ec45ae1b2b13e5efcf98f165f_4f7c3984-d9ba-42bb-a425-826ec4d2a57c.webp?v=1714888667","options":["color"],"media":[{"alt":null,"id":23889711235171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d90dec0ea8ec98ec45ae1b2b13e5efcf98f165f_4f7c3984-d9ba-42bb-a425-826ec4d2a57c.webp?v=1714888667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d90dec0ea8ec98ec45ae1b2b13e5efcf98f165f_4f7c3984-d9ba-42bb-a425-826ec4d2a57c.webp?v=1714888667","width":2000},{"alt":null,"id":23889711693923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7922becb63675478bbebd57e3370e08da930c35c_b2139ce6-7a73-4c5c-881a-d95ca0c426f2.webp?v=1714888669"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7922becb63675478bbebd57e3370e08da930c35c_b2139ce6-7a73-4c5c-881a-d95ca0c426f2.webp?v=1714888669","width":2000},{"alt":null,"id":23889712185443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6406f51261e74ad13cbb2fe6a2b88eaa61fa4415_782232af-b5be-421f-ada0-5edfe4a112a5.webp?v=1714888671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6406f51261e74ad13cbb2fe6a2b88eaa61fa4415_782232af-b5be-421f-ada0-5edfe4a112a5.webp?v=1714888671","width":2000},{"alt":null,"id":23889712578659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af24f477039370771f36a44d298f39c14e78e415_f940a0c5-2b58-4b81-b232-b4e334161c9e.webp?v=1714888673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af24f477039370771f36a44d298f39c14e78e415_f940a0c5-2b58-4b81-b232-b4e334161c9e.webp?v=1714888673","width":2000},{"alt":null,"id":23889713135715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d38ad719dd1f6caa23512c024f660f5752af5c_bfb61245-f8d6-41ba-8d82-24ccd26d5bfd.webp?v=1714888676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3d38ad719dd1f6caa23512c024f660f5752af5c_bfb61245-f8d6-41ba-8d82-24ccd26d5bfd.webp?v=1714888676","width":2000},{"alt":null,"id":23889713528931,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d8dac1c31b2d27635a6fd7dfa12be09b4254887_fcf3e178-fe98-4502-9334-66e6a08eee0e.webp?v=1714888678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d8dac1c31b2d27635a6fd7dfa12be09b4254887_fcf3e178-fe98-4502-9334-66e6a08eee0e.webp?v=1714888678","width":2000},{"alt":null,"id":23889713954915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb46566dd5a925787c955e13220f3cb715dfa23_1dc015d2-6922-44ff-96ea-390fe7a4f5ab.webp?v=1714888680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb46566dd5a925787c955e13220f3cb715dfa23_1dc015d2-6922-44ff-96ea-390fe7a4f5ab.webp?v=1714888680","width":2000},{"alt":null,"id":23889714380899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682","width":2000},{"alt":null,"id":23889714937955,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e24bca3aa42bd2103202858e2fac5f954ed71c9_04085ce9-6fb6-4d61-92ca-6fb6c1cc62a1.webp?v=1714888685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e24bca3aa42bd2103202858e2fac5f954ed71c9_04085ce9-6fb6-4d61-92ca-6fb6c1cc62a1.webp?v=1714888685","width":2000},{"alt":null,"id":23889715462243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8806777823ba77c4da737d51b92e553d94e54d95_ab66bfda-480d-4ae4-8ad2-0050de9bd03d.webp?v=1714888687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8806777823ba77c4da737d51b92e553d94e54d95_ab66bfda-480d-4ae4-8ad2-0050de9bd03d.webp?v=1714888687","width":2000},{"alt":null,"id":23889716052067,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3beafff223a1ffca0526f759c5b23b96a248d069_e0aaeb0b-de8e-41ce-83aa-13a399a5672b.webp?v=1714888689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3beafff223a1ffca0526f759c5b23b96a248d069_e0aaeb0b-de8e-41ce-83aa-13a399a5672b.webp?v=1714888689","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41903132606563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31484420391011,"product_id":7413995896931,"position":8,"created_at":"2024-05-05T13:58:02+08:00","updated_at":"2024-05-05T13:58:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682","variant_ids":[41903132606563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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-PB52","featured_media":{"alt":null,"id":23889714380899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903132934243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31484417671267,"product_id":7413995896931,"position":2,"created_at":"2024-05-05T13:57:49+08:00","updated_at":"2024-05-05T13:57:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7922becb63675478bbebd57e3370e08da930c35c_b2139ce6-7a73-4c5c-881a-d95ca0c426f2.webp?v=1714888669","variant_ids":[41903132934243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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-PB52","featured_media":{"alt":null,"id":23889711693923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7922becb63675478bbebd57e3370e08da930c35c_b2139ce6-7a73-4c5c-881a-d95ca0c426f2.webp?v=1714888669"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903132606563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB52","requires_shipping":true,"taxable":true,"featured_image":{"id":31484420391011,"product_id":7413995896931,"position":8,"created_at":"2024-05-05T13:58:02+08:00","updated_at":"2024-05-05T13:58:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682","variant_ids":[41903132606563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 波巴費特-線稿風格白 - 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-PB52","featured_media":{"alt":null,"id":23889714380899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2b0cac16fbd964a6d20258a35a2b47736b8cbfd_500ce093-3415-4fba-9d22-3a650ce7d0b9.webp?v=1714888682"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}