$product = {"id":7413978169443,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc07","description":null,"published_at":"2024-06-11T17:46:43+08:00","created_at":"2024-05-05T13:54:19+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":41902930329699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484378939491,"product_id":7413978169443,"position":11,"created_at":"2024-05-05T13:54:44+08:00","updated_at":"2024-05-05T13:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484","variant_ids":[41902930329699]},"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-PC07","featured_media":{"alt":null,"id":23889672798307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902930853987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484375629923,"product_id":7413978169443,"position":4,"created_at":"2024-05-05T13:54:28+08:00","updated_at":"2024-05-05T13:54:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3de5b684747c3acfd98d29c40f1fea64728a2d3_3c1d211d-ab40-4dce-8ddc-8d3e0241b4cd.webp?v=1714888468","variant_ids":[41902930853987]},"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-PC07","featured_media":{"alt":null,"id":23889669488739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3de5b684747c3acfd98d29c40f1fea64728a2d3_3c1d211d-ab40-4dce-8ddc-8d3e0241b4cd.webp?v=1714888468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df2a77a7b7251630489685ec65a4dedc178e43b_385486a6-709e-49b2-8315-d0bb999d44f1.webp?v=1714888462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24504c68f661b259f38793201cac4ab2401cd18_e52d71cd-a8e1-443c-9d65-9f76a3507b06.webp?v=1714888464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac074e94c8d605968ef537a4da85cfa08522dc7_607590e9-0df6-4fe3-b596-10cbe445b9ea.webp?v=1714888466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3de5b684747c3acfd98d29c40f1fea64728a2d3_3c1d211d-ab40-4dce-8ddc-8d3e0241b4cd.webp?v=1714888468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a44bdf1f5ee4d7903c1ed2a6c1088e1333812cb_f5679126-2d39-49b9-812e-9358b979586c.webp?v=1714888470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a351a4f5b18d4c6d46a3d25a64c72044ec56a_c0db8e7c-4c9e-46e2-a8bc-5f4ca1153be0.webp?v=1714888473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153d79496cf79b8743845b781c388a01934e0a7e_99837355-a962-4bdc-a4ea-7244e7f5170a.webp?v=1714888475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51181a4a80a26869e5f04fa68e955406f0818ae2_b8050688-748b-4a98-8a54-8aabfd899dca.webp?v=1714888477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc108a79e0602200c55fd56d39e5ef060808149_b4234045-382d-4264-985b-c0cf21f74370.webp?v=1714888480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ca2793ef0e7b45fda732bb6df66be68b54dd46_b8fdb5e8-f97c-491e-99b0-003754f3f3d1.webp?v=1714888482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df2a77a7b7251630489685ec65a4dedc178e43b_385486a6-709e-49b2-8315-d0bb999d44f1.webp?v=1714888462","options":["color"],"media":[{"alt":null,"id":23889667981411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df2a77a7b7251630489685ec65a4dedc178e43b_385486a6-709e-49b2-8315-d0bb999d44f1.webp?v=1714888462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1df2a77a7b7251630489685ec65a4dedc178e43b_385486a6-709e-49b2-8315-d0bb999d44f1.webp?v=1714888462","width":2000},{"alt":null,"id":23889668702307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24504c68f661b259f38793201cac4ab2401cd18_e52d71cd-a8e1-443c-9d65-9f76a3507b06.webp?v=1714888464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24504c68f661b259f38793201cac4ab2401cd18_e52d71cd-a8e1-443c-9d65-9f76a3507b06.webp?v=1714888464","width":2000},{"alt":null,"id":23889669029987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac074e94c8d605968ef537a4da85cfa08522dc7_607590e9-0df6-4fe3-b596-10cbe445b9ea.webp?v=1714888466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac074e94c8d605968ef537a4da85cfa08522dc7_607590e9-0df6-4fe3-b596-10cbe445b9ea.webp?v=1714888466","width":2000},{"alt":null,"id":23889669488739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3de5b684747c3acfd98d29c40f1fea64728a2d3_3c1d211d-ab40-4dce-8ddc-8d3e0241b4cd.webp?v=1714888468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3de5b684747c3acfd98d29c40f1fea64728a2d3_3c1d211d-ab40-4dce-8ddc-8d3e0241b4cd.webp?v=1714888468","width":2000},{"alt":null,"id":23889669816419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a44bdf1f5ee4d7903c1ed2a6c1088e1333812cb_f5679126-2d39-49b9-812e-9358b979586c.webp?v=1714888470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a44bdf1f5ee4d7903c1ed2a6c1088e1333812cb_f5679126-2d39-49b9-812e-9358b979586c.webp?v=1714888470","width":2000},{"alt":null,"id":23889670537315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a351a4f5b18d4c6d46a3d25a64c72044ec56a_c0db8e7c-4c9e-46e2-a8bc-5f4ca1153be0.webp?v=1714888473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a351a4f5b18d4c6d46a3d25a64c72044ec56a_c0db8e7c-4c9e-46e2-a8bc-5f4ca1153be0.webp?v=1714888473","width":2000},{"alt":null,"id":23889670930531,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153d79496cf79b8743845b781c388a01934e0a7e_99837355-a962-4bdc-a4ea-7244e7f5170a.webp?v=1714888475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153d79496cf79b8743845b781c388a01934e0a7e_99837355-a962-4bdc-a4ea-7244e7f5170a.webp?v=1714888475","width":2000},{"alt":null,"id":23889671389283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51181a4a80a26869e5f04fa68e955406f0818ae2_b8050688-748b-4a98-8a54-8aabfd899dca.webp?v=1714888477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51181a4a80a26869e5f04fa68e955406f0818ae2_b8050688-748b-4a98-8a54-8aabfd899dca.webp?v=1714888477","width":2000},{"alt":null,"id":23889671848035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc108a79e0602200c55fd56d39e5ef060808149_b4234045-382d-4264-985b-c0cf21f74370.webp?v=1714888480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bc108a79e0602200c55fd56d39e5ef060808149_b4234045-382d-4264-985b-c0cf21f74370.webp?v=1714888480","width":2000},{"alt":null,"id":23889672208483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ca2793ef0e7b45fda732bb6df66be68b54dd46_b8fdb5e8-f97c-491e-99b0-003754f3f3d1.webp?v=1714888482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81ca2793ef0e7b45fda732bb6df66be68b54dd46_b8fdb5e8-f97c-491e-99b0-003754f3f3d1.webp?v=1714888482","width":2000},{"alt":null,"id":23889672798307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41902930329699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484378939491,"product_id":7413978169443,"position":11,"created_at":"2024-05-05T13:54:44+08:00","updated_at":"2024-05-05T13:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484","variant_ids":[41902930329699]},"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-PC07","featured_media":{"alt":null,"id":23889672798307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902930853987,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484375629923,"product_id":7413978169443,"position":4,"created_at":"2024-05-05T13:54:28+08:00","updated_at":"2024-05-05T13:54:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3de5b684747c3acfd98d29c40f1fea64728a2d3_3c1d211d-ab40-4dce-8ddc-8d3e0241b4cd.webp?v=1714888468","variant_ids":[41902930853987]},"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-PC07","featured_media":{"alt":null,"id":23889669488739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3de5b684747c3acfd98d29c40f1fea64728a2d3_3c1d211d-ab40-4dce-8ddc-8d3e0241b4cd.webp?v=1714888468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902930329699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31484378939491,"product_id":7413978169443,"position":11,"created_at":"2024-05-05T13:54:44+08:00","updated_at":"2024-05-05T13:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484","variant_ids":[41902930329699]},"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-PC07","featured_media":{"alt":null,"id":23889672798307,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9525dff79cd91b9a9d6385c182fdfdc41720893c_8c9d46fe-ecdf-44f6-88ea-98a899f8bdf8.webp?v=1714888484"}},"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: "停產"
}