$product = {"id":7837995237475,"title":"iPhone 12 mini Mod NX BOUNCE Bounce 20th Anniversary","handle":"iphone-12-mini-mod-nx-hk63","description":null,"published_at":"2025-07-16T12:14:08+08:00","created_at":"2025-07-16T09:31:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bounce","device-iPhone 12 Mini","merge","reseller-bounce"],"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":43528405254243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-HK63","requires_shipping":true,"taxable":true,"featured_image":{"id":34192800186467,"product_id":7837995237475,"position":2,"created_at":"2025-07-16T09:31:05+08:00","updated_at":"2025-07-16T09:31:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467","variant_ids":[43528405254243]},"available":true,"name":"iPhone 12 mini Mod NX BOUNCE Bounce 20th Anniversary - 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-HK63","featured_media":{"alt":null,"id":25827113697379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d25829aff5a425904e625e58583ae806fe2733.webp?v=1752629466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063feeae724c84e02a78ed29737b39ffc74de2a8.webp?v=1752629467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321ce579309c751d83f2b1a224c818920682a39.webp?v=1752629467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc9e3bff10181742c6a65802c51ea0d95fe295e.webp?v=1752629468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46048cca87e18129dd8a674a0de1e730b8acd63a.webp?v=1752629469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5d65516eef6e918e8dd34d4c966543474ac49.webp?v=1752629469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db34ea07421211273a8294f5678fab358b60b4c.webp?v=1752629470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffdff13fee5eb110f494091d8c7d70be1bec0e18.webp?v=1752629470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc054f69755039082f02e6319d262ca7cac166e1.webp?v=1752629471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6fd8e4ff093740a47aa8dac758b7b3159e99493.webp?v=1752629471"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d25829aff5a425904e625e58583ae806fe2733.webp?v=1752629466","options":["color"],"media":[{"alt":null,"id":25827113599075,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d25829aff5a425904e625e58583ae806fe2733.webp?v=1752629466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16d25829aff5a425904e625e58583ae806fe2733.webp?v=1752629466","width":2000},{"alt":null,"id":25827113697379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467","width":2000},{"alt":null,"id":25827113828451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063feeae724c84e02a78ed29737b39ffc74de2a8.webp?v=1752629467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/063feeae724c84e02a78ed29737b39ffc74de2a8.webp?v=1752629467","width":2000},{"alt":null,"id":25827113992291,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321ce579309c751d83f2b1a224c818920682a39.webp?v=1752629467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2321ce579309c751d83f2b1a224c818920682a39.webp?v=1752629467","width":2000},{"alt":null,"id":25827114156131,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc9e3bff10181742c6a65802c51ea0d95fe295e.webp?v=1752629468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc9e3bff10181742c6a65802c51ea0d95fe295e.webp?v=1752629468","width":2000},{"alt":null,"id":25827114319971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46048cca87e18129dd8a674a0de1e730b8acd63a.webp?v=1752629469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46048cca87e18129dd8a674a0de1e730b8acd63a.webp?v=1752629469","width":2000},{"alt":null,"id":25827114451043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5d65516eef6e918e8dd34d4c966543474ac49.webp?v=1752629469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a5d65516eef6e918e8dd34d4c966543474ac49.webp?v=1752629469","width":2000},{"alt":null,"id":25827114614883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db34ea07421211273a8294f5678fab358b60b4c.webp?v=1752629470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5db34ea07421211273a8294f5678fab358b60b4c.webp?v=1752629470","width":2000},{"alt":null,"id":25827114713187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffdff13fee5eb110f494091d8c7d70be1bec0e18.webp?v=1752629470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffdff13fee5eb110f494091d8c7d70be1bec0e18.webp?v=1752629470","width":2000},{"alt":null,"id":25827114877027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc054f69755039082f02e6319d262ca7cac166e1.webp?v=1752629471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc054f69755039082f02e6319d262ca7cac166e1.webp?v=1752629471","width":2000},{"alt":null,"id":25827115008099,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6fd8e4ff093740a47aa8dac758b7b3159e99493.webp?v=1752629471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6fd8e4ff093740a47aa8dac758b7b3159e99493.webp?v=1752629471","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43528405254243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-HK63","requires_shipping":true,"taxable":true,"featured_image":{"id":34192800186467,"product_id":7837995237475,"position":2,"created_at":"2025-07-16T09:31:05+08:00","updated_at":"2025-07-16T09:31:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467","variant_ids":[43528405254243]},"available":true,"name":"iPhone 12 mini Mod NX BOUNCE Bounce 20th Anniversary - 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-HK63","featured_media":{"alt":null,"id":25827113697379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43528405254243,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0118424-HK63","requires_shipping":true,"taxable":true,"featured_image":{"id":34192800186467,"product_id":7837995237475,"position":2,"created_at":"2025-07-16T09:31:05+08:00","updated_at":"2025-07-16T09:31:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467","variant_ids":[43528405254243]},"available":true,"name":"iPhone 12 mini Mod NX BOUNCE Bounce 20th Anniversary - 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-HK63","featured_media":{"alt":null,"id":25827113697379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e4bf2e3fcf058f22aeedcd038e297b3367651.webp?v=1752629467"}},"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: "停產"
}