Group Search Results by Category
-
All of my products belong to one of two top level product categories (A and B). I need to group product search results into buckets by these two product categories and display the buckets with labels. like this:
Category A
search results
Category B
search results
I understand the key is on this page: https://www.relevanssi.com/user-manual/filter-hooks/relevanssi_hits_filter/ but I don’t know enough PHP to make it work.
Would anyone be kind enough to post an example of the code required to make this work?Thank you in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Group Search Results by Category’ is closed to new replies.