$product = {"id":7848107540579,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) 嗨小強 Party Pop","handle":"iphone-12-mini-mod-nx-magsafe-bumper-crossover-design-fv62","description":null,"published_at":"2025-08-07T08:59:00+08:00","created_at":"2025-08-05T09:50:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 12 Mini","merge","reseller-hijohnnn"],"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":43563071111267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34288138780771,"product_id":7848107540579,"position":6,"created_at":"2025-08-05T09:50:48+08:00","updated_at":"2025-08-05T09:50:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650","variant_ids":[43563071111267]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 嗨小強 Party Pop - 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-FV62","featured_media":{"alt":null,"id":25889019461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587895ebd83d11e5ea896328f1c407314c398c95.webp?v=1754358647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec2d55eb84955212102bb40ee8515ebc299b37c.webp?v=1754358648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5959258e46d9a43efff1666da0bd7e76d7901fcb.webp?v=1754358648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf49ed773264b543aa8f57f9fa3fd33428650220.webp?v=1754358649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a40dd8daec65a2653e3970ed3e0bfd4426f73afb.webp?v=1754358650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10cc64ff2bde30c8911da637fd087c1f65d3ddb1.webp?v=1754358651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae88e87396a18dd3436b10e8f29a9ab781ae384a.webp?v=1754358651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3b71f6ebc535f1f64ec5dcd758c3ddcfa9cc58.webp?v=1754358652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d64105edf537922957dd419939f3c46208afebdc.webp?v=1754358653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78522bab9f4b57f822be760265407c6d979ff19b.webp?v=1754358653"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587895ebd83d11e5ea896328f1c407314c398c95.webp?v=1754358647","options":["color"],"media":[{"alt":null,"id":25889018413155,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587895ebd83d11e5ea896328f1c407314c398c95.webp?v=1754358647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587895ebd83d11e5ea896328f1c407314c398c95.webp?v=1754358647","width":2000},{"alt":null,"id":25889018642531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec2d55eb84955212102bb40ee8515ebc299b37c.webp?v=1754358648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec2d55eb84955212102bb40ee8515ebc299b37c.webp?v=1754358648","width":2000},{"alt":null,"id":25889018871907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5959258e46d9a43efff1666da0bd7e76d7901fcb.webp?v=1754358648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5959258e46d9a43efff1666da0bd7e76d7901fcb.webp?v=1754358648","width":2000},{"alt":null,"id":25889019101283,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf49ed773264b543aa8f57f9fa3fd33428650220.webp?v=1754358649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf49ed773264b543aa8f57f9fa3fd33428650220.webp?v=1754358649","width":2000},{"alt":null,"id":25889019199587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a40dd8daec65a2653e3970ed3e0bfd4426f73afb.webp?v=1754358650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a40dd8daec65a2653e3970ed3e0bfd4426f73afb.webp?v=1754358650","width":2000},{"alt":null,"id":25889019461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650","width":2000},{"alt":null,"id":25889019592803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10cc64ff2bde30c8911da637fd087c1f65d3ddb1.webp?v=1754358651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10cc64ff2bde30c8911da637fd087c1f65d3ddb1.webp?v=1754358651","width":2000},{"alt":null,"id":25889019691107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae88e87396a18dd3436b10e8f29a9ab781ae384a.webp?v=1754358651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae88e87396a18dd3436b10e8f29a9ab781ae384a.webp?v=1754358651","width":2000},{"alt":null,"id":25889019789411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3b71f6ebc535f1f64ec5dcd758c3ddcfa9cc58.webp?v=1754358652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b3b71f6ebc535f1f64ec5dcd758c3ddcfa9cc58.webp?v=1754358652","width":2000},{"alt":null,"id":25889019920483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d64105edf537922957dd419939f3c46208afebdc.webp?v=1754358653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d64105edf537922957dd419939f3c46208afebdc.webp?v=1754358653","width":2000},{"alt":null,"id":25889020084323,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78522bab9f4b57f822be760265407c6d979ff19b.webp?v=1754358653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78522bab9f4b57f822be760265407c6d979ff19b.webp?v=1754358653","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43563071111267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34288138780771,"product_id":7848107540579,"position":6,"created_at":"2025-08-05T09:50:48+08:00","updated_at":"2025-08-05T09:50:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650","variant_ids":[43563071111267]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 嗨小強 Party Pop - 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-FV62","featured_media":{"alt":null,"id":25889019461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43563071111267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-FV62","requires_shipping":true,"taxable":true,"featured_image":{"id":34288138780771,"product_id":7848107540579,"position":6,"created_at":"2025-08-05T09:50:48+08:00","updated_at":"2025-08-05T09:50:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650","variant_ids":[43563071111267]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) 嗨小強 Party Pop - 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-FV62","featured_media":{"alt":null,"id":25889019461731,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b0d1903ffeb7afad3a68d5c66ded39e1b27815d.webp?v=1754358650"}},"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: "停產"
}