Hi,
I am using instantsearch.js
I want to create all parent category dropdown next to searchbox (Default: all) . If user select any of category and search then
- User will get results from only that category
- Selected category will be refine as a default and get display in current refinement list
as an example, I have selected Graphics and search for Flower. I want Categories filter to refine it by Graphics and display on current refinement list.
My Data example
{
“product_title”: “flower”,
“all_categories”: [
“graphics”,
“illustration”,
“elements”
],
“objectID”: “963787”
}
Can you please help here? something I saw here https://www.spencerandwilliams.com/ but not sure how it achieved.
Thanks,
Krishna