$product = {"id":7838010671203,"title":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE 棒棒獸","handle":"iphone-12-mini-mod-nx-magsafe-hk66","description":null,"published_at":"2025-07-16T12:08:08+08:00","created_at":"2025-07-16T09:34:13+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":43528461811811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34192920903779,"product_id":7838010671203,"position":8,"created_at":"2025-07-16T09:34:22+08:00","updated_at":"2025-07-16T09:34:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664","variant_ids":[43528461811811]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE 棒棒獸 - 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-HK66","featured_media":{"alt":null,"id":25827177594979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d50e2ded62eab8fa0576064a4a4a814a76c4e7c8.webp?v=1752629660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17a21e6456794577a8eea44184e8407961b8014.webp?v=1752629661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b634fe2fd202c003c0b289682070607be0e1109a.webp?v=1752629661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12837b2801ad125942a83141802eb3f85aab8113.webp?v=1752629661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04c9973fa8217671cfaf69b3ce7b79a085be1fb6.webp?v=1752629662","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69289c5b89809ecadaac2ac9b041ffd048caa79f.webp?v=1752629663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277fd162ee1b0946b3b6667730debffcf83560b1.webp?v=1752629663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077d393d0b4d45d1b338e3c29d1e449c6f2b7e65.webp?v=1752629664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6519b18076724ee72fc89d5c26cf58cebbbbd293.webp?v=1752629665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8f78d2a60af4553672c1a89a56652c98e9696f.webp?v=1752629665"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d50e2ded62eab8fa0576064a4a4a814a76c4e7c8.webp?v=1752629660","options":["color"],"media":[{"alt":null,"id":25827175792739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d50e2ded62eab8fa0576064a4a4a814a76c4e7c8.webp?v=1752629660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d50e2ded62eab8fa0576064a4a4a814a76c4e7c8.webp?v=1752629660","width":2000},{"alt":null,"id":25827175989347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17a21e6456794577a8eea44184e8407961b8014.webp?v=1752629661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b17a21e6456794577a8eea44184e8407961b8014.webp?v=1752629661","width":2000},{"alt":null,"id":25827176284259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b634fe2fd202c003c0b289682070607be0e1109a.webp?v=1752629661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b634fe2fd202c003c0b289682070607be0e1109a.webp?v=1752629661","width":2000},{"alt":null,"id":25827176579171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12837b2801ad125942a83141802eb3f85aab8113.webp?v=1752629661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12837b2801ad125942a83141802eb3f85aab8113.webp?v=1752629661","width":2000},{"alt":null,"id":25827176906851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04c9973fa8217671cfaf69b3ce7b79a085be1fb6.webp?v=1752629662"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04c9973fa8217671cfaf69b3ce7b79a085be1fb6.webp?v=1752629662","width":2000},{"alt":null,"id":25827177136227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69289c5b89809ecadaac2ac9b041ffd048caa79f.webp?v=1752629663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69289c5b89809ecadaac2ac9b041ffd048caa79f.webp?v=1752629663","width":2000},{"alt":null,"id":25827177398371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277fd162ee1b0946b3b6667730debffcf83560b1.webp?v=1752629663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277fd162ee1b0946b3b6667730debffcf83560b1.webp?v=1752629663","width":2000},{"alt":null,"id":25827177594979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664","width":2000},{"alt":null,"id":25827177824355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077d393d0b4d45d1b338e3c29d1e449c6f2b7e65.webp?v=1752629664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077d393d0b4d45d1b338e3c29d1e449c6f2b7e65.webp?v=1752629664","width":2000},{"alt":null,"id":25827178053731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6519b18076724ee72fc89d5c26cf58cebbbbd293.webp?v=1752629665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6519b18076724ee72fc89d5c26cf58cebbbbd293.webp?v=1752629665","width":2000},{"alt":null,"id":25827178184803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8f78d2a60af4553672c1a89a56652c98e9696f.webp?v=1752629665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8f78d2a60af4553672c1a89a56652c98e9696f.webp?v=1752629665","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43528461811811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34192920903779,"product_id":7838010671203,"position":8,"created_at":"2025-07-16T09:34:22+08:00","updated_at":"2025-07-16T09:34:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664","variant_ids":[43528461811811]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE 棒棒獸 - 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-HK66","featured_media":{"alt":null,"id":25827177594979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43528461811811,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118424-HK66","requires_shipping":true,"taxable":true,"featured_image":{"id":34192920903779,"product_id":7838010671203,"position":8,"created_at":"2025-07-16T09:34:22+08:00","updated_at":"2025-07-16T09:34:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664","variant_ids":[43528461811811]},"available":true,"name":"iPhone 12 mini Mod NX (MagSafe 兼容) BOUNCE 棒棒獸 - 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-HK66","featured_media":{"alt":null,"id":25827177594979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83683e8e5758dbd6684f45c5be7062ab632f894e.webp?v=1752629664"}},"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: "停產" }