$product = {"id":7956201799779,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 2月 杏花","handle":"iphone-12-mini-mod-nx-magsafe-eme02","description":null,"published_at":"2026-01-28T09:44:01+08:00","created_at":"2026-01-26T14:37:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-emerald","device-iPhone 12 Mini","merge","reseller-emerald"],"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":43966955061347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EME02","requires_shipping":true,"taxable":true,"featured_image":{"id":35147161698403,"product_id":7956201799779,"position":7,"created_at":"2026-01-26T14:38:04+08:00","updated_at":"2026-01-26T14:38:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486","variant_ids":[43966955061347]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 2月 杏花 - 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-EME02","featured_media":{"alt":null,"id":26703400140899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3272b761bc7ae57ec517f38fc99051f4eebeaa9f.webp?v=1769409483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0237e4db9398aacad928a34b17618e42de2fc4a7.webp?v=1769409483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0765a2a18b70b81e32d8eae38ffb169ec8a45906.webp?v=1769409484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a55965a2e8c7eda3ecd76d3429b3760396f789f5.webp?v=1769409484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be178da370fb5374b5c78a40c90344cc353347b.webp?v=1769409485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc03104af8fd52fb2133516ecb61751105454fbb.webp?v=1769409485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8847b2506f1f809c8b76668ded34dd65adb756.webp?v=1769409487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb4be351e9a34ac0074c3edd0bb1aeca0bdab49.webp?v=1769409487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1217f8fef69aa9ca2dc604dacaecb791e901f652.webp?v=1769409488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951cd3d1ad4ac84c2753409acfae5f462aa4542b.webp?v=1769409489"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3272b761bc7ae57ec517f38fc99051f4eebeaa9f.webp?v=1769409483","options":["color"],"media":[{"alt":null,"id":26703395586147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3272b761bc7ae57ec517f38fc99051f4eebeaa9f.webp?v=1769409483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3272b761bc7ae57ec517f38fc99051f4eebeaa9f.webp?v=1769409483","width":2000},{"alt":null,"id":26703396175971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0237e4db9398aacad928a34b17618e42de2fc4a7.webp?v=1769409483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0237e4db9398aacad928a34b17618e42de2fc4a7.webp?v=1769409483","width":2000},{"alt":null,"id":26703396962403,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0765a2a18b70b81e32d8eae38ffb169ec8a45906.webp?v=1769409484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0765a2a18b70b81e32d8eae38ffb169ec8a45906.webp?v=1769409484","width":2000},{"alt":null,"id":26703397814371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a55965a2e8c7eda3ecd76d3429b3760396f789f5.webp?v=1769409484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a55965a2e8c7eda3ecd76d3429b3760396f789f5.webp?v=1769409484","width":2000},{"alt":null,"id":26703398600803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be178da370fb5374b5c78a40c90344cc353347b.webp?v=1769409485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2be178da370fb5374b5c78a40c90344cc353347b.webp?v=1769409485","width":2000},{"alt":null,"id":26703399190627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc03104af8fd52fb2133516ecb61751105454fbb.webp?v=1769409485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc03104af8fd52fb2133516ecb61751105454fbb.webp?v=1769409485","width":2000},{"alt":null,"id":26703400140899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486","width":2000},{"alt":null,"id":26703401025635,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8847b2506f1f809c8b76668ded34dd65adb756.webp?v=1769409487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8847b2506f1f809c8b76668ded34dd65adb756.webp?v=1769409487","width":2000},{"alt":null,"id":26703401877603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb4be351e9a34ac0074c3edd0bb1aeca0bdab49.webp?v=1769409487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb4be351e9a34ac0074c3edd0bb1aeca0bdab49.webp?v=1769409487","width":2000},{"alt":null,"id":26703402664035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1217f8fef69aa9ca2dc604dacaecb791e901f652.webp?v=1769409488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1217f8fef69aa9ca2dc604dacaecb791e901f652.webp?v=1769409488","width":2000},{"alt":null,"id":26703403352163,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951cd3d1ad4ac84c2753409acfae5f462aa4542b.webp?v=1769409489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/951cd3d1ad4ac84c2753409acfae5f462aa4542b.webp?v=1769409489","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43966955061347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EME02","requires_shipping":true,"taxable":true,"featured_image":{"id":35147161698403,"product_id":7956201799779,"position":7,"created_at":"2026-01-26T14:38:04+08:00","updated_at":"2026-01-26T14:38:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486","variant_ids":[43966955061347]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 2月 杏花 - 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-EME02","featured_media":{"alt":null,"id":26703400140899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43966955061347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-EME02","requires_shipping":true,"taxable":true,"featured_image":{"id":35147161698403,"product_id":7956201799779,"position":7,"created_at":"2026-01-26T14:38:04+08:00","updated_at":"2026-01-26T14:38:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486","variant_ids":[43966955061347]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) Emerald Studio 2月 杏花 - 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-EME02","featured_media":{"alt":null,"id":26703400140899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c3d90bcb3eaf497486289b9e482d80c0e2af87.webp?v=1769409486"}},"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: "停產"
}