$product = {"id":7920488087651,"title":"Pixel 8 Pro SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變戰鬥系列-五條悟","handle":"google-pixel-8-pro-solidsuit-android-magsafe-ptt12","description":null,"published_at":"2025-11-10T16:40:23+08:00","created_at":"2025-11-10T14:55:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Google","designer","designer-jujutsu-kaisen","device-Pixel 8 Pro","merge","reseller-jujutsu-kaisen"],"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":43828754579555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST023020B-PTT12","requires_shipping":true,"taxable":true,"featured_image":{"id":36124597256291,"product_id":7920488087651,"position":12,"created_at":"2026-06-29T15:12:50+08:00","updated_at":"2026-06-29T15:12:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172","variant_ids":[43828754579555]},"available":true,"name":"Pixel 8 Pro SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變戰鬥系列-五條悟 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST023020B-PTT12","featured_media":{"alt":null,"id":27629840203875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828756021347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0230252-PTT12","requires_shipping":true,"taxable":true,"featured_image":{"id":36124596240483,"product_id":7920488087651,"position":10,"created_at":"2026-06-29T15:12:47+08:00","updated_at":"2026-06-29T15:12:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8d7b7f9c-1e55-4d2e-8ee9-d9604eb46d81.webp?v=1782717169","variant_ids":[43828756021347]},"available":true,"name":"Pixel 8 Pro 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":"MST0230252-PTT12","featured_media":{"alt":null,"id":27629839188067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8d7b7f9c-1e55-4d2e-8ee9-d9604eb46d81.webp?v=1782717169"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828756054115,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MST02302Z7-PTT12","requires_shipping":true,"taxable":true,"featured_image":{"id":36124596535395,"product_id":7920488087651,"position":11,"created_at":"2026-06-29T15:12:47+08:00","updated_at":"2026-06-29T15:12:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_ec791f1b-ef32-4d23-bdc9-90169b762bb2.webp?v=1782717170","variant_ids":[43828756054115]},"available":true,"name":"Pixel 8 Pro SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變戰鬥系列-五條悟 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST02302Z7-PTT12","featured_media":{"alt":null,"id":27629839515747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_ec791f1b-ef32-4d23-bdc9-90169b762bb2.webp?v=1782717170"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4.webp?v=1762757732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7.webp?v=1762757733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c.webp?v=1762757734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_e8c18fc5-9351-44c1-8fa7-5414f54aac79.webp?v=1782264580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_c8b38c96-5dae-4ef4-9d7b-0d8dd3bc4b12.webp?v=1782264581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_05295ce3-2e1b-4de6-838e-7be74a68db0a.webp?v=1782264583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_9cc55330-fe73-412f-8e65-eb786d1d0565.webp?v=1782291062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8300942e-2bde-460e-a19c-067590e4bc19.webp?v=1782291063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_79714a7f-37db-4097-be69-54a7f05d1812.webp?v=1782291064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8d7b7f9c-1e55-4d2e-8ee9-d9604eb46d81.webp?v=1782717169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_ec791f1b-ef32-4d23-bdc9-90169b762bb2.webp?v=1782717170","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4.webp?v=1762757732","options":["color"],"media":[{"alt":null,"id":26347672731747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4.webp?v=1762757732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4.webp?v=1762757732","width":2000},{"alt":null,"id":26347672928355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7.webp?v=1762757733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7.webp?v=1762757733","width":2000},{"alt":null,"id":26347673092195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c.webp?v=1762757734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c.webp?v=1762757734","width":2000},{"alt":null,"id":27586747957347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_e8c18fc5-9351-44c1-8fa7-5414f54aac79.webp?v=1782264580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_e8c18fc5-9351-44c1-8fa7-5414f54aac79.webp?v=1782264580","width":2000},{"alt":null,"id":27586748514403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_c8b38c96-5dae-4ef4-9d7b-0d8dd3bc4b12.webp?v=1782264581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_c8b38c96-5dae-4ef4-9d7b-0d8dd3bc4b12.webp?v=1782264581","width":2000},{"alt":null,"id":27586749857891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_05295ce3-2e1b-4de6-838e-7be74a68db0a.webp?v=1782264583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_05295ce3-2e1b-4de6-838e-7be74a68db0a.webp?v=1782264583","width":2000},{"alt":null,"id":27594518200419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_9cc55330-fe73-412f-8e65-eb786d1d0565.webp?v=1782291062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_9cc55330-fe73-412f-8e65-eb786d1d0565.webp?v=1782291062","width":2000},{"alt":null,"id":27594518593635,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8300942e-2bde-460e-a19c-067590e4bc19.webp?v=1782291063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8300942e-2bde-460e-a19c-067590e4bc19.webp?v=1782291063","width":2000},{"alt":null,"id":27594519183459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_79714a7f-37db-4097-be69-54a7f05d1812.webp?v=1782291064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_79714a7f-37db-4097-be69-54a7f05d1812.webp?v=1782291064","width":2000},{"alt":null,"id":27629839188067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8d7b7f9c-1e55-4d2e-8ee9-d9604eb46d81.webp?v=1782717169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8d7b7f9c-1e55-4d2e-8ee9-d9604eb46d81.webp?v=1782717169","width":2000},{"alt":null,"id":27629839515747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_ec791f1b-ef32-4d23-bdc9-90169b762bb2.webp?v=1782717170"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_ec791f1b-ef32-4d23-bdc9-90169b762bb2.webp?v=1782717170","width":2000},{"alt":null,"id":27629840203875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43828754579555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST023020B-PTT12","requires_shipping":true,"taxable":true,"featured_image":{"id":36124597256291,"product_id":7920488087651,"position":12,"created_at":"2026-06-29T15:12:50+08:00","updated_at":"2026-06-29T15:12:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172","variant_ids":[43828754579555]},"available":true,"name":"Pixel 8 Pro SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變戰鬥系列-五條悟 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST023020B-PTT12","featured_media":{"alt":null,"id":27629840203875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828756021347,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0230252-PTT12","requires_shipping":true,"taxable":true,"featured_image":{"id":36124596240483,"product_id":7920488087651,"position":10,"created_at":"2026-06-29T15:12:47+08:00","updated_at":"2026-06-29T15:12:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8d7b7f9c-1e55-4d2e-8ee9-d9604eb46d81.webp?v=1782717169","variant_ids":[43828756021347]},"available":true,"name":"Pixel 8 Pro 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":"MST0230252-PTT12","featured_media":{"alt":null,"id":27629839188067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39628ade80662a9598f431218c13b419b234d2c_8d7b7f9c-1e55-4d2e-8ee9-d9604eb46d81.webp?v=1782717169"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43828756054115,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"MST02302Z7-PTT12","requires_shipping":true,"taxable":true,"featured_image":{"id":36124596535395,"product_id":7920488087651,"position":11,"created_at":"2026-06-29T15:12:47+08:00","updated_at":"2026-06-29T15:12:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_ec791f1b-ef32-4d23-bdc9-90169b762bb2.webp?v=1782717170","variant_ids":[43828756054115]},"available":true,"name":"Pixel 8 Pro SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變戰鬥系列-五條悟 - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST02302Z7-PTT12","featured_media":{"alt":null,"id":27629839515747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eac6bd5f8990f7d6675bc3d5e1e89ec9516c0d7_ec791f1b-ef32-4d23-bdc9-90169b762bb2.webp?v=1782717170"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43828754579555,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"MST023020B-PTT12","requires_shipping":true,"taxable":true,"featured_image":{"id":36124597256291,"product_id":7920488087651,"position":12,"created_at":"2026-06-29T15:12:50+08:00","updated_at":"2026-06-29T15:12:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172","variant_ids":[43828754579555]},"available":true,"name":"Pixel 8 Pro SolidSuit (MagSafe 兼容) 咒術迴戰 澀谷事變戰鬥系列-五條悟 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST023020B-PTT12","featured_media":{"alt":null,"id":27629840203875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac9b20cf4e0ee64b4a97afb23697858e8552aeb4_7326e31d-5a50-47ac-a223-1b39a10bbec3.webp?v=1782717172"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }