$product = {"id":7769954582627,"title":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-xf49","description":null,"published_at":"2025-04-16T13:16:53+08:00","created_at":"2025-04-15T22:31:46+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 13 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":43304769650787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197724201059,"product_id":7769954582627,"position":4,"created_at":"2025-07-16T15:21:37+08:00","updated_at":"2025-07-16T15:21:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498","variant_ids":[43304769650787]},"available":true,"name":"iPhone 13 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":"MPB0123224-XF49","featured_media":{"alt":null,"id":25830068715619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304776237155,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197726986339,"product_id":7769954582627,"position":9,"created_at":"2025-07-16T15:21:40+08:00","updated_at":"2025-07-16T15:21:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8008c611a4dce4b9ab7ed1b65fdc7b391545d8bc_79622961-f2ee-41fd-9c88-442486d0a3c9.webp?v=1752650502","variant_ids":[43304776237155]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-XF49","featured_media":{"alt":null,"id":25830070845539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8008c611a4dce4b9ab7ed1b65fdc7b391545d8bc_79622961-f2ee-41fd-9c88-442486d0a3c9.webp?v=1752650502"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264f51f0e42f1cb27a1562a74c584f26c035823a_262f829e-0422-4c55-97d5-035b84745d8e.webp?v=1744727513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613479b18ea1ff561641ab1a7b464cd46c356b1f_38ce0670-51fa-4789-9dac-11f78c7d86ec.webp?v=1752650497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef54f6f81c2f5908279dc0381214f53cc49124a_bd868d9b-aed1-4195-ac9a-f963042dc96a.webp?v=1752650498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328560722296de60177af57ab0392809da75b902_ec056b3d-4d0c-44d6-bb87-4fa44446e939.webp?v=1752650499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5dd34db526987ae119cf159fec93ac769e7a3b_7917d325-d30e-48fb-a287-bedba173cfeb.webp?v=1752650500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0cc3b2a4c85439bd5a6fbb76c90ed993d2eba1c_d7186118-5c35-4bbf-8306-d3ac54f874ad.webp?v=1752650500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c63faf7d487ac7617e415be589437c43a1b900_6dab951d-4719-494c-8715-9074f9286a43.webp?v=1752650501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8008c611a4dce4b9ab7ed1b65fdc7b391545d8bc_79622961-f2ee-41fd-9c88-442486d0a3c9.webp?v=1752650502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f22afdac8399f73da5e85de94424e28cc763cb_10963527-7256-4bbe-9787-6970e9adc7ee.webp?v=1752650502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92d2947122d8f8a8f4a0eb7006e405da64c169cc_b4ee3770-b21f-40d2-a7cf-34e7bdfe3513.webp?v=1752650503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29eff9daba31b36ddf9f38a668cdf3a76b2d4972_b97e6180-06e0-482c-937a-24b12a0eabba.webp?v=1752650504"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264f51f0e42f1cb27a1562a74c584f26c035823a_262f829e-0422-4c55-97d5-035b84745d8e.webp?v=1744727513","options":["color"],"media":[{"alt":null,"id":25496589992035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264f51f0e42f1cb27a1562a74c584f26c035823a_262f829e-0422-4c55-97d5-035b84745d8e.webp?v=1744727513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/264f51f0e42f1cb27a1562a74c584f26c035823a_262f829e-0422-4c55-97d5-035b84745d8e.webp?v=1744727513","width":2000},{"alt":null,"id":25830067634275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613479b18ea1ff561641ab1a7b464cd46c356b1f_38ce0670-51fa-4789-9dac-11f78c7d86ec.webp?v=1752650497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613479b18ea1ff561641ab1a7b464cd46c356b1f_38ce0670-51fa-4789-9dac-11f78c7d86ec.webp?v=1752650497","width":2000},{"alt":null,"id":25830068158563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef54f6f81c2f5908279dc0381214f53cc49124a_bd868d9b-aed1-4195-ac9a-f963042dc96a.webp?v=1752650498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ef54f6f81c2f5908279dc0381214f53cc49124a_bd868d9b-aed1-4195-ac9a-f963042dc96a.webp?v=1752650498","width":2000},{"alt":null,"id":25830068715619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498","width":2000},{"alt":null,"id":25830069272675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328560722296de60177af57ab0392809da75b902_ec056b3d-4d0c-44d6-bb87-4fa44446e939.webp?v=1752650499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/328560722296de60177af57ab0392809da75b902_ec056b3d-4d0c-44d6-bb87-4fa44446e939.webp?v=1752650499","width":2000},{"alt":null,"id":25830069665891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5dd34db526987ae119cf159fec93ac769e7a3b_7917d325-d30e-48fb-a287-bedba173cfeb.webp?v=1752650500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5dd34db526987ae119cf159fec93ac769e7a3b_7917d325-d30e-48fb-a287-bedba173cfeb.webp?v=1752650500","width":2000},{"alt":null,"id":25830070255715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0cc3b2a4c85439bd5a6fbb76c90ed993d2eba1c_d7186118-5c35-4bbf-8306-d3ac54f874ad.webp?v=1752650500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0cc3b2a4c85439bd5a6fbb76c90ed993d2eba1c_d7186118-5c35-4bbf-8306-d3ac54f874ad.webp?v=1752650500","width":2000},{"alt":null,"id":25830070485091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c63faf7d487ac7617e415be589437c43a1b900_6dab951d-4719-494c-8715-9074f9286a43.webp?v=1752650501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c63faf7d487ac7617e415be589437c43a1b900_6dab951d-4719-494c-8715-9074f9286a43.webp?v=1752650501","width":2000},{"alt":null,"id":25830070845539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8008c611a4dce4b9ab7ed1b65fdc7b391545d8bc_79622961-f2ee-41fd-9c88-442486d0a3c9.webp?v=1752650502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8008c611a4dce4b9ab7ed1b65fdc7b391545d8bc_79622961-f2ee-41fd-9c88-442486d0a3c9.webp?v=1752650502","width":2000},{"alt":null,"id":25830070976611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f22afdac8399f73da5e85de94424e28cc763cb_10963527-7256-4bbe-9787-6970e9adc7ee.webp?v=1752650502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3f22afdac8399f73da5e85de94424e28cc763cb_10963527-7256-4bbe-9787-6970e9adc7ee.webp?v=1752650502","width":2000},{"alt":null,"id":25830071074915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92d2947122d8f8a8f4a0eb7006e405da64c169cc_b4ee3770-b21f-40d2-a7cf-34e7bdfe3513.webp?v=1752650503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92d2947122d8f8a8f4a0eb7006e405da64c169cc_b4ee3770-b21f-40d2-a7cf-34e7bdfe3513.webp?v=1752650503","width":2000},{"alt":null,"id":25830071238755,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29eff9daba31b36ddf9f38a668cdf3a76b2d4972_b97e6180-06e0-482c-937a-24b12a0eabba.webp?v=1752650504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29eff9daba31b36ddf9f38a668cdf3a76b2d4972_b97e6180-06e0-482c-937a-24b12a0eabba.webp?v=1752650504","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43304769650787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197724201059,"product_id":7769954582627,"position":4,"created_at":"2025-07-16T15:21:37+08:00","updated_at":"2025-07-16T15:21:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498","variant_ids":[43304769650787]},"available":true,"name":"iPhone 13 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":"MPB0123224-XF49","featured_media":{"alt":null,"id":25830068715619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304776237155,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01232J5-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197726986339,"product_id":7769954582627,"position":9,"created_at":"2025-07-16T15:21:40+08:00","updated_at":"2025-07-16T15:21:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8008c611a4dce4b9ab7ed1b65fdc7b391545d8bc_79622961-f2ee-41fd-9c88-442486d0a3c9.webp?v=1752650502","variant_ids":[43304776237155]},"available":true,"name":"iPhone 13 Pro Max Mod NX (MagSafe 兼容) ilovedoodle White Cat Flowers - 白貓花朵 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-XF49","featured_media":{"alt":null,"id":25830070845539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8008c611a4dce4b9ab7ed1b65fdc7b391545d8bc_79622961-f2ee-41fd-9c88-442486d0a3c9.webp?v=1752650502"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43304769650787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0123224-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197724201059,"product_id":7769954582627,"position":4,"created_at":"2025-07-16T15:21:37+08:00","updated_at":"2025-07-16T15:21:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498","variant_ids":[43304769650787]},"available":true,"name":"iPhone 13 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":"MPB0123224-XF49","featured_media":{"alt":null,"id":25830068715619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbb7585717b28a200b64923a248b2fae21c83f2e_d491359a-a475-4f12-ba1e-38e572933423.webp?v=1752650498"}},"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: "停產"
}