Adnan

Search results pagination problem/bug

I am using the search bar in hero where you can select multiple categories, countries etc. For example when I choose multiple countries, it shows search results from my selections which is good. But whenever you go to the second page it gives only results of my last selection. Example: I choose Germany and United Kingdom in hero search bar. Link: example.com/?s=&country=DE&country=GB whenever I go to the second page (pagination) or other pages, Germany selection gets lost and no output of companies in Germany but only in United Kingdom. Link: example.com/page/2/?s&country=GB What changes are needed so that we have the correct results after using pagination?

Created: September 27, 2019 at 9:56 pm
  • In: Bugs & Issues
  • Started by: AdnanAdnan
  • 2 members left 5 comments
  • Last reply from: AdnanAdnan

  • Adnan
    Adnan
    October 10, 2019 at 9:53 pm

    Any comments on this?

  • Mark Fail
    Mark Fail
    October 11, 2019 at 1:44 am

    From your example it shows that country is lost for DE simply because its been overwritten by the second appearance of it. The pagenav is doing its jobs correctly ad removing the first version.

    Are you trying to have multiple countries?

  • Adnan
    Adnan
    October 11, 2019 at 8:00 am

    Yes. I can choose multiple countries. (see screenshot)

    I hope to get results of multiple countries in 2nd, 3rd, etc. pages.

    Attachments:
    You must be logged in to view attached files.
  • Mark Fail
    Mark Fail
    October 12, 2019 at 4:25 am

    The search doesnt accept multiple using this query, which child theme is it your using, ill have it updated.

  • Adnan
    Adnan
    October 12, 2019 at 12:42 pm

    Sorry, I put the old search bar manually because I need the country selection.

    If pagination doesn’t work with multiple (country) selections, I will try to disable it in the search bar.


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