$product = {"id":7838025941091,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE Bomb the system","handle":"iphone-12-mini-mod-nx-magsafe-hk64","description":null,"published_at":"2025-07-16T12:01:58+08:00","created_at":"2025-07-16T09:37:37+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":110000,"price_min":110000,"price_max":110000,"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":43528524071011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HK64","requires_shipping":true,"taxable":true,"featured_image":{"id":34193048207459,"product_id":7838025941091,"position":1,"created_at":"2025-07-16T09:37:41+08:00","updated_at":"2025-07-16T09:37:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863","variant_ids":[43528524071011]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE Bomb the system - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-HK64","featured_media":{"alt":null,"id":25827244933219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47b9fbf5d8596f9f8ecad4d18a21586814404a8.webp?v=1752629864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9541835741b55e3e9b82088bff0ef4c6d3268472.webp?v=1752629865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ff92265609f6669435f869a70cc8d50362bca8.webp?v=1752629865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2298fee38c26bb06594ee1a6d6958a1210afc8f6.webp?v=1752629866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6900aaa86276ffa0410411f156dbabf4e9e2a41f.webp?v=1752629866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62fc30525ff1f8111844681749ace3b6e14253ac.webp?v=1752629867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e4dc63d17844612f714c8bdd71703a0ad1c05f.webp?v=1752629867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d2f8a3199f71c70b64771746db65587eb37626b.webp?v=1752629868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b617069b07081d2ef4bb425ba4e8a844182fc80b.webp?v=1752629868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c560bccff1fd7f6f2bc117eb2bac1fa79c6fd5.webp?v=1752629869"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863","options":["color"],"media":[{"alt":null,"id":25827244933219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863","width":2000},{"alt":null,"id":25827245064291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47b9fbf5d8596f9f8ecad4d18a21586814404a8.webp?v=1752629864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47b9fbf5d8596f9f8ecad4d18a21586814404a8.webp?v=1752629864","width":2000},{"alt":null,"id":25827245228131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9541835741b55e3e9b82088bff0ef4c6d3268472.webp?v=1752629865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9541835741b55e3e9b82088bff0ef4c6d3268472.webp?v=1752629865","width":2000},{"alt":null,"id":25827245424739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ff92265609f6669435f869a70cc8d50362bca8.webp?v=1752629865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ff92265609f6669435f869a70cc8d50362bca8.webp?v=1752629865","width":2000},{"alt":null,"id":25827245588579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2298fee38c26bb06594ee1a6d6958a1210afc8f6.webp?v=1752629866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2298fee38c26bb06594ee1a6d6958a1210afc8f6.webp?v=1752629866","width":2000},{"alt":null,"id":25827245785187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6900aaa86276ffa0410411f156dbabf4e9e2a41f.webp?v=1752629866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6900aaa86276ffa0410411f156dbabf4e9e2a41f.webp?v=1752629866","width":2000},{"alt":null,"id":25827246014563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62fc30525ff1f8111844681749ace3b6e14253ac.webp?v=1752629867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62fc30525ff1f8111844681749ace3b6e14253ac.webp?v=1752629867","width":2000},{"alt":null,"id":25827246342243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e4dc63d17844612f714c8bdd71703a0ad1c05f.webp?v=1752629867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e4dc63d17844612f714c8bdd71703a0ad1c05f.webp?v=1752629867","width":2000},{"alt":null,"id":25827246604387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d2f8a3199f71c70b64771746db65587eb37626b.webp?v=1752629868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d2f8a3199f71c70b64771746db65587eb37626b.webp?v=1752629868","width":2000},{"alt":null,"id":25827246833763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b617069b07081d2ef4bb425ba4e8a844182fc80b.webp?v=1752629868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b617069b07081d2ef4bb425ba4e8a844182fc80b.webp?v=1752629868","width":2000},{"alt":null,"id":25827246964835,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c560bccff1fd7f6f2bc117eb2bac1fa79c6fd5.webp?v=1752629869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c560bccff1fd7f6f2bc117eb2bac1fa79c6fd5.webp?v=1752629869","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43528524071011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HK64","requires_shipping":true,"taxable":true,"featured_image":{"id":34193048207459,"product_id":7838025941091,"position":1,"created_at":"2025-07-16T09:37:41+08:00","updated_at":"2025-07-16T09:37:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863","variant_ids":[43528524071011]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE Bomb the system - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-HK64","featured_media":{"alt":null,"id":25827244933219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43528524071011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HK64","requires_shipping":true,"taxable":true,"featured_image":{"id":34193048207459,"product_id":7838025941091,"position":1,"created_at":"2025-07-16T09:37:41+08:00","updated_at":"2025-07-16T09:37:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863","variant_ids":[43528524071011]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE Bomb the system - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-HK64","featured_media":{"alt":null,"id":25827244933219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fc43d250960ca940c47bd83e74b4a1fb7da2b01.webp?v=1752629863"}},"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: "停產"
}