$product = {"id":7769846055011,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf55","description":null,"published_at":"2025-04-16T14:04:55+08:00","created_at":"2025-04-15T21:09:38+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 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":43304205353059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197847801955,"product_id":7769846055011,"position":10,"created_at":"2025-07-16T15:23:29+08:00","updated_at":"2025-07-16T15:23:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610","variant_ids":[43304205353059]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-XF55","featured_media":{"alt":null,"id":25830134251619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4aaab927076420f58a7c92b38a67bb8d8a7fd10_f512446f-dc39-46f1-9588-915b35f97c9c.webp?v=1744722585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03fbf368232e2f482ec888997d1f8cd825072943_df9c5be9-009d-44ab-b412-207af7f84ee2.webp?v=1752650606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa139d9f02a809938bc06ed45762a703a976cf1_3cb63b13-508c-40eb-bf59-300421e0cc1d.webp?v=1752650606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee464a9ef554a06552555c33fe1201c71edaefe_76acf69f-1937-456d-a1e3-e73acd34a6e0.webp?v=1752650607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af72ae3c0b98caf06ea47178a96ce501295713f_0e161030-5696-4181-b699-30ecd8df83d4.webp?v=1752650607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88c71a5ce4ac409ef89021d37bc8f15ea85eab85_9e27d402-cdd9-4bab-a531-6b5037827c48.webp?v=1752650608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97b5064889f21a6e6fdc50cb659a1ea6775553a_7ff0a595-c168-46ea-a73a-a8d420625d84.webp?v=1752650609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98d940e93bd875aa5cee29872df5df32318927f1_fe9ba9ba-3814-4675-8a96-a246d1afb916.webp?v=1752650609","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c0b2a34654c0b389073c193c31fab31395111c_16aa8940-1471-4746-9055-45131c45e45c.webp?v=1752650610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0524491ba2ada3d0b22d5d8a13ed205e8189c0bc_3f6df1cf-138e-4c83-81ff-b41a294f0f52.webp?v=1752650611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a785cf7598b204b971a2bf514f585d6c2417dfa_18993fdf-9707-4b30-b816-8870abd40199.webp?v=1752650612"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4aaab927076420f58a7c92b38a67bb8d8a7fd10_f512446f-dc39-46f1-9588-915b35f97c9c.webp?v=1744722585","options":["color"],"media":[{"alt":null,"id":25496355176547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4aaab927076420f58a7c92b38a67bb8d8a7fd10_f512446f-dc39-46f1-9588-915b35f97c9c.webp?v=1744722585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4aaab927076420f58a7c92b38a67bb8d8a7fd10_f512446f-dc39-46f1-9588-915b35f97c9c.webp?v=1744722585","width":2000},{"alt":null,"id":25830131335267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03fbf368232e2f482ec888997d1f8cd825072943_df9c5be9-009d-44ab-b412-207af7f84ee2.webp?v=1752650606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03fbf368232e2f482ec888997d1f8cd825072943_df9c5be9-009d-44ab-b412-207af7f84ee2.webp?v=1752650606","width":2000},{"alt":null,"id":25830132023395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa139d9f02a809938bc06ed45762a703a976cf1_3cb63b13-508c-40eb-bf59-300421e0cc1d.webp?v=1752650606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fa139d9f02a809938bc06ed45762a703a976cf1_3cb63b13-508c-40eb-bf59-300421e0cc1d.webp?v=1752650606","width":2000},{"alt":null,"id":25830132449379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee464a9ef554a06552555c33fe1201c71edaefe_76acf69f-1937-456d-a1e3-e73acd34a6e0.webp?v=1752650607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ee464a9ef554a06552555c33fe1201c71edaefe_76acf69f-1937-456d-a1e3-e73acd34a6e0.webp?v=1752650607","width":2000},{"alt":null,"id":25830132777059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af72ae3c0b98caf06ea47178a96ce501295713f_0e161030-5696-4181-b699-30ecd8df83d4.webp?v=1752650607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af72ae3c0b98caf06ea47178a96ce501295713f_0e161030-5696-4181-b699-30ecd8df83d4.webp?v=1752650607","width":2000},{"alt":null,"id":25830133071971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88c71a5ce4ac409ef89021d37bc8f15ea85eab85_9e27d402-cdd9-4bab-a531-6b5037827c48.webp?v=1752650608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88c71a5ce4ac409ef89021d37bc8f15ea85eab85_9e27d402-cdd9-4bab-a531-6b5037827c48.webp?v=1752650608","width":2000},{"alt":null,"id":25830133334115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97b5064889f21a6e6fdc50cb659a1ea6775553a_7ff0a595-c168-46ea-a73a-a8d420625d84.webp?v=1752650609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97b5064889f21a6e6fdc50cb659a1ea6775553a_7ff0a595-c168-46ea-a73a-a8d420625d84.webp?v=1752650609","width":2000},{"alt":null,"id":25830133661795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98d940e93bd875aa5cee29872df5df32318927f1_fe9ba9ba-3814-4675-8a96-a246d1afb916.webp?v=1752650609"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98d940e93bd875aa5cee29872df5df32318927f1_fe9ba9ba-3814-4675-8a96-a246d1afb916.webp?v=1752650609","width":2000},{"alt":null,"id":25830133923939,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c0b2a34654c0b389073c193c31fab31395111c_16aa8940-1471-4746-9055-45131c45e45c.webp?v=1752650610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c0b2a34654c0b389073c193c31fab31395111c_16aa8940-1471-4746-9055-45131c45e45c.webp?v=1752650610","width":2000},{"alt":null,"id":25830134251619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610","width":2000},{"alt":null,"id":25830134710371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0524491ba2ada3d0b22d5d8a13ed205e8189c0bc_3f6df1cf-138e-4c83-81ff-b41a294f0f52.webp?v=1752650611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0524491ba2ada3d0b22d5d8a13ed205e8189c0bc_3f6df1cf-138e-4c83-81ff-b41a294f0f52.webp?v=1752650611","width":2000},{"alt":null,"id":25830135103587,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a785cf7598b204b971a2bf514f585d6c2417dfa_18993fdf-9707-4b30-b816-8870abd40199.webp?v=1752650612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a785cf7598b204b971a2bf514f585d6c2417dfa_18993fdf-9707-4b30-b816-8870abd40199.webp?v=1752650612","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43304205353059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197847801955,"product_id":7769846055011,"position":10,"created_at":"2025-07-16T15:23:29+08:00","updated_at":"2025-07-16T15:23:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610","variant_ids":[43304205353059]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-XF55","featured_media":{"alt":null,"id":25830134251619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43304205353059,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197847801955,"product_id":7769846055011,"position":10,"created_at":"2025-07-16T15:23:29+08:00","updated_at":"2025-07-16T15:23:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610","variant_ids":[43304205353059]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-XF55","featured_media":{"alt":null,"id":25830134251619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cafc825ce09f1f0cd39d8080a7602d5ae6ffa4a4_24371137-0428-48db-9ab0-f101b302ceb2.webp?v=1752650610"}},"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: "停產"
}