$product = {"id":7888633462883,"title":"iPhone 12 mini Mod NX 餃貓FAMILY LAZY DAY","handle":"iphone-12-mini-mod-nx-printable-dm02","description":null,"published_at":"2025-09-23T09:00:50+08:00","created_at":"2025-09-22T16:54:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-dumplingcat","device-iPhone 12 Mini","merge","reseller-dumplingcat"],"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":43743848169571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515825229923,"product_id":7888633462883,"position":2,"created_at":"2025-09-22T16:54:51+08:00","updated_at":"2025-09-22T16:54:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293","variant_ids":[43743848169571]},"available":true,"name":"iPhone 12 mini Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086262833251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a449035d09517f4b68fade20eb8f249139e085.webp?v=1758531292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95734e8aad5b7c2b25a7f4d30bad36b990f7a847.webp?v=1758531293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7eec6cd3b2d2ca1200bdbe97364073697bca4.webp?v=1758531294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5fab418314fd12021b1baf788e94370b8d8388b.webp?v=1758531294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c9fadf2557b9cdbab26517df441e70d748e410.webp?v=1758531295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7329318d6e12ef54398ce3df5d645c0b36642344.webp?v=1758531295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad4ec7f723bda02b8c904d39d2d0942eacce785e.webp?v=1758531296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c692a686c4d1c9bab270ff171b21ccc528c8f3.webp?v=1758531296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8553c88a6aa8b108d8c1d7e65a5bb1ee506fb5d0.webp?v=1758531297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b161a3ff992397c1d9584ee6b756c29cb0f8f2b9.webp?v=1758531297"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a449035d09517f4b68fade20eb8f249139e085.webp?v=1758531292","options":["color"],"media":[{"alt":null,"id":26086262538339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a449035d09517f4b68fade20eb8f249139e085.webp?v=1758531292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a449035d09517f4b68fade20eb8f249139e085.webp?v=1758531292","width":2000},{"alt":null,"id":26086262833251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293","width":2000},{"alt":null,"id":26086263029859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95734e8aad5b7c2b25a7f4d30bad36b990f7a847.webp?v=1758531293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95734e8aad5b7c2b25a7f4d30bad36b990f7a847.webp?v=1758531293","width":2000},{"alt":null,"id":26086263324771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7eec6cd3b2d2ca1200bdbe97364073697bca4.webp?v=1758531294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd7eec6cd3b2d2ca1200bdbe97364073697bca4.webp?v=1758531294","width":2000},{"alt":null,"id":26086263586915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5fab418314fd12021b1baf788e94370b8d8388b.webp?v=1758531294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5fab418314fd12021b1baf788e94370b8d8388b.webp?v=1758531294","width":2000},{"alt":null,"id":26086263717987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c9fadf2557b9cdbab26517df441e70d748e410.webp?v=1758531295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72c9fadf2557b9cdbab26517df441e70d748e410.webp?v=1758531295","width":2000},{"alt":null,"id":26086263849059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7329318d6e12ef54398ce3df5d645c0b36642344.webp?v=1758531295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7329318d6e12ef54398ce3df5d645c0b36642344.webp?v=1758531295","width":2000},{"alt":null,"id":26086263947363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad4ec7f723bda02b8c904d39d2d0942eacce785e.webp?v=1758531296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad4ec7f723bda02b8c904d39d2d0942eacce785e.webp?v=1758531296","width":2000},{"alt":null,"id":26086264012899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c692a686c4d1c9bab270ff171b21ccc528c8f3.webp?v=1758531296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58c692a686c4d1c9bab270ff171b21ccc528c8f3.webp?v=1758531296","width":2000},{"alt":null,"id":26086264471651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8553c88a6aa8b108d8c1d7e65a5bb1ee506fb5d0.webp?v=1758531297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8553c88a6aa8b108d8c1d7e65a5bb1ee506fb5d0.webp?v=1758531297","width":2000},{"alt":null,"id":26086264701027,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b161a3ff992397c1d9584ee6b756c29cb0f8f2b9.webp?v=1758531297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b161a3ff992397c1d9584ee6b756c29cb0f8f2b9.webp?v=1758531297","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43743848169571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515825229923,"product_id":7888633462883,"position":2,"created_at":"2025-09-22T16:54:51+08:00","updated_at":"2025-09-22T16:54:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293","variant_ids":[43743848169571]},"available":true,"name":"iPhone 12 mini Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086262833251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43743848169571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515825229923,"product_id":7888633462883,"position":2,"created_at":"2025-09-22T16:54:51+08:00","updated_at":"2025-09-22T16:54:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293","variant_ids":[43743848169571]},"available":true,"name":"iPhone 12 mini Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086262833251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c4a7b3c5560335c9543bfa5236af61160edd432.webp?v=1758531293"}},"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: "停產"
}