$product = {"id":7769757614179,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛","handle":"iphone-14-pro-mod-nx-magsafe-printable-xf56","description":null,"published_at":"2025-07-04T14:47:51+08:00","created_at":"2025-04-15T20:17:49+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 14 Pro","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":43303848804451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197713158243,"product_id":7769757614179,"position":3,"created_at":"2025-07-16T15:21:29+08:00","updated_at":"2025-07-16T15:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491","variant_ids":[43303848804451]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-XF56","featured_media":{"alt":null,"id":25830063210595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303852638307,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197714108515,"product_id":7769757614179,"position":6,"created_at":"2025-07-16T15:21:30+08:00","updated_at":"2025-07-16T15:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea478bc9d3578adf045eaba91273c8c041edbac6.webp?v=1752650492","variant_ids":[43303852638307]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-XF56","featured_media":{"alt":null,"id":25830063800419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea478bc9d3578adf045eaba91273c8c041edbac6.webp?v=1752650492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303852802147,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197717319779,"product_id":7769757614179,"position":10,"created_at":"2025-07-16T15:21:33+08:00","updated_at":"2025-07-16T15:21:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fade8ec8686e1fbc7b1115fa712cce6445fbe08.webp?v=1752650494","variant_ids":[43303852802147]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - 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":"MPB01262J5-XF56","featured_media":{"alt":null,"id":25830064914531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fade8ec8686e1fbc7b1115fa712cce6445fbe08.webp?v=1752650494"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc517f101ea735e1a13f613a7a28ef6195c097bd.webp?v=1744719476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56fbfbd0453695df297712fa4d2c8d58ad539447.webp?v=1752650490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3297fb481a07fd735450461c7a58e3c16e8cc831.webp?v=1752650491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a252132c754c630dc809594dbfe3dd8ff3f4772.webp?v=1752650491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea478bc9d3578adf045eaba91273c8c041edbac6.webp?v=1752650492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fa8d9f237981be3e9b0cb4ed1547a984d5c940.webp?v=1752650493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95dd582c4f618a6aa1929b0e5b420491dfcef70d.webp?v=1752650493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec210f1078a34915448e6116e78495cb756f53de.webp?v=1752650494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fade8ec8686e1fbc7b1115fa712cce6445fbe08.webp?v=1752650494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d96ec25bbc4f125956371f4c14d12d80c402a51d.webp?v=1752650495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40eb958988df5b867fb5a067ebcf0c0542e4e4e2.webp?v=1752650495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e5a7df015c89262047a97c05449bcde1335012.webp?v=1752650496"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc517f101ea735e1a13f613a7a28ef6195c097bd.webp?v=1744719476","options":["color"],"media":[{"alt":null,"id":25496248549475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc517f101ea735e1a13f613a7a28ef6195c097bd.webp?v=1744719476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc517f101ea735e1a13f613a7a28ef6195c097bd.webp?v=1744719476","width":2000},{"alt":null,"id":25830063112291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56fbfbd0453695df297712fa4d2c8d58ad539447.webp?v=1752650490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56fbfbd0453695df297712fa4d2c8d58ad539447.webp?v=1752650490","width":2000},{"alt":null,"id":25830063210595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491","width":2000},{"alt":null,"id":25830063341667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3297fb481a07fd735450461c7a58e3c16e8cc831.webp?v=1752650491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3297fb481a07fd735450461c7a58e3c16e8cc831.webp?v=1752650491","width":2000},{"alt":null,"id":25830063669347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a252132c754c630dc809594dbfe3dd8ff3f4772.webp?v=1752650491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a252132c754c630dc809594dbfe3dd8ff3f4772.webp?v=1752650491","width":2000},{"alt":null,"id":25830063800419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea478bc9d3578adf045eaba91273c8c041edbac6.webp?v=1752650492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea478bc9d3578adf045eaba91273c8c041edbac6.webp?v=1752650492","width":2000},{"alt":null,"id":25830063931491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fa8d9f237981be3e9b0cb4ed1547a984d5c940.webp?v=1752650493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9fa8d9f237981be3e9b0cb4ed1547a984d5c940.webp?v=1752650493","width":2000},{"alt":null,"id":25830064160867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95dd582c4f618a6aa1929b0e5b420491dfcef70d.webp?v=1752650493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95dd582c4f618a6aa1929b0e5b420491dfcef70d.webp?v=1752650493","width":2000},{"alt":null,"id":25830064521315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec210f1078a34915448e6116e78495cb756f53de.webp?v=1752650494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec210f1078a34915448e6116e78495cb756f53de.webp?v=1752650494","width":2000},{"alt":null,"id":25830064914531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fade8ec8686e1fbc7b1115fa712cce6445fbe08.webp?v=1752650494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fade8ec8686e1fbc7b1115fa712cce6445fbe08.webp?v=1752650494","width":2000},{"alt":null,"id":25830065537123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d96ec25bbc4f125956371f4c14d12d80c402a51d.webp?v=1752650495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d96ec25bbc4f125956371f4c14d12d80c402a51d.webp?v=1752650495","width":2000},{"alt":null,"id":25830066061411,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40eb958988df5b867fb5a067ebcf0c0542e4e4e2.webp?v=1752650495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40eb958988df5b867fb5a067ebcf0c0542e4e4e2.webp?v=1752650495","width":2000},{"alt":null,"id":25830066618467,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e5a7df015c89262047a97c05449bcde1335012.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9e5a7df015c89262047a97c05449bcde1335012.webp?v=1752650496","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43303848804451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197713158243,"product_id":7769757614179,"position":3,"created_at":"2025-07-16T15:21:29+08:00","updated_at":"2025-07-16T15:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491","variant_ids":[43303848804451]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-XF56","featured_media":{"alt":null,"id":25830063210595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303852638307,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197714108515,"product_id":7769757614179,"position":6,"created_at":"2025-07-16T15:21:30+08:00","updated_at":"2025-07-16T15:21:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea478bc9d3578adf045eaba91273c8c041edbac6.webp?v=1752650492","variant_ids":[43303852638307]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-XF56","featured_media":{"alt":null,"id":25830063800419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea478bc9d3578adf045eaba91273c8c041edbac6.webp?v=1752650492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303852802147,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197717319779,"product_id":7769757614179,"position":10,"created_at":"2025-07-16T15:21:33+08:00","updated_at":"2025-07-16T15:21:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fade8ec8686e1fbc7b1115fa712cce6445fbe08.webp?v=1752650494","variant_ids":[43303852802147]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛 - 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":"MPB01262J5-XF56","featured_media":{"alt":null,"id":25830064914531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fade8ec8686e1fbc7b1115fa712cce6445fbe08.webp?v=1752650494"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43303848804451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197713158243,"product_id":7769757614179,"position":3,"created_at":"2025-07-16T15:21:29+08:00","updated_at":"2025-07-16T15:21:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491","variant_ids":[43303848804451]},"available":true,"name":"iPhone 14 Pro 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":"MPB0126224-XF56","featured_media":{"alt":null,"id":25830063210595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2212c795eaf67dea6b9709f1137d6a08196a32ef.webp?v=1752650491"}},"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: "停產"
}