Product filter based on metafields #2195
-
I want to filter products based on metafields: I have used as instructed in hydrogen docs: if (!handle) { if(searchParams.has('brandsFilter') && brandFilterValue !== null && brandFilterValue !== '') i am still not getting desired result its returning all the products instead of products which has same metafield in backend. PLease avoid any semicolons issue if there. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Please use code tag when you paste code, it's hard to figure out what is what :(
|
Beta Was this translation helpful? Give feedback.
-
The Search and Discovery is shopify application to allow you to use metafield in your filters in hydrogen :) https://apps.shopify.com/search-and-discovery?show_store_picker=1 |
Beta Was this translation helpful? Give feedback.
The Search and Discovery is shopify application to allow you to use metafield in your filters in hydrogen :)
https://apps.shopify.com/search-and-discovery?show_store_picker=1