$product = {"id":7876112744547,"title":"iPhone 12 mini Mod NX 爽爽貓 by SECOND 好運集合","handle":"iphone-12-mini-mod-nx-printable-ea110","description":null,"published_at":"2025-09-04T09:43:09+08:00","created_at":"2025-09-03T12:04:27+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":90000,"price_min":90000,"price_max":90000,"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":43675464040547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-EA110","requires_shipping":true,"taxable":true,"featured_image":{"id":34416423862371,"product_id":7876112744547,"position":4,"created_at":"2025-09-03T12:04:36+08:00","updated_at":"2025-09-03T12:04:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279","variant_ids":[43675464040547]},"available":true,"name":"iPhone 12 mini Mod NX 爽爽貓 by SECOND 好運集合 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-EA110","featured_media":{"alt":null,"id":25988698341475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa460b056ed6b1940eac538882c61e408b9d11a.webp?v=1756872274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1267fb9ef09d40ca6f309f516282ad78b6884eac.webp?v=1756872275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff88b242ddaafe9a514b966d258cafa99d643a.webp?v=1756872278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/307565b9825b928f01b082356086bb7119cf7b7f.webp?v=1756872279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4985586dc2b06a3e6884e2d3b0d09c68ce485b3b.webp?v=1756872280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664c568721c157f26471d2fc75cb0426f97f804d.webp?v=1756872281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36233382accb93cc87696240b7eddf2fe835a51a.webp?v=1756872281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de62cb46832d805f5eb0440a5761df19f7224ff.webp?v=1756872282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b22231e1792584fe7f4b4ec42761aa2d96dad867.webp?v=1756872283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dae7638a375ba093747d72cf094ba31c44f666c.webp?v=1756872283"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa460b056ed6b1940eac538882c61e408b9d11a.webp?v=1756872274","options":["color"],"media":[{"alt":null,"id":25988696965219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa460b056ed6b1940eac538882c61e408b9d11a.webp?v=1756872274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fa460b056ed6b1940eac538882c61e408b9d11a.webp?v=1756872274","width":2000},{"alt":null,"id":25988697161827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1267fb9ef09d40ca6f309f516282ad78b6884eac.webp?v=1756872275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1267fb9ef09d40ca6f309f516282ad78b6884eac.webp?v=1756872275","width":2000},{"alt":null,"id":25988698013795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff88b242ddaafe9a514b966d258cafa99d643a.webp?v=1756872278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49ff88b242ddaafe9a514b966d258cafa99d643a.webp?v=1756872278","width":2000},{"alt":null,"id":25988698341475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279","width":2000},{"alt":null,"id":25988698570851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/307565b9825b928f01b082356086bb7119cf7b7f.webp?v=1756872279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/307565b9825b928f01b082356086bb7119cf7b7f.webp?v=1756872279","width":2000},{"alt":null,"id":25988698800227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4985586dc2b06a3e6884e2d3b0d09c68ce485b3b.webp?v=1756872280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4985586dc2b06a3e6884e2d3b0d09c68ce485b3b.webp?v=1756872280","width":2000},{"alt":null,"id":25988698964067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664c568721c157f26471d2fc75cb0426f97f804d.webp?v=1756872281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/664c568721c157f26471d2fc75cb0426f97f804d.webp?v=1756872281","width":2000},{"alt":null,"id":25988699160675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36233382accb93cc87696240b7eddf2fe835a51a.webp?v=1756872281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36233382accb93cc87696240b7eddf2fe835a51a.webp?v=1756872281","width":2000},{"alt":null,"id":25988699291747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de62cb46832d805f5eb0440a5761df19f7224ff.webp?v=1756872282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de62cb46832d805f5eb0440a5761df19f7224ff.webp?v=1756872282","width":2000},{"alt":null,"id":25988699488355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b22231e1792584fe7f4b4ec42761aa2d96dad867.webp?v=1756872283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b22231e1792584fe7f4b4ec42761aa2d96dad867.webp?v=1756872283","width":2000},{"alt":null,"id":25988699750499,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dae7638a375ba093747d72cf094ba31c44f666c.webp?v=1756872283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7dae7638a375ba093747d72cf094ba31c44f666c.webp?v=1756872283","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43675464040547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-EA110","requires_shipping":true,"taxable":true,"featured_image":{"id":34416423862371,"product_id":7876112744547,"position":4,"created_at":"2025-09-03T12:04:36+08:00","updated_at":"2025-09-03T12:04:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279","variant_ids":[43675464040547]},"available":true,"name":"iPhone 12 mini Mod NX 爽爽貓 by SECOND 好運集合 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-EA110","featured_media":{"alt":null,"id":25988698341475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43675464040547,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-EA110","requires_shipping":true,"taxable":true,"featured_image":{"id":34416423862371,"product_id":7876112744547,"position":4,"created_at":"2025-09-03T12:04:36+08:00","updated_at":"2025-09-03T12:04:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279","variant_ids":[43675464040547]},"available":true,"name":"iPhone 12 mini Mod NX 爽爽貓 by SECOND 好運集合 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-EA110","featured_media":{"alt":null,"id":25988698341475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063c43f90f3f89dedf3b4cddcaafb6ff516bae60.webp?v=1756872279"}},"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: "停產"
}