$product = {"id":7888946036835,"title":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20","handle":"iphone-12-mini-solidsuit-classic-magsafe-tb28","description":null,"published_at":"2025-09-24T11:23:44+08:00","created_at":"2025-09-23T12:04:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-oracle-redbull-racing","device-iPhone 12 Mini","merge","reseller-oracle-redbull-racing"],"price":125000,"price_min":125000,"price_max":125000,"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":43744842121315,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394404963,"product_id":7888946036835,"position":2,"created_at":"2025-09-23T12:04:13+08:00","updated_at":"2025-09-23T12:04:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255","variant_ids":[43744842121315]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-TB28","featured_media":{"alt":null,"id":26088769060963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744842154083,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394601571,"product_id":7888946036835,"position":5,"created_at":"2025-09-23T12:04:15+08:00","updated_at":"2025-09-23T12:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6186eff8819a27e498b0ead76b47696827c9d9.webp?v=1758600257","variant_ids":[43744842154083]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-TB28","featured_media":{"alt":null,"id":26088769257571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6186eff8819a27e498b0ead76b47696827c9d9.webp?v=1758600257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744842186851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394470499,"product_id":7888946036835,"position":3,"created_at":"2025-09-23T12:04:14+08:00","updated_at":"2025-09-23T12:04:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef5a9af22dcbbfa46fdff88b609c5cdb437e008a.webp?v=1758600256","variant_ids":[43744842186851]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-TB28","featured_media":{"alt":null,"id":26088769126499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef5a9af22dcbbfa46fdff88b609c5cdb437e008a.webp?v=1758600256"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744842219619,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394863715,"product_id":7888946036835,"position":6,"created_at":"2025-09-23T12:04:15+08:00","updated_at":"2025-09-23T12:04:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c749798448189514de60af7c57f8b3a55f9b224d.webp?v=1758600258","variant_ids":[43744842219619]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-TB28","featured_media":{"alt":null,"id":26088769519715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c749798448189514de60af7c57f8b3a55f9b224d.webp?v=1758600258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc1d0c4847b1374b44510120e8a9ce0281d5cda.webp?v=1758600255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef5a9af22dcbbfa46fdff88b609c5cdb437e008a.webp?v=1758600256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64a5b7283d842a4ffaf5867ae2826559e676a608.webp?v=1758600256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6186eff8819a27e498b0ead76b47696827c9d9.webp?v=1758600257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c749798448189514de60af7c57f8b3a55f9b224d.webp?v=1758600258"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc1d0c4847b1374b44510120e8a9ce0281d5cda.webp?v=1758600255","options":["color"],"media":[{"alt":null,"id":26088768897123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc1d0c4847b1374b44510120e8a9ce0281d5cda.webp?v=1758600255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dc1d0c4847b1374b44510120e8a9ce0281d5cda.webp?v=1758600255","width":2000},{"alt":null,"id":26088769060963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255","width":2000},{"alt":null,"id":26088769126499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef5a9af22dcbbfa46fdff88b609c5cdb437e008a.webp?v=1758600256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef5a9af22dcbbfa46fdff88b609c5cdb437e008a.webp?v=1758600256","width":2000},{"alt":null,"id":26088769192035,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64a5b7283d842a4ffaf5867ae2826559e676a608.webp?v=1758600256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64a5b7283d842a4ffaf5867ae2826559e676a608.webp?v=1758600256","width":2000},{"alt":null,"id":26088769257571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6186eff8819a27e498b0ead76b47696827c9d9.webp?v=1758600257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6186eff8819a27e498b0ead76b47696827c9d9.webp?v=1758600257","width":2000},{"alt":null,"id":26088769519715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c749798448189514de60af7c57f8b3a55f9b224d.webp?v=1758600258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c749798448189514de60af7c57f8b3a55f9b224d.webp?v=1758600258","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43744842121315,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394404963,"product_id":7888946036835,"position":2,"created_at":"2025-09-23T12:04:13+08:00","updated_at":"2025-09-23T12:04:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255","variant_ids":[43744842121315]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-TB28","featured_media":{"alt":null,"id":26088769060963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744842154083,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01184Z9-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394601571,"product_id":7888946036835,"position":5,"created_at":"2025-09-23T12:04:15+08:00","updated_at":"2025-09-23T12:04:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6186eff8819a27e498b0ead76b47696827c9d9.webp?v=1758600257","variant_ids":[43744842154083]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z9-TB28","featured_media":{"alt":null,"id":26088769257571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca6186eff8819a27e498b0ead76b47696827c9d9.webp?v=1758600257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744842186851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0118452-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394470499,"product_id":7888946036835,"position":3,"created_at":"2025-09-23T12:04:14+08:00","updated_at":"2025-09-23T12:04:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef5a9af22dcbbfa46fdff88b609c5cdb437e008a.webp?v=1758600256","variant_ids":[43744842186851]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0118452-TB28","featured_media":{"alt":null,"id":26088769126499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef5a9af22dcbbfa46fdff88b609c5cdb437e008a.webp?v=1758600256"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43744842219619,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01184Z8-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394863715,"product_id":7888946036835,"position":6,"created_at":"2025-09-23T12:04:15+08:00","updated_at":"2025-09-23T12:04:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c749798448189514de60af7c57f8b3a55f9b224d.webp?v=1758600258","variant_ids":[43744842219619]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01184Z8-TB28","featured_media":{"alt":null,"id":26088769519715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c749798448189514de60af7c57f8b3a55f9b224d.webp?v=1758600258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43744842121315,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"MST011840A-TB28","requires_shipping":true,"taxable":true,"featured_image":{"id":34518394404963,"product_id":7888946036835,"position":2,"created_at":"2025-09-23T12:04:13+08:00","updated_at":"2025-09-23T12:04:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255","variant_ids":[43744842121315]},"available":true,"name":"iPhone 12 mini SolidSuit (MagSafe 兼容) Oracle Red Bull Racing ORBR20 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST011840A-TB28","featured_media":{"alt":null,"id":26088769060963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7401c746c53da4950e254bb4655f05bb7104e5b.webp?v=1758600255"}},"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: "停產" }