$product = {"id":7920402727011,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos States of Mind","handle":"iphone-12-mini-mod-nx-magsafe-ltc06","description":null,"published_at":"2025-11-11T09:17:00+08:00","created_at":"2025-11-10T11:18:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlecattos","device-iPhone 12 Mini","merge","reseller-littlecattos"],"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":43828504100963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780936142947,"product_id":7920402727011,"position":2,"created_at":"2025-11-10T11:18:02+08:00","updated_at":"2025-11-10T11:18:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684","variant_ids":[43828504100963]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos States of Mind - 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-LTC06","featured_media":{"alt":null,"id":26347071766627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237e6ab4abec385d09b62f075d72d9c6e256c4c6.webp?v=1762744683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600525d68f3f137a90d5415dd86a3e755cee2a43.webp?v=1762744685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3238c7b144fe28e449f05db8d1e380ee5392efab.webp?v=1762744686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3578c7b4c799d0529f1a8effe1646c8224a65c3a.webp?v=1762744686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d843ea4e9dbb8e4ba68dad0f295fac9f9b9e687.webp?v=1762744687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297e887c41e4353d9e80c483f58118547f60b257.webp?v=1762744688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8f55f3b35b92d7068e105bbada7453098090eb.webp?v=1762744689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f04f9b43b3a3dc4e25b04b857f0c5291cc8d586.webp?v=1762744689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22b5b667857a08cb19353cf17496e616bd6d332d.webp?v=1762744690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09dee26fab4b3e3351215d014c71e117b2ee7caa.webp?v=1762744691"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237e6ab4abec385d09b62f075d72d9c6e256c4c6.webp?v=1762744683","options":["color"],"media":[{"alt":null,"id":26347071504483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237e6ab4abec385d09b62f075d72d9c6e256c4c6.webp?v=1762744683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237e6ab4abec385d09b62f075d72d9c6e256c4c6.webp?v=1762744683","width":2000},{"alt":null,"id":26347071766627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684","width":2000},{"alt":null,"id":26347072323683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600525d68f3f137a90d5415dd86a3e755cee2a43.webp?v=1762744685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600525d68f3f137a90d5415dd86a3e755cee2a43.webp?v=1762744685","width":2000},{"alt":null,"id":26347072553059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3238c7b144fe28e449f05db8d1e380ee5392efab.webp?v=1762744686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3238c7b144fe28e449f05db8d1e380ee5392efab.webp?v=1762744686","width":2000},{"alt":null,"id":26347072782435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3578c7b4c799d0529f1a8effe1646c8224a65c3a.webp?v=1762744686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3578c7b4c799d0529f1a8effe1646c8224a65c3a.webp?v=1762744686","width":2000},{"alt":null,"id":26347073044579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d843ea4e9dbb8e4ba68dad0f295fac9f9b9e687.webp?v=1762744687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d843ea4e9dbb8e4ba68dad0f295fac9f9b9e687.webp?v=1762744687","width":2000},{"alt":null,"id":26347073339491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297e887c41e4353d9e80c483f58118547f60b257.webp?v=1762744688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297e887c41e4353d9e80c483f58118547f60b257.webp?v=1762744688","width":2000},{"alt":null,"id":26347073568867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8f55f3b35b92d7068e105bbada7453098090eb.webp?v=1762744689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8f55f3b35b92d7068e105bbada7453098090eb.webp?v=1762744689","width":2000},{"alt":null,"id":26347073765475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f04f9b43b3a3dc4e25b04b857f0c5291cc8d586.webp?v=1762744689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f04f9b43b3a3dc4e25b04b857f0c5291cc8d586.webp?v=1762744689","width":2000},{"alt":null,"id":26347073962083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22b5b667857a08cb19353cf17496e616bd6d332d.webp?v=1762744690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22b5b667857a08cb19353cf17496e616bd6d332d.webp?v=1762744690","width":2000},{"alt":null,"id":26347074125923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09dee26fab4b3e3351215d014c71e117b2ee7caa.webp?v=1762744691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09dee26fab4b3e3351215d014c71e117b2ee7caa.webp?v=1762744691","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43828504100963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780936142947,"product_id":7920402727011,"position":2,"created_at":"2025-11-10T11:18:02+08:00","updated_at":"2025-11-10T11:18:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684","variant_ids":[43828504100963]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos States of Mind - 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-LTC06","featured_media":{"alt":null,"id":26347071766627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43828504100963,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-LTC06","requires_shipping":true,"taxable":true,"featured_image":{"id":34780936142947,"product_id":7920402727011,"position":2,"created_at":"2025-11-10T11:18:02+08:00","updated_at":"2025-11-10T11:18:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684","variant_ids":[43828504100963]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 小貓貓們 Little Cattos States of Mind - 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-LTC06","featured_media":{"alt":null,"id":26347071766627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d8fa2136cde3a11331d135b1fcedcdf6104d581.webp?v=1762744684"}},"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: "停產"
}