$product = {"id":7769387761763,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself","handle":"iphone-12-mini-mod-nx-magsafe-printable-xf47","description":null,"published_at":"2025-07-16T17:41:10+08:00","created_at":"2025-04-15T15:21:25+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":43302107054179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197718040675,"product_id":7769387761763,"position":2,"created_at":"2025-07-16T15:21:33+08:00","updated_at":"2025-07-16T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495","variant_ids":[43302107054179]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - 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-XF47","featured_media":{"alt":null,"id":25830065012835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44578893369945322fc65e1a03a2ba6c98f6b8d.webp?v=1744701693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be5b73c7c3def490f9e71af4d9999e217ef58501_df5372c4-2dbb-4a41-a826-b4efe52d9462.webp?v=1752650495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a271d235981764faa201cf32c3aa6013c5843108_05114e45-6d9e-4375-b6e1-f372478cc6cc.webp?v=1752650496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d7bc9aef4cc62490bca031eb002ff501b86d9e_3fc7d7ca-b068-4b43-aded-13303dd39fcf.webp?v=1752650496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a515209785b20d3764f9ac54f5ca0caeec8982a_587b547d-e0c1-45dd-a2b1-1037b91ff085.webp?v=1752650497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4792feab756b0732127d06b240eecfa7fb4bdca1_a9217946-c49b-45a2-a52d-fc5f47320ff0.webp?v=1752650497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6288bd5b62829ff59f69dcd57b7801fa447b032b_02415120-ddba-4488-887e-d827b72b8013.webp?v=1752650498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40f31a1d6a3e74090ee56a05c1174eb27b993f1_6999aa2e-39ee-4b6a-b5f3-acac8e778e15.webp?v=1752650499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa321ae399ff40cad841af0e39a918ffc60cc61_fff177d8-325a-4bb4-816e-1ac273f19ede.webp?v=1752650499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92a8e233d921fb572310bb19c26fff38028bccad_865c42b3-4aba-4baa-8374-7a246fb8464d.webp?v=1752650499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4400383fbe39bc7aab27765645957c0687d3cad0_4f054cf9-7b80-4087-aa32-1cb2bc67b2ef.webp?v=1752650501"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44578893369945322fc65e1a03a2ba6c98f6b8d.webp?v=1744701693","options":["color"],"media":[{"alt":null,"id":25495252107363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44578893369945322fc65e1a03a2ba6c98f6b8d.webp?v=1744701693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e44578893369945322fc65e1a03a2ba6c98f6b8d.webp?v=1744701693","width":2000},{"alt":null,"id":25830065012835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495","width":2000},{"alt":null,"id":25830065799267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be5b73c7c3def490f9e71af4d9999e217ef58501_df5372c4-2dbb-4a41-a826-b4efe52d9462.webp?v=1752650495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be5b73c7c3def490f9e71af4d9999e217ef58501_df5372c4-2dbb-4a41-a826-b4efe52d9462.webp?v=1752650495","width":2000},{"alt":null,"id":25830066258019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a271d235981764faa201cf32c3aa6013c5843108_05114e45-6d9e-4375-b6e1-f372478cc6cc.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a271d235981764faa201cf32c3aa6013c5843108_05114e45-6d9e-4375-b6e1-f372478cc6cc.webp?v=1752650496","width":2000},{"alt":null,"id":25830066815075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d7bc9aef4cc62490bca031eb002ff501b86d9e_3fc7d7ca-b068-4b43-aded-13303dd39fcf.webp?v=1752650496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47d7bc9aef4cc62490bca031eb002ff501b86d9e_3fc7d7ca-b068-4b43-aded-13303dd39fcf.webp?v=1752650496","width":2000},{"alt":null,"id":25830067273827,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a515209785b20d3764f9ac54f5ca0caeec8982a_587b547d-e0c1-45dd-a2b1-1037b91ff085.webp?v=1752650497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a515209785b20d3764f9ac54f5ca0caeec8982a_587b547d-e0c1-45dd-a2b1-1037b91ff085.webp?v=1752650497","width":2000},{"alt":null,"id":25830067699811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4792feab756b0732127d06b240eecfa7fb4bdca1_a9217946-c49b-45a2-a52d-fc5f47320ff0.webp?v=1752650497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4792feab756b0732127d06b240eecfa7fb4bdca1_a9217946-c49b-45a2-a52d-fc5f47320ff0.webp?v=1752650497","width":2000},{"alt":null,"id":25830068191331,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6288bd5b62829ff59f69dcd57b7801fa447b032b_02415120-ddba-4488-887e-d827b72b8013.webp?v=1752650498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6288bd5b62829ff59f69dcd57b7801fa447b032b_02415120-ddba-4488-887e-d827b72b8013.webp?v=1752650498","width":2000},{"alt":null,"id":25830068846691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40f31a1d6a3e74090ee56a05c1174eb27b993f1_6999aa2e-39ee-4b6a-b5f3-acac8e778e15.webp?v=1752650499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b40f31a1d6a3e74090ee56a05c1174eb27b993f1_6999aa2e-39ee-4b6a-b5f3-acac8e778e15.webp?v=1752650499","width":2000},{"alt":null,"id":25830069239907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa321ae399ff40cad841af0e39a918ffc60cc61_fff177d8-325a-4bb4-816e-1ac273f19ede.webp?v=1752650499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa321ae399ff40cad841af0e39a918ffc60cc61_fff177d8-325a-4bb4-816e-1ac273f19ede.webp?v=1752650499","width":2000},{"alt":null,"id":25830069600355,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92a8e233d921fb572310bb19c26fff38028bccad_865c42b3-4aba-4baa-8374-7a246fb8464d.webp?v=1752650499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92a8e233d921fb572310bb19c26fff38028bccad_865c42b3-4aba-4baa-8374-7a246fb8464d.webp?v=1752650499","width":2000},{"alt":null,"id":25830069895267,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4400383fbe39bc7aab27765645957c0687d3cad0_4f054cf9-7b80-4087-aa32-1cb2bc67b2ef.webp?v=1752650501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4400383fbe39bc7aab27765645957c0687d3cad0_4f054cf9-7b80-4087-aa32-1cb2bc67b2ef.webp?v=1752650501","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43302107054179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197718040675,"product_id":7769387761763,"position":2,"created_at":"2025-07-16T15:21:33+08:00","updated_at":"2025-07-16T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495","variant_ids":[43302107054179]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - 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-XF47","featured_media":{"alt":null,"id":25830065012835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43302107054179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-XF47","requires_shipping":true,"taxable":true,"featured_image":{"id":34197718040675,"product_id":7769387761763,"position":2,"created_at":"2025-07-16T15:21:33+08:00","updated_at":"2025-07-16T15:21:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495","variant_ids":[43302107054179]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) ilovedoodle Mindful Cat - Love Yourself - 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-XF47","featured_media":{"alt":null,"id":25830065012835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8439236fa5e9bb8cf884e3942bba97d24569da1e_5bf7fd4d-a27b-4955-a29e-c544692c5eec.webp?v=1752650495"}},"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: "停產"
}