$product = {"id":7769936986211,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - 冷靜","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-xf46","description":null,"published_at":"2025-04-16T13:24:16+08:00","created_at":"2025-04-15T22:19:25+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":43304683765859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197707260003,"product_id":7769936986211,"position":5,"created_at":"2025-07-16T15:21:22+08:00","updated_at":"2025-07-16T15:21:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484","variant_ids":[43304683765859]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - 冷靜 - 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-XF46","featured_media":{"alt":null,"id":25830059606115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d65fc0d023293b408d98685d886ee14961e671_9c0fecff-6f6d-45fb-88d2-368e7ffd5ca9.webp?v=1744726772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce692fc02806c32a2ee5d2989551dbffcfcefa59_c9a7c18c-7f65-413a-b22e-be1c7bb9ffab.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f950a011b321dcd142bb6e26e63719233a7cee00_ace7c541-c302-47d4-9a76-d0429607d55f.webp?v=1752650482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca4d058a35da89a48dfbd23d59e7c8719ddb2ad_4e875438-1428-48a8-a461-2d49dad55035.webp?v=1752650483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776d57fbfbfe43528e5ff916151b536992f961c6_d167070c-5bb0-4b5a-96d7-6d457ed72f30.webp?v=1752650485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f3c7c20ae185b9ea667c62fcca9d1b21f38044_ef2441c0-884a-490f-a8ab-9dcd8f4a83a4.webp?v=1752650485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd11ffd90a455b077c157ff213e9a88f990f2aa2_ef95d382-d628-4f06-9a2f-38bf1f02bf7d.webp?v=1752650486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a2012f48a74803561e5a1e4bede5a6ae2c87dc_887da80f-054b-4f39-96de-130bd8883b70.webp?v=1752650487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8c385c00d5f70ad9f376dd8578bae3f32cfa39_373959ac-c572-4fc6-9406-d881b6df95a3.webp?v=1752650487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac43775a22ec6ebfe47b4fb76527464794363524_e6dd4ac7-81b1-4c47-b0e6-1110e1b24b71.webp?v=1752650488"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d65fc0d023293b408d98685d886ee14961e671_9c0fecff-6f6d-45fb-88d2-368e7ffd5ca9.webp?v=1744726772","options":["color"],"media":[{"alt":null,"id":25496553783395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d65fc0d023293b408d98685d886ee14961e671_9c0fecff-6f6d-45fb-88d2-368e7ffd5ca9.webp?v=1744726772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d65fc0d023293b408d98685d886ee14961e671_9c0fecff-6f6d-45fb-88d2-368e7ffd5ca9.webp?v=1744726772","width":2000},{"alt":null,"id":25830057476195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce692fc02806c32a2ee5d2989551dbffcfcefa59_c9a7c18c-7f65-413a-b22e-be1c7bb9ffab.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce692fc02806c32a2ee5d2989551dbffcfcefa59_c9a7c18c-7f65-413a-b22e-be1c7bb9ffab.webp?v=1752650482","width":2000},{"alt":null,"id":25830058066019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f950a011b321dcd142bb6e26e63719233a7cee00_ace7c541-c302-47d4-9a76-d0429607d55f.webp?v=1752650482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f950a011b321dcd142bb6e26e63719233a7cee00_ace7c541-c302-47d4-9a76-d0429607d55f.webp?v=1752650482","width":2000},{"alt":null,"id":25830058721379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca4d058a35da89a48dfbd23d59e7c8719ddb2ad_4e875438-1428-48a8-a461-2d49dad55035.webp?v=1752650483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca4d058a35da89a48dfbd23d59e7c8719ddb2ad_4e875438-1428-48a8-a461-2d49dad55035.webp?v=1752650483","width":2000},{"alt":null,"id":25830059606115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484","width":2000},{"alt":null,"id":25830060556387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776d57fbfbfe43528e5ff916151b536992f961c6_d167070c-5bb0-4b5a-96d7-6d457ed72f30.webp?v=1752650485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/776d57fbfbfe43528e5ff916151b536992f961c6_d167070c-5bb0-4b5a-96d7-6d457ed72f30.webp?v=1752650485","width":2000},{"alt":null,"id":25830061047907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f3c7c20ae185b9ea667c62fcca9d1b21f38044_ef2441c0-884a-490f-a8ab-9dcd8f4a83a4.webp?v=1752650485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f3c7c20ae185b9ea667c62fcca9d1b21f38044_ef2441c0-884a-490f-a8ab-9dcd8f4a83a4.webp?v=1752650485","width":2000},{"alt":null,"id":25830061637731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd11ffd90a455b077c157ff213e9a88f990f2aa2_ef95d382-d628-4f06-9a2f-38bf1f02bf7d.webp?v=1752650486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd11ffd90a455b077c157ff213e9a88f990f2aa2_ef95d382-d628-4f06-9a2f-38bf1f02bf7d.webp?v=1752650486","width":2000},{"alt":null,"id":25830062129251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a2012f48a74803561e5a1e4bede5a6ae2c87dc_887da80f-054b-4f39-96de-130bd8883b70.webp?v=1752650487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8a2012f48a74803561e5a1e4bede5a6ae2c87dc_887da80f-054b-4f39-96de-130bd8883b70.webp?v=1752650487","width":2000},{"alt":null,"id":25830062456931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8c385c00d5f70ad9f376dd8578bae3f32cfa39_373959ac-c572-4fc6-9406-d881b6df95a3.webp?v=1752650487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8c385c00d5f70ad9f376dd8578bae3f32cfa39_373959ac-c572-4fc6-9406-d881b6df95a3.webp?v=1752650487","width":2000},{"alt":null,"id":25830062751843,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac43775a22ec6ebfe47b4fb76527464794363524_e6dd4ac7-81b1-4c47-b0e6-1110e1b24b71.webp?v=1752650488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac43775a22ec6ebfe47b4fb76527464794363524_e6dd4ac7-81b1-4c47-b0e6-1110e1b24b71.webp?v=1752650488","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43304683765859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197707260003,"product_id":7769936986211,"position":5,"created_at":"2025-07-16T15:21:22+08:00","updated_at":"2025-07-16T15:21:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484","variant_ids":[43304683765859]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - 冷靜 - 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-XF46","featured_media":{"alt":null,"id":25830059606115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43304683765859,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF46","requires_shipping":true,"taxable":true,"featured_image":{"id":34197707260003,"product_id":7769936986211,"position":5,"created_at":"2025-07-16T15:21:22+08:00","updated_at":"2025-07-16T15:21:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484","variant_ids":[43304683765859]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - 冷靜 - 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-XF46","featured_media":{"alt":null,"id":25830059606115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d363feb7476d938f148c2d3192aeab296881f7_90f58edc-be90-450e-8c16-96ff6345c1ad.webp?v=1752650484"}},"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: "停產"
}