Forums Forums Search & Filter Pro 'No Results' AJAX bug

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #215493

    When filtering results which should result in ‘No Results’ while using AJAX, the page just reloads the existing results. When not using AJAX, it properly redirects to ‘No Results’.

    Trevor
    #215499

    I suspect that the Ajax container may be missing on a no results scenario. Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #215539
    This reply has been marked as private.
    Trevor
    #215597

    I can see that you are using the Custom display results method, so what is making the results grid (is it the theme or a plugin), and how did you connect to it (shortcode, argument passed to the query …)?

    Anonymous
    #215727

    The results grid is created via the theme using an argument passed to the query.

    Trevor
    #215729

    Are you able to show me what that looks like, or is it like 'search_filter_id' => 1234,?

    If so, the form should be set to Custom mode, not EDD.

    Anonymous
    #215741
    This reply has been marked as private.
    Trevor
    #215787

    Your form is set to refresh the HTML container with the ID of course-results:

    https://www.screencast.com/t/22gtpvcBQO

    and you can see it normally here on a ‘good’ results page:

    https://www.screencast.com/t/inAI6lhpo

    It appears in the HTML directly after the form element. The form and the results elements are missing on a no results page, so it has nothing to refresh, so the page stays as it is.

    The PHP used for the template would need to be re-constructed to allow for this, so it always has the search form AND the results section.

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