$product = {"id":7769737789539,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-xf49","description":null,"published_at":"2025-07-16T17:03:14+08:00","created_at":"2025-04-15T20:09:26+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":43303775502435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197830926435,"product_id":7769737789539,"position":4,"created_at":"2025-07-16T15:23:13+08:00","updated_at":"2025-07-16T15:23:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595","variant_ids":[43303775502435]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25830125338723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5adf4d1c2e6ca2b8a60b4e94447d0fbae7aeeee2_8b380325-599a-41ea-910a-5db82ba9aa6a.webp?v=1744718973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c19a98fd2c54df8d5832840e8c03bef82650547_7b9edf3e-2270-45c5-b97a-1f2fe778f1c2.webp?v=1752650594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bead44cbe339aa9f147a062f029b209c23687038_b1d50477-7629-4604-b0e8-6c41020ebc67.webp?v=1752650594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b353fd1f2a9baccabf4a9ab9793c731ab63e147_c9ee5f8e-d782-4f56-b238-8059a7284c2d.webp?v=1752650595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4994d0114b9612d3b8c126d6f96feebf5da3f96f_e1a8b488-4a74-436b-81a7-1227ce41063d.webp?v=1752650596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e29fe05f012ad944a22fd42a240b7d7611edf4a7_7e0fd770-d8e4-4eb8-82c7-de19055cb8bc.webp?v=1752650596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5d74d443623c1169fc8be98297de0baf211b924_7d97b497-501c-48b6-afe0-2f898af12018.webp?v=1752650597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01d2bc9edc7c2db19abdadb0cc5816104382c0_b89ea1ba-2437-47a7-afbd-d5681215b730.webp?v=1752650598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42615b0b35f469a1f6334f07f3b5ede89f02dd8d_f6ed5ee6-df88-4e94-8982-ee2d20523a3c.webp?v=1752650599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7facba77590bb0f71ea267ffb7b033697501c732_4db5f173-b189-406c-aa2f-b69b2104a8a1.webp?v=1752650599"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5adf4d1c2e6ca2b8a60b4e94447d0fbae7aeeee2_8b380325-599a-41ea-910a-5db82ba9aa6a.webp?v=1744718973","options":["color"],"media":[{"alt":null,"id":25496199397475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5adf4d1c2e6ca2b8a60b4e94447d0fbae7aeeee2_8b380325-599a-41ea-910a-5db82ba9aa6a.webp?v=1744718973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5adf4d1c2e6ca2b8a60b4e94447d0fbae7aeeee2_8b380325-599a-41ea-910a-5db82ba9aa6a.webp?v=1744718973","width":2000},{"alt":null,"id":25830124617827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c19a98fd2c54df8d5832840e8c03bef82650547_7b9edf3e-2270-45c5-b97a-1f2fe778f1c2.webp?v=1752650594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c19a98fd2c54df8d5832840e8c03bef82650547_7b9edf3e-2270-45c5-b97a-1f2fe778f1c2.webp?v=1752650594","width":2000},{"alt":null,"id":25830125142115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bead44cbe339aa9f147a062f029b209c23687038_b1d50477-7629-4604-b0e8-6c41020ebc67.webp?v=1752650594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bead44cbe339aa9f147a062f029b209c23687038_b1d50477-7629-4604-b0e8-6c41020ebc67.webp?v=1752650594","width":2000},{"alt":null,"id":25830125338723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595","width":2000},{"alt":null,"id":25830125666403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b353fd1f2a9baccabf4a9ab9793c731ab63e147_c9ee5f8e-d782-4f56-b238-8059a7284c2d.webp?v=1752650595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b353fd1f2a9baccabf4a9ab9793c731ab63e147_c9ee5f8e-d782-4f56-b238-8059a7284c2d.webp?v=1752650595","width":2000},{"alt":null,"id":25830126092387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4994d0114b9612d3b8c126d6f96feebf5da3f96f_e1a8b488-4a74-436b-81a7-1227ce41063d.webp?v=1752650596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4994d0114b9612d3b8c126d6f96feebf5da3f96f_e1a8b488-4a74-436b-81a7-1227ce41063d.webp?v=1752650596","width":2000},{"alt":null,"id":25830126420067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e29fe05f012ad944a22fd42a240b7d7611edf4a7_7e0fd770-d8e4-4eb8-82c7-de19055cb8bc.webp?v=1752650596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e29fe05f012ad944a22fd42a240b7d7611edf4a7_7e0fd770-d8e4-4eb8-82c7-de19055cb8bc.webp?v=1752650596","width":2000},{"alt":null,"id":25830126714979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5d74d443623c1169fc8be98297de0baf211b924_7d97b497-501c-48b6-afe0-2f898af12018.webp?v=1752650597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5d74d443623c1169fc8be98297de0baf211b924_7d97b497-501c-48b6-afe0-2f898af12018.webp?v=1752650597","width":2000},{"alt":null,"id":25830127042659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01d2bc9edc7c2db19abdadb0cc5816104382c0_b89ea1ba-2437-47a7-afbd-d5681215b730.webp?v=1752650598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c01d2bc9edc7c2db19abdadb0cc5816104382c0_b89ea1ba-2437-47a7-afbd-d5681215b730.webp?v=1752650598","width":2000},{"alt":null,"id":25830127272035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42615b0b35f469a1f6334f07f3b5ede89f02dd8d_f6ed5ee6-df88-4e94-8982-ee2d20523a3c.webp?v=1752650599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42615b0b35f469a1f6334f07f3b5ede89f02dd8d_f6ed5ee6-df88-4e94-8982-ee2d20523a3c.webp?v=1752650599","width":2000},{"alt":null,"id":25830127501411,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7facba77590bb0f71ea267ffb7b033697501c732_4db5f173-b189-406c-aa2f-b69b2104a8a1.webp?v=1752650599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7facba77590bb0f71ea267ffb7b033697501c732_4db5f173-b189-406c-aa2f-b69b2104a8a1.webp?v=1752650599","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43303775502435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197830926435,"product_id":7769737789539,"position":4,"created_at":"2025-07-16T15:23:13+08:00","updated_at":"2025-07-16T15:23:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595","variant_ids":[43303775502435]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25830125338723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43303775502435,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197830926435,"product_id":7769737789539,"position":4,"created_at":"2025-07-16T15:23:13+08:00","updated_at":"2025-07-16T15:23:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595","variant_ids":[43303775502435]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25830125338723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b8ebe9f792656f0401be399c4ce0cd62f9e0dd_92a72605-b709-4082-86af-85e922f03f64.webp?v=1752650595"}},"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: "停產"
}