$product = {"id":7815624654947,"title":"Google Pixel 7 Pro SolidSuit 小玉米花 新年恐龍","handle":"google-pixel-7-pro-solidsuit-bumper-back-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:28:14+08:00","created_at":"2025-06-11T14:25:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Google","designer","designer-littlepopcorn","device-Google Pixel 7 Pro","merge","reseller-littlepopcorn"],"price":83000,"price_min":83000,"price_max":83000,"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":43444847116387,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0225952-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012305457251,"product_id":7815624654947,"position":10,"created_at":"2025-06-12T10:09:17+08:00","updated_at":"2025-06-12T10:09:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159","variant_ids":[43444847116387]},"available":true,"name":"Google Pixel 7 Pro SolidSuit 小玉米花 新年恐龍 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0225952-EG10","featured_media":{"alt":null,"id":25692875554915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297.webp?v=1749623151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1.webp?v=1749623151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563.webp?v=1749623152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_24fc82d5-f75f-48ea-8073-4af45acb0628.webp?v=1749624426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_ecaa97b0-4bef-422e-894b-0ff82d489ffc.webp?v=1749624427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_2713e7be-7901-469a-9d60-ebf8400ce6ed.webp?v=1749624427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_80961743-993c-44dd-8dbf-3277fbad3968.webp?v=1749625424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_53647012-1c1f-44f9-b964-9515850ec90e.webp?v=1749625424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_f3837575-29f9-42a9-bba7-45ebd7165f8f.webp?v=1749625425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_a60dfa7c-b13e-4535-93e4-01e7da1aa87d.webp?v=1749694159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_4ba0c40a-c1e1-4180-8c21-402975e901b2.webp?v=1749694160"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297.webp?v=1749623151","options":["color"],"media":[{"alt":null,"id":25689505071203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297.webp?v=1749623151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297.webp?v=1749623151","width":2000},{"alt":null,"id":25689505333347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1.webp?v=1749623151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1.webp?v=1749623151","width":2000},{"alt":null,"id":25689505693795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563.webp?v=1749623152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563.webp?v=1749623152","width":2000},{"alt":null,"id":25689717866595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_24fc82d5-f75f-48ea-8073-4af45acb0628.webp?v=1749624426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_24fc82d5-f75f-48ea-8073-4af45acb0628.webp?v=1749624426","width":2000},{"alt":null,"id":25689718194275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_ecaa97b0-4bef-422e-894b-0ff82d489ffc.webp?v=1749624427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_ecaa97b0-4bef-422e-894b-0ff82d489ffc.webp?v=1749624427","width":2000},{"alt":null,"id":25689718587491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_2713e7be-7901-469a-9d60-ebf8400ce6ed.webp?v=1749624427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_2713e7be-7901-469a-9d60-ebf8400ce6ed.webp?v=1749624427","width":2000},{"alt":null,"id":25689976438883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_80961743-993c-44dd-8dbf-3277fbad3968.webp?v=1749625424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_80961743-993c-44dd-8dbf-3277fbad3968.webp?v=1749625424","width":2000},{"alt":null,"id":25689976701027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_53647012-1c1f-44f9-b964-9515850ec90e.webp?v=1749625424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_53647012-1c1f-44f9-b964-9515850ec90e.webp?v=1749625424","width":2000},{"alt":null,"id":25689977028707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_f3837575-29f9-42a9-bba7-45ebd7165f8f.webp?v=1749625425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_f3837575-29f9-42a9-bba7-45ebd7165f8f.webp?v=1749625425","width":2000},{"alt":null,"id":25692875554915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159","width":2000},{"alt":null,"id":25692875849827,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_a60dfa7c-b13e-4535-93e4-01e7da1aa87d.webp?v=1749694159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dac6cd550f092e4cd283096257b570317f218297_a60dfa7c-b13e-4535-93e4-01e7da1aa87d.webp?v=1749694159","width":2000},{"alt":null,"id":25692876210275,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_4ba0c40a-c1e1-4180-8c21-402975e901b2.webp?v=1749694160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc91d5b0d4634c71f951068bbfbac15a3a308c1_4ba0c40a-c1e1-4180-8c21-402975e901b2.webp?v=1749694160","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43444847116387,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0225952-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012305457251,"product_id":7815624654947,"position":10,"created_at":"2025-06-12T10:09:17+08:00","updated_at":"2025-06-12T10:09:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159","variant_ids":[43444847116387]},"available":true,"name":"Google Pixel 7 Pro SolidSuit 小玉米花 新年恐龍 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0225952-EG10","featured_media":{"alt":null,"id":25692875554915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444847116387,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0225952-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012305457251,"product_id":7815624654947,"position":10,"created_at":"2025-06-12T10:09:17+08:00","updated_at":"2025-06-12T10:09:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159","variant_ids":[43444847116387]},"available":true,"name":"Google Pixel 7 Pro SolidSuit 小玉米花 新年恐龍 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0225952-EG10","featured_media":{"alt":null,"id":25692875554915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eced4d8fc404edee553c7526ee888def49a02563_1f3b72a9-ef36-401e-b3ef-9c3c442aba26.webp?v=1749694159"}},"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: "停產" }