$product = {"id":7942258622563,"title":"iPhone 12 mini Mod NX Seungyoun Kim 窗簾小狗 Maestro Bean","handle":"iphone-12-mini-mod-nx-seu01","description":null,"published_at":"2025-12-23T09:34:46+08:00","created_at":"2025-12-22T17:40:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-seungyounkim","device-iPhone 12 Mini","merge","reseller-seungyounkim"],"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":43904164331619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-SEU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34987551293539,"product_id":7942258622563,"position":3,"created_at":"2025-12-22T17:41:07+08:00","updated_at":"2025-12-22T17:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469","variant_ids":[43904164331619]},"available":true,"name":"iPhone 12 mini Mod NX Seungyoun Kim 窗簾小狗 Maestro Bean - 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-SEU01","featured_media":{"alt":null,"id":26548568621155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8336f33c49a63b0a1cbc3f6436a32d710c6d38c7.webp?v=1766396468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726a91bd8cf4ba1b5ef88493c3412baf428b6710.webp?v=1766396469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257d7e1a32a3d9d8bd8577cbe0553ff414fdab1d.webp?v=1766396469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c8ea5f4f73a98e37d0ccf4e8b8029e77b093817.webp?v=1766396470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f039efdc55e8b1de1b2bbcf3d356bed6eb0bcfe1.webp?v=1766396470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ae878befbdc77db97af33337c542f4a37a3cb6.webp?v=1766396471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f269903ad5903107fd9c9fb8524b03643f528306.webp?v=1766396471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd36d44b67775c4e1dba772064d39c2ab46977b.webp?v=1766396472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e434b3447efb9179d3519258084d965c2f520049.webp?v=1766396472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a8e4af3cddbcce2dbb2a7fa0c087838f6476185.webp?v=1766396472"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8336f33c49a63b0a1cbc3f6436a32d710c6d38c7.webp?v=1766396468","options":["color"],"media":[{"alt":null,"id":26548568031331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8336f33c49a63b0a1cbc3f6436a32d710c6d38c7.webp?v=1766396468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8336f33c49a63b0a1cbc3f6436a32d710c6d38c7.webp?v=1766396468","width":2000},{"alt":null,"id":26548568260707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726a91bd8cf4ba1b5ef88493c3412baf428b6710.webp?v=1766396469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/726a91bd8cf4ba1b5ef88493c3412baf428b6710.webp?v=1766396469","width":2000},{"alt":null,"id":26548568621155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469","width":2000},{"alt":null,"id":26548568916067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257d7e1a32a3d9d8bd8577cbe0553ff414fdab1d.webp?v=1766396469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/257d7e1a32a3d9d8bd8577cbe0553ff414fdab1d.webp?v=1766396469","width":2000},{"alt":null,"id":26548569112675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c8ea5f4f73a98e37d0ccf4e8b8029e77b093817.webp?v=1766396470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c8ea5f4f73a98e37d0ccf4e8b8029e77b093817.webp?v=1766396470","width":2000},{"alt":null,"id":26548569636963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f039efdc55e8b1de1b2bbcf3d356bed6eb0bcfe1.webp?v=1766396470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f039efdc55e8b1de1b2bbcf3d356bed6eb0bcfe1.webp?v=1766396470","width":2000},{"alt":null,"id":26548569735267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ae878befbdc77db97af33337c542f4a37a3cb6.webp?v=1766396471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8ae878befbdc77db97af33337c542f4a37a3cb6.webp?v=1766396471","width":2000},{"alt":null,"id":26548569800803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f269903ad5903107fd9c9fb8524b03643f528306.webp?v=1766396471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f269903ad5903107fd9c9fb8524b03643f528306.webp?v=1766396471","width":2000},{"alt":null,"id":26548569899107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd36d44b67775c4e1dba772064d39c2ab46977b.webp?v=1766396472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd36d44b67775c4e1dba772064d39c2ab46977b.webp?v=1766396472","width":2000},{"alt":null,"id":26548570325091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e434b3447efb9179d3519258084d965c2f520049.webp?v=1766396472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e434b3447efb9179d3519258084d965c2f520049.webp?v=1766396472","width":2000},{"alt":null,"id":26548570390627,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a8e4af3cddbcce2dbb2a7fa0c087838f6476185.webp?v=1766396472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a8e4af3cddbcce2dbb2a7fa0c087838f6476185.webp?v=1766396472","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43904164331619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-SEU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34987551293539,"product_id":7942258622563,"position":3,"created_at":"2025-12-22T17:41:07+08:00","updated_at":"2025-12-22T17:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469","variant_ids":[43904164331619]},"available":true,"name":"iPhone 12 mini Mod NX Seungyoun Kim 窗簾小狗 Maestro Bean - 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-SEU01","featured_media":{"alt":null,"id":26548568621155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43904164331619,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-SEU01","requires_shipping":true,"taxable":true,"featured_image":{"id":34987551293539,"product_id":7942258622563,"position":3,"created_at":"2025-12-22T17:41:07+08:00","updated_at":"2025-12-22T17:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469","variant_ids":[43904164331619]},"available":true,"name":"iPhone 12 mini Mod NX Seungyoun Kim 窗簾小狗 Maestro Bean - 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-SEU01","featured_media":{"alt":null,"id":26548568621155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/731b4adecdac6328dfd01851e2fe9c973c6c92e1.webp?v=1766396469"}},"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: "停產"
}