Custom default sort for different searches

  • pseudo visitor
    5 years ago #6382

    I have a WooCommerce site, and want to use different default sorts, for the search and shop results.

    5 years ago #6465

    It is possible using our WP filter

    The idea is to use the WPSOLR filter above, and compare the current url to the two target urls (blog search and product search) to return the specific default sort (by relevancy or product price for instance).

    You do not need to show a sort listbox if you don’t want to. The correct default search will be applied in the background search query, and the results accordingly sorted.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.