Skip to content

Changing group_by based on sort_by #235

@dannymij

Description

@dannymij

Hi there,

Is there a way to change the grouping based on the sorting option selected?

Most of the grouping on our shop pages is by metal. But when changing to Highest Rated, I'd like to change it to group by product so I don't have 6 of essentially the same thing all sitting on top of each other.

Is that possible?

Also, after changing things over to use typesense-instantsearch-adapter... while all the sort options are present in the dropdown, it isn't selecting anything and leaving it blank. I'm fixing it on render, but not sure why it isn't just selecting the first option.

Could it be because the default sorting set in the collection isn't in the sortBy widget?

Many thanks in advance

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions