$product = {"id":7815654998115,"title":"Pixel 8 SolidSuit (MagSafe 兼容) 小玉米花 新年恐龍","handle":"google-pixel-8-solidsuit-magsafe-bumper-back-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:11:36+08:00","created_at":"2025-06-11T14:32:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Google","designer","designer-littlepopcorn","device-Pixel 8","merge","reseller-littlepopcorn"],"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":43444978647139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0230152-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34008265523299,"product_id":7815654998115,"position":7,"created_at":"2025-06-11T15:05:41+08:00","updated_at":"2025-06-11T15:05:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543","variant_ids":[43444978647139]},"available":true,"name":"Pixel 8 SolidSuit (MagSafe 兼容) 小玉米花 新年恐龍 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0230152-EG10","featured_media":{"alt":null,"id":25690018152547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716.webp?v=1749623559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32.webp?v=1749623560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0.webp?v=1749623560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_1fb1261e-1d11-41fe-bbc5-d11292d176b1.webp?v=1749624803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_bdf794c5-b90d-420b-b72f-e784ee87025d.webp?v=1749624803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_76941845-5911-4378-9ccd-264fa6d7fcca.webp?v=1749624804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_60eedf3b-df6e-4f9f-8a48-39e484937952.webp?v=1749625544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_6ca5300a-5ad2-4060-85de-cd94ae661bd4.webp?v=1749625545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_e82dde97-0147-46a6-a18c-ff3fe437a586.webp?v=1749694131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_7de25fc0-7462-4bc3-bd08-9a8f1fb30f76.webp?v=1749694132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_6e5c36f0-586f-48f0-a665-08ed46f9d018.webp?v=1749694133"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716.webp?v=1749623559","options":["color"],"media":[{"alt":null,"id":25689648693347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716.webp?v=1749623559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716.webp?v=1749623559","width":2000},{"alt":null,"id":25689648922723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32.webp?v=1749623560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32.webp?v=1749623560","width":2000},{"alt":null,"id":25689648988259,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0.webp?v=1749623560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0.webp?v=1749623560","width":2000},{"alt":null,"id":25689857949795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_1fb1261e-1d11-41fe-bbc5-d11292d176b1.webp?v=1749624803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_1fb1261e-1d11-41fe-bbc5-d11292d176b1.webp?v=1749624803","width":2000},{"alt":null,"id":25689858080867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_bdf794c5-b90d-420b-b72f-e784ee87025d.webp?v=1749624803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_bdf794c5-b90d-420b-b72f-e784ee87025d.webp?v=1749624803","width":2000},{"alt":null,"id":25689858277475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_76941845-5911-4378-9ccd-264fa6d7fcca.webp?v=1749624804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_76941845-5911-4378-9ccd-264fa6d7fcca.webp?v=1749624804","width":2000},{"alt":null,"id":25690018152547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543","width":2000},{"alt":null,"id":25690018447459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_60eedf3b-df6e-4f9f-8a48-39e484937952.webp?v=1749625544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_60eedf3b-df6e-4f9f-8a48-39e484937952.webp?v=1749625544","width":2000},{"alt":null,"id":25690018807907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_6ca5300a-5ad2-4060-85de-cd94ae661bd4.webp?v=1749625545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_6ca5300a-5ad2-4060-85de-cd94ae661bd4.webp?v=1749625545","width":2000},{"alt":null,"id":25692858941539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_e82dde97-0147-46a6-a18c-ff3fe437a586.webp?v=1749694131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/304008a4abfa61e8ec53ca7c262930b0d13062a0_e82dde97-0147-46a6-a18c-ff3fe437a586.webp?v=1749694131","width":2000},{"alt":null,"id":25692859367523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_7de25fc0-7462-4bc3-bd08-9a8f1fb30f76.webp?v=1749694132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_7de25fc0-7462-4bc3-bd08-9a8f1fb30f76.webp?v=1749694132","width":2000},{"alt":null,"id":25692859629667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_6e5c36f0-586f-48f0-a665-08ed46f9d018.webp?v=1749694133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/866768e4637148be265f5518f797b9f65cd4fd32_6e5c36f0-586f-48f0-a665-08ed46f9d018.webp?v=1749694133","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43444978647139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0230152-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34008265523299,"product_id":7815654998115,"position":7,"created_at":"2025-06-11T15:05:41+08:00","updated_at":"2025-06-11T15:05:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543","variant_ids":[43444978647139]},"available":true,"name":"Pixel 8 SolidSuit (MagSafe 兼容) 小玉米花 新年恐龍 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0230152-EG10","featured_media":{"alt":null,"id":25690018152547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444978647139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0230152-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34008265523299,"product_id":7815654998115,"position":7,"created_at":"2025-06-11T15:05:41+08:00","updated_at":"2025-06-11T15:05:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543","variant_ids":[43444978647139]},"available":true,"name":"Pixel 8 SolidSuit (MagSafe 兼容) 小玉米花 新年恐龍 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0230152-EG10","featured_media":{"alt":null,"id":25690018152547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d03b1267b572828e4cd362a1f851d4cd97d0716_e292e277-6562-4cae-9b3e-c382a0d72293.webp?v=1749625543"}},"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: "停產" }