Support » Plugin: Ajax Search for WooCommerce » How to change sorting for results output?

  • Resolved kleindberg

    (@kleindberg)


    I want to show results sorted by popularity (default: by relevance).

    This option enable on results page, but not for live search:
    /?orderby=popularity&paged=1&s={keyword}&post_type=product&dgwt_wcas=1

    How can I add ?orderby=popularity query to search form?

    • This topic was modified 5 months, 1 week ago by kleindberg.
Viewing 1 replies (of 1 total)
  • Plugin Author Damian Gora

    (@damian-gora)

    Hi,

    I don’t recommend to do that if you have in the search scope more than product title. If you order search suggestions by popularity, your users can be confused.

    Your idea isn’t wrong, but it needs other assumptions. I plan to add custom ordering or add popularity as one of the influencing factors (weight).

    Best
    Damian Góra

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.