$product = {"id":7769774358627,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-xf56","description":null,"published_at":"2025-07-04T14:47:45+08:00","created_at":"2025-04-15T20:26:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 12 Pro Max","merge","reseller-ilovedoodle"],"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":43303905853539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197844951139,"product_id":7769774358627,"position":5,"created_at":"2025-07-16T15:23:26+08:00","updated_at":"2025-07-16T15:23:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607","variant_ids":[43303905853539]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF56","featured_media":{"alt":null,"id":25830132809827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f5f6067d7c8e97bf3ecce241d6ed298c28d351.webp?v=1744720026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8954ddb2e057c896701e4f786a0282f90254687f_f791a491-3a59-4f26-926d-88e0c60bbc17.webp?v=1752650606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88a6e67acef1bc138515b675b87a14e152766d1_b20fbc3d-a314-4c97-95d3-7989c19e41b1.webp?v=1752650607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dc36599d1307ec95f1bad777e368daadae7559f_eaa09b4d-86ee-431f-bc4b-cbab975433f0.webp?v=1752650607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ff06fdbd28fa712a222b93de522325cba01978_8437fd35-e40b-4c72-9211-b957f0b3f64e.webp?v=1752650608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f243c452ecf94bf722ee6c1397393cff50412f6_6d2d2a3d-0252-409f-8ec4-15b0761f9031.webp?v=1752650609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/458ba1ec81a396ace92861fe770c285c1e926f54_59d69254-603b-4cbd-a544-8d24acd939b8.webp?v=1752650610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657dd817df3a5dcd488d5c4cd41dcb30e1adc624_2690d5d3-e871-4584-8720-e94a9b81bd45.webp?v=1752650610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded247fcb26c04bbd6e5e2e000e2380b758a4bfb_ced6af70-ba90-4f07-a0c5-9f8dca9414f0.webp?v=1752650611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a37186c4ca8746178db3a0157e06f6f4ade4a_8711e6f3-bea7-4a1e-90ad-dfc24c8afff2.webp?v=1752650611"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f5f6067d7c8e97bf3ecce241d6ed298c28d351.webp?v=1744720026","options":["color"],"media":[{"alt":null,"id":25496267292771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f5f6067d7c8e97bf3ecce241d6ed298c28d351.webp?v=1744720026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f5f6067d7c8e97bf3ecce241d6ed298c28d351.webp?v=1744720026","width":2000},{"alt":null,"id":25830131826787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8954ddb2e057c896701e4f786a0282f90254687f_f791a491-3a59-4f26-926d-88e0c60bbc17.webp?v=1752650606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8954ddb2e057c896701e4f786a0282f90254687f_f791a491-3a59-4f26-926d-88e0c60bbc17.webp?v=1752650606","width":2000},{"alt":null,"id":25830132121699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88a6e67acef1bc138515b675b87a14e152766d1_b20fbc3d-a314-4c97-95d3-7989c19e41b1.webp?v=1752650607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88a6e67acef1bc138515b675b87a14e152766d1_b20fbc3d-a314-4c97-95d3-7989c19e41b1.webp?v=1752650607","width":2000},{"alt":null,"id":25830132514915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dc36599d1307ec95f1bad777e368daadae7559f_eaa09b4d-86ee-431f-bc4b-cbab975433f0.webp?v=1752650607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dc36599d1307ec95f1bad777e368daadae7559f_eaa09b4d-86ee-431f-bc4b-cbab975433f0.webp?v=1752650607","width":2000},{"alt":null,"id":25830132809827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607","width":2000},{"alt":null,"id":25830133039203,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ff06fdbd28fa712a222b93de522325cba01978_8437fd35-e40b-4c72-9211-b957f0b3f64e.webp?v=1752650608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3ff06fdbd28fa712a222b93de522325cba01978_8437fd35-e40b-4c72-9211-b957f0b3f64e.webp?v=1752650608","width":2000},{"alt":null,"id":25830133399651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f243c452ecf94bf722ee6c1397393cff50412f6_6d2d2a3d-0252-409f-8ec4-15b0761f9031.webp?v=1752650609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f243c452ecf94bf722ee6c1397393cff50412f6_6d2d2a3d-0252-409f-8ec4-15b0761f9031.webp?v=1752650609","width":2000},{"alt":null,"id":25830133792867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/458ba1ec81a396ace92861fe770c285c1e926f54_59d69254-603b-4cbd-a544-8d24acd939b8.webp?v=1752650610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/458ba1ec81a396ace92861fe770c285c1e926f54_59d69254-603b-4cbd-a544-8d24acd939b8.webp?v=1752650610","width":2000},{"alt":null,"id":25830134153315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657dd817df3a5dcd488d5c4cd41dcb30e1adc624_2690d5d3-e871-4584-8720-e94a9b81bd45.webp?v=1752650610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657dd817df3a5dcd488d5c4cd41dcb30e1adc624_2690d5d3-e871-4584-8720-e94a9b81bd45.webp?v=1752650610","width":2000},{"alt":null,"id":25830134480995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded247fcb26c04bbd6e5e2e000e2380b758a4bfb_ced6af70-ba90-4f07-a0c5-9f8dca9414f0.webp?v=1752650611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded247fcb26c04bbd6e5e2e000e2380b758a4bfb_ced6af70-ba90-4f07-a0c5-9f8dca9414f0.webp?v=1752650611","width":2000},{"alt":null,"id":25830134841443,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a37186c4ca8746178db3a0157e06f6f4ade4a_8711e6f3-bea7-4a1e-90ad-dfc24c8afff2.webp?v=1752650611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4a37186c4ca8746178db3a0157e06f6f4ade4a_8711e6f3-bea7-4a1e-90ad-dfc24c8afff2.webp?v=1752650611","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43303905853539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197844951139,"product_id":7769774358627,"position":5,"created_at":"2025-07-16T15:23:26+08:00","updated_at":"2025-07-16T15:23:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607","variant_ids":[43303905853539]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF56","featured_media":{"alt":null,"id":25830132809827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43303905853539,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197844951139,"product_id":7769774358627,"position":5,"created_at":"2025-07-16T15:23:26+08:00","updated_at":"2025-07-16T15:23:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607","variant_ids":[43303905853539]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-XF56","featured_media":{"alt":null,"id":25830132809827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32288a74c2605dbe72cba6050d7bb72d9ad8d6e9_c34bce74-352c-4b26-910e-5be17cba023a.webp?v=1752650607"}},"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: "停產"
}