$product = {"id":7956533313635,"title":"iPhone 12 mini Mod NX 懶散兔與啾先生 海洋","handle":"iphone-12-mini-mod-nx-ec55","description":null,"published_at":"2026-01-27T10:37:12+08:00","created_at":"2026-01-27T10:25:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 12 Mini","merge","reseller-bylobster"],"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":43969288962147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-EC55","requires_shipping":true,"taxable":true,"featured_image":{"id":35151180595299,"product_id":7956533313635,"position":1,"created_at":"2026-01-27T10:25:56+08:00","updated_at":"2026-01-27T10:25:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758","variant_ids":[43969288962147]},"available":true,"name":"iPhone 12 mini Mod NX 懶散兔與啾先生 海洋 - 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-EC55","featured_media":{"alt":null,"id":26707402850403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b099d7fb3d48cb5ed03d68b4f41f2f2e39590e1.webp?v=1769480759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6dc2948e8375e565fb3e93db27d0723c71478cc.webp?v=1769480759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be129600919d36561ed0103e725f6e8734675fbc.webp?v=1769480759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf657e62e03822cce62ef399deff00b41ff941f.webp?v=1769480760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb5140575247776c082cdac075a2d044c9f25888.webp?v=1769480760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e805f02d546c7cd2c7c1ceca293a304e03d64.webp?v=1769480760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cc4ec0c61b047c769bf1eff9d014bbbc25e2f7e.webp?v=1769480761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf2f195aeb44765b745ea576652110ace1b857c9.webp?v=1769480761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e14e097bbf7ab86e49ce3932d116d18e1dd4ff4.webp?v=1769480762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35676de31c6345a50c6b080f3ce5f00de2872862.webp?v=1769480763"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758","options":["color"],"media":[{"alt":null,"id":26707402850403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758","width":2000},{"alt":null,"id":26707403112547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b099d7fb3d48cb5ed03d68b4f41f2f2e39590e1.webp?v=1769480759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b099d7fb3d48cb5ed03d68b4f41f2f2e39590e1.webp?v=1769480759","width":2000},{"alt":null,"id":26707403374691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6dc2948e8375e565fb3e93db27d0723c71478cc.webp?v=1769480759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6dc2948e8375e565fb3e93db27d0723c71478cc.webp?v=1769480759","width":2000},{"alt":null,"id":26707403571299,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be129600919d36561ed0103e725f6e8734675fbc.webp?v=1769480759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be129600919d36561ed0103e725f6e8734675fbc.webp?v=1769480759","width":2000},{"alt":null,"id":26707403767907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf657e62e03822cce62ef399deff00b41ff941f.webp?v=1769480760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf657e62e03822cce62ef399deff00b41ff941f.webp?v=1769480760","width":2000},{"alt":null,"id":26707404095587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb5140575247776c082cdac075a2d044c9f25888.webp?v=1769480760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb5140575247776c082cdac075a2d044c9f25888.webp?v=1769480760","width":2000},{"alt":null,"id":26707404488803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e805f02d546c7cd2c7c1ceca293a304e03d64.webp?v=1769480760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e805f02d546c7cd2c7c1ceca293a304e03d64.webp?v=1769480760","width":2000},{"alt":null,"id":26707404980323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cc4ec0c61b047c769bf1eff9d014bbbc25e2f7e.webp?v=1769480761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cc4ec0c61b047c769bf1eff9d014bbbc25e2f7e.webp?v=1769480761","width":2000},{"alt":null,"id":26707405308003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf2f195aeb44765b745ea576652110ace1b857c9.webp?v=1769480761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf2f195aeb44765b745ea576652110ace1b857c9.webp?v=1769480761","width":2000},{"alt":null,"id":26707405668451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e14e097bbf7ab86e49ce3932d116d18e1dd4ff4.webp?v=1769480762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e14e097bbf7ab86e49ce3932d116d18e1dd4ff4.webp?v=1769480762","width":2000},{"alt":null,"id":26707405930595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35676de31c6345a50c6b080f3ce5f00de2872862.webp?v=1769480763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35676de31c6345a50c6b080f3ce5f00de2872862.webp?v=1769480763","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43969288962147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-EC55","requires_shipping":true,"taxable":true,"featured_image":{"id":35151180595299,"product_id":7956533313635,"position":1,"created_at":"2026-01-27T10:25:56+08:00","updated_at":"2026-01-27T10:25:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758","variant_ids":[43969288962147]},"available":true,"name":"iPhone 12 mini Mod NX 懶散兔與啾先生 海洋 - 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-EC55","featured_media":{"alt":null,"id":26707402850403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43969288962147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-EC55","requires_shipping":true,"taxable":true,"featured_image":{"id":35151180595299,"product_id":7956533313635,"position":1,"created_at":"2026-01-27T10:25:56+08:00","updated_at":"2026-01-27T10:25:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758","variant_ids":[43969288962147]},"available":true,"name":"iPhone 12 mini Mod NX 懶散兔與啾先生 海洋 - 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-EC55","featured_media":{"alt":null,"id":26707402850403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaaf9be320b3acdfcb64c97ab54ec6ae9732a9bb.webp?v=1769480758"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}