$product = {"id":7769905201251,"title":"iPhone 13 mini Mod NX (MagSafe 兼容) ilovedoodle Love Keeps Our Hearts Warm - 溫暖的愛","handle":"iphone-13-mini-mod-nx-magsafe-printable-xf56","description":null,"published_at":"2025-04-16T13:38:25+08:00","created_at":"2025-04-15T21:56:51+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 Mini","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":43304524316771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197857730659,"product_id":7769905201251,"position":10,"created_at":"2025-07-16T15:23:37+08:00","updated_at":"2025-07-16T15:23:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619","variant_ids":[43304524316771]},"available":true,"name":"iPhone 13 mini 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":"MPB0122824-XF56","featured_media":{"alt":null,"id":25830139232355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304529166435,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197857337443,"product_id":7769905201251,"position":9,"created_at":"2025-07-16T15:23:36+08:00","updated_at":"2025-07-16T15:23:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ba3a6497839f9f1a4b1247988e0b7d3da0a8a8.webp?v=1752650619","variant_ids":[43304529166435]},"available":true,"name":"iPhone 13 mini 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":"MPB0122804-XF56","featured_media":{"alt":null,"id":25830138904675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ba3a6497839f9f1a4b1247988e0b7d3da0a8a8.webp?v=1752650619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304529330275,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197854519395,"product_id":7769905201251,"position":6,"created_at":"2025-07-16T15:23:35+08:00","updated_at":"2025-07-16T15:23:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c46997a47ec56fa5f5dfc3fd0657554515eef1.webp?v=1752650616","variant_ids":[43304529330275]},"available":true,"name":"iPhone 13 mini 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":"MPB01228J5-XF56","featured_media":{"alt":null,"id":25830137200739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c46997a47ec56fa5f5dfc3fd0657554515eef1.webp?v=1752650616"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f4bc7f3105bd0737d7709cdc1243c09a8bc0e7_fb1e7363-bee0-460f-8659-29fb4aa9dfd0.webp?v=1744725418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aff36aa2769e332d96434ba4b460bf1975b1fa8.webp?v=1752650614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab9a5f608d1e422087f3718d14d1d64719d2fb2.webp?v=1752650615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373af0ba446420d5ba22b8a8de6ee2dbc8488cf2.webp?v=1752650615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/494e619317a11c6c70c5d9eb564fcf28c9269343.webp?v=1752650616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c46997a47ec56fa5f5dfc3fd0657554515eef1.webp?v=1752650616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b94b046de579995f54a241a0fb4f93c567a880.webp?v=1752650617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5cd6ea6422cd540fbdf022b57094289d72a5073.webp?v=1752650618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ba3a6497839f9f1a4b1247988e0b7d3da0a8a8.webp?v=1752650619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f74cf38d7b660f547e14e6b5f88f741cf99b1c.webp?v=1752650619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f08beda6af9c6b7bcfa2ca52ac9dcb2f23b1ef9.webp?v=1752650620"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f4bc7f3105bd0737d7709cdc1243c09a8bc0e7_fb1e7363-bee0-460f-8659-29fb4aa9dfd0.webp?v=1744725418","options":["color"],"media":[{"alt":null,"id":25496478285923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f4bc7f3105bd0737d7709cdc1243c09a8bc0e7_fb1e7363-bee0-460f-8659-29fb4aa9dfd0.webp?v=1744725418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92f4bc7f3105bd0737d7709cdc1243c09a8bc0e7_fb1e7363-bee0-460f-8659-29fb4aa9dfd0.webp?v=1744725418","width":2000},{"alt":null,"id":25830135890019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aff36aa2769e332d96434ba4b460bf1975b1fa8.webp?v=1752650614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aff36aa2769e332d96434ba4b460bf1975b1fa8.webp?v=1752650614","width":2000},{"alt":null,"id":25830136217699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab9a5f608d1e422087f3718d14d1d64719d2fb2.webp?v=1752650615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab9a5f608d1e422087f3718d14d1d64719d2fb2.webp?v=1752650615","width":2000},{"alt":null,"id":25830136578147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373af0ba446420d5ba22b8a8de6ee2dbc8488cf2.webp?v=1752650615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373af0ba446420d5ba22b8a8de6ee2dbc8488cf2.webp?v=1752650615","width":2000},{"alt":null,"id":25830136873059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/494e619317a11c6c70c5d9eb564fcf28c9269343.webp?v=1752650616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/494e619317a11c6c70c5d9eb564fcf28c9269343.webp?v=1752650616","width":2000},{"alt":null,"id":25830137200739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c46997a47ec56fa5f5dfc3fd0657554515eef1.webp?v=1752650616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c46997a47ec56fa5f5dfc3fd0657554515eef1.webp?v=1752650616","width":2000},{"alt":null,"id":25830137561187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b94b046de579995f54a241a0fb4f93c567a880.webp?v=1752650617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b94b046de579995f54a241a0fb4f93c567a880.webp?v=1752650617","width":2000},{"alt":null,"id":25830138249315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5cd6ea6422cd540fbdf022b57094289d72a5073.webp?v=1752650618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5cd6ea6422cd540fbdf022b57094289d72a5073.webp?v=1752650618","width":2000},{"alt":null,"id":25830138904675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ba3a6497839f9f1a4b1247988e0b7d3da0a8a8.webp?v=1752650619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ba3a6497839f9f1a4b1247988e0b7d3da0a8a8.webp?v=1752650619","width":2000},{"alt":null,"id":25830139232355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619","width":2000},{"alt":null,"id":25830139560035,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f74cf38d7b660f547e14e6b5f88f741cf99b1c.webp?v=1752650619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f74cf38d7b660f547e14e6b5f88f741cf99b1c.webp?v=1752650619","width":2000},{"alt":null,"id":25830140215395,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f08beda6af9c6b7bcfa2ca52ac9dcb2f23b1ef9.webp?v=1752650620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f08beda6af9c6b7bcfa2ca52ac9dcb2f23b1ef9.webp?v=1752650620","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43304524316771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197857730659,"product_id":7769905201251,"position":10,"created_at":"2025-07-16T15:23:37+08:00","updated_at":"2025-07-16T15:23:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619","variant_ids":[43304524316771]},"available":true,"name":"iPhone 13 mini 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":"MPB0122824-XF56","featured_media":{"alt":null,"id":25830139232355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304529166435,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0122804-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197857337443,"product_id":7769905201251,"position":9,"created_at":"2025-07-16T15:23:36+08:00","updated_at":"2025-07-16T15:23:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ba3a6497839f9f1a4b1247988e0b7d3da0a8a8.webp?v=1752650619","variant_ids":[43304529166435]},"available":true,"name":"iPhone 13 mini 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":"MPB0122804-XF56","featured_media":{"alt":null,"id":25830138904675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71ba3a6497839f9f1a4b1247988e0b7d3da0a8a8.webp?v=1752650619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304529330275,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01228J5-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197854519395,"product_id":7769905201251,"position":6,"created_at":"2025-07-16T15:23:35+08:00","updated_at":"2025-07-16T15:23:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c46997a47ec56fa5f5dfc3fd0657554515eef1.webp?v=1752650616","variant_ids":[43304529330275]},"available":true,"name":"iPhone 13 mini 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":"MPB01228J5-XF56","featured_media":{"alt":null,"id":25830137200739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22c46997a47ec56fa5f5dfc3fd0657554515eef1.webp?v=1752650616"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43304524316771,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0122824-XF56","requires_shipping":true,"taxable":true,"featured_image":{"id":34197857730659,"product_id":7769905201251,"position":10,"created_at":"2025-07-16T15:23:37+08:00","updated_at":"2025-07-16T15:23:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619","variant_ids":[43304524316771]},"available":true,"name":"iPhone 13 mini 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":"MPB0122824-XF56","featured_media":{"alt":null,"id":25830139232355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3077fd38853383b1174271c5af4bd1cf47b9ea0.webp?v=1752650619"}},"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: "停產"
}