Need to add filter on Collection page. #2197
Replies: 2 comments
-
if you want to use hooks simple introduce a client component and add this as child, like the demo store does on ProductGrid in search.server.jsx |
Beta Was this translation helpful? Give feedback.
-
One approach you could consider is using query parameters in the URL:
The result should be a list of common sort/filter buttons on your collection page, each of which uses Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi! I want to add some product filter on Collection page, so as [handle].server.jsx is Server Component, so I'm unable to use useState hook here, I took the refrence of Shopify's Demo Store, I have ProductCard.server.jsx Which is using Componenet of Shopify so I can't use filter there as well, So is there any way to use filters in on collection page.
Beta Was this translation helpful? Give feedback.
All reactions