$product = {"id":7931227177059,"title":"Pixel 10 Pro XL SolidX (MagSafe 兼容) 白白日記 By Darylhochi OOOPS!!","handle":"google-pixel-10-pro-xl-solidx-magsafe-ei80","description":null,"published_at":"2025-11-28T11:11:31+08:00","created_at":"2025-11-28T09:27:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Google","designer","designer-darylhochi","device-Pixel 10 Pro XL","merge","reseller-darylhochi"],"price":138000,"price_min":138000,"price_max":138000,"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":43860659601507,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS023560B-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861301661795,"product_id":7931227177059,"position":4,"created_at":"2025-11-28T09:46:09+08:00","updated_at":"2025-11-28T09:46:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371","variant_ids":[43860659601507]},"available":true,"name":"Pixel 10 Pro XL SolidX (MagSafe 兼容) 白白日記 By Darylhochi OOOPS!! - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":138000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS023560B-EI80","featured_media":{"alt":null,"id":26425721225315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860661600355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0235652-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861301563491,"product_id":7931227177059,"position":3,"created_at":"2025-11-28T09:46:09+08:00","updated_at":"2025-11-28T09:46:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637_0774d31a-a5fa-4e8f-9124-7f15f71ff0b7.webp?v=1764294371","variant_ids":[43860661600355]},"available":true,"name":"Pixel 10 Pro XL SolidX (MagSafe 兼容) 白白日記 By Darylhochi OOOPS!! - Black","public_title":"Black","options":["Black"],"price":138000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0235652-EI80","featured_media":{"alt":null,"id":26425721127011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637_0774d31a-a5fa-4e8f-9124-7f15f71ff0b7.webp?v=1764294371"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f.webp?v=1764293282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637.webp?v=1764293282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637_0774d31a-a5fa-4e8f-9124-7f15f71ff0b7.webp?v=1764294371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f.webp?v=1764293282","options":["color"],"media":[{"alt":null,"id":26425601884259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f.webp?v=1764293282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f.webp?v=1764293282","width":2000},{"alt":null,"id":26425602113635,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637.webp?v=1764293282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637.webp?v=1764293282","width":2000},{"alt":null,"id":26425721127011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637_0774d31a-a5fa-4e8f-9124-7f15f71ff0b7.webp?v=1764294371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637_0774d31a-a5fa-4e8f-9124-7f15f71ff0b7.webp?v=1764294371","width":2000},{"alt":null,"id":26425721225315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43860659601507,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS023560B-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861301661795,"product_id":7931227177059,"position":4,"created_at":"2025-11-28T09:46:09+08:00","updated_at":"2025-11-28T09:46:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371","variant_ids":[43860659601507]},"available":true,"name":"Pixel 10 Pro XL SolidX (MagSafe 兼容) 白白日記 By Darylhochi OOOPS!! - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":138000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS023560B-EI80","featured_media":{"alt":null,"id":26425721225315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860661600355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MNS0235652-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861301563491,"product_id":7931227177059,"position":3,"created_at":"2025-11-28T09:46:09+08:00","updated_at":"2025-11-28T09:46:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637_0774d31a-a5fa-4e8f-9124-7f15f71ff0b7.webp?v=1764294371","variant_ids":[43860661600355]},"available":true,"name":"Pixel 10 Pro XL SolidX (MagSafe 兼容) 白白日記 By Darylhochi OOOPS!! - Black","public_title":"Black","options":["Black"],"price":138000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS0235652-EI80","featured_media":{"alt":null,"id":26425721127011,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0d735bbe4bc6d990bce753ab438c79d44de8637_0774d31a-a5fa-4e8f-9124-7f15f71ff0b7.webp?v=1764294371"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43860659601507,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MNS023560B-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861301661795,"product_id":7931227177059,"position":4,"created_at":"2025-11-28T09:46:09+08:00","updated_at":"2025-11-28T09:46:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371","variant_ids":[43860659601507]},"available":true,"name":"Pixel 10 Pro XL SolidX (MagSafe 兼容) 白白日記 By Darylhochi OOOPS!! - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":138000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MNS023560B-EI80","featured_media":{"alt":null,"id":26425721225315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5cb0329a0b7a39a8707b1c069b6a0ff643618f_c9ba132d-8b19-4063-baa5-6c5d9502e98d.webp?v=1764294371"}},"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: "停產" }