$product = {"id":7876183720035,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情","handle":"iphone-12-mini-mod-nx-magsafe-printable-ea106","description":null,"published_at":"2025-09-04T09:09:17+08:00","created_at":"2025-09-03T12:23:35+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 12 Mini","merge","reseller-songsongmeow"],"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":43675755151459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EA106","requires_shipping":true,"taxable":true,"featured_image":{"id":34416722444387,"product_id":7876183720035,"position":1,"created_at":"2025-09-03T12:23:38+08:00","updated_at":"2025-09-03T12:23:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420","variant_ids":[43675755151459]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情 - 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-EA106","featured_media":{"alt":null,"id":25988997152867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49bebd0c989430588f7d5844d50219d57502ac4d.webp?v=1756873421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94ed716dad1a181003da0011f9f48a7ea037fe4.webp?v=1756873422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0809fe85195a99e34cfbaf6a373bbc1ac9005c47.webp?v=1756873422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d025a4c85097f137999a8e6d15709bab24a86c8d.webp?v=1756873423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d33ab4b3abc88a33dd8427829ca2741dfb87e1e.webp?v=1756873424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe054d63375ea33af4f73fabb2a96ea8771903e8.webp?v=1756873425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/975193682ce4ad70fefb114d7a49fa0c54764593.webp?v=1756873425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f3e4ef4f508f6f13d341d8ac4c0d2284e9a3315.webp?v=1756873426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4936909df1a66408c3ea113b370b7f8798bd4e1.webp?v=1756873427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a62c7571b377ed55d88cb8b8d58083210befb3cf.webp?v=1756873428"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420","options":["color"],"media":[{"alt":null,"id":25988997152867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420","width":2000},{"alt":null,"id":25988997480547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49bebd0c989430588f7d5844d50219d57502ac4d.webp?v=1756873421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49bebd0c989430588f7d5844d50219d57502ac4d.webp?v=1756873421","width":2000},{"alt":null,"id":25988997611619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94ed716dad1a181003da0011f9f48a7ea037fe4.webp?v=1756873422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a94ed716dad1a181003da0011f9f48a7ea037fe4.webp?v=1756873422","width":2000},{"alt":null,"id":25988997709923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0809fe85195a99e34cfbaf6a373bbc1ac9005c47.webp?v=1756873422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0809fe85195a99e34cfbaf6a373bbc1ac9005c47.webp?v=1756873422","width":2000},{"alt":null,"id":25988997972067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d025a4c85097f137999a8e6d15709bab24a86c8d.webp?v=1756873423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d025a4c85097f137999a8e6d15709bab24a86c8d.webp?v=1756873423","width":2000},{"alt":null,"id":25988998299747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d33ab4b3abc88a33dd8427829ca2741dfb87e1e.webp?v=1756873424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d33ab4b3abc88a33dd8427829ca2741dfb87e1e.webp?v=1756873424","width":2000},{"alt":null,"id":25988999348323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe054d63375ea33af4f73fabb2a96ea8771903e8.webp?v=1756873425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe054d63375ea33af4f73fabb2a96ea8771903e8.webp?v=1756873425","width":2000},{"alt":null,"id":25988999512163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/975193682ce4ad70fefb114d7a49fa0c54764593.webp?v=1756873425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/975193682ce4ad70fefb114d7a49fa0c54764593.webp?v=1756873425","width":2000},{"alt":null,"id":25988999774307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f3e4ef4f508f6f13d341d8ac4c0d2284e9a3315.webp?v=1756873426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f3e4ef4f508f6f13d341d8ac4c0d2284e9a3315.webp?v=1756873426","width":2000},{"alt":null,"id":25988999938147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4936909df1a66408c3ea113b370b7f8798bd4e1.webp?v=1756873427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4936909df1a66408c3ea113b370b7f8798bd4e1.webp?v=1756873427","width":2000},{"alt":null,"id":25989000233059,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a62c7571b377ed55d88cb8b8d58083210befb3cf.webp?v=1756873428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a62c7571b377ed55d88cb8b8d58083210befb3cf.webp?v=1756873428","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43675755151459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EA106","requires_shipping":true,"taxable":true,"featured_image":{"id":34416722444387,"product_id":7876183720035,"position":1,"created_at":"2025-09-03T12:23:38+08:00","updated_at":"2025-09-03T12:23:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420","variant_ids":[43675755151459]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情 - 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-EA106","featured_media":{"alt":null,"id":25988997152867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43675755151459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EA106","requires_shipping":true,"taxable":true,"featured_image":{"id":34416722444387,"product_id":7876183720035,"position":1,"created_at":"2025-09-03T12:23:38+08:00","updated_at":"2025-09-03T12:23:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420","variant_ids":[43675755151459]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 專注美好的事情 - 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-EA106","featured_media":{"alt":null,"id":25988997152867,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818a8e03092202aed5fbb96b8117f02f6618475f.webp?v=1756873420"}},"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: "停產"
}