This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Filters on result page not working

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Filters on result page not working

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #48740
    samuelepellizzarisamuelepellizzari
    Participant

    Hi Ernest,

    I tried live loading on (https://documentation.ajaxsearchpro.com/behavior/results_page_live_loader#how-to-enable-the-live-loader) on Result Page, overridden by Ajax Search Pro (https://documentation.ajaxsearchpro.com/behavior/results-page-override) and it works, both for Gutenberg and Elementor – Post/Product Widgets and Loop Grids as well.

    However, I tried to apply filters to those results, but they are not shown, either before or after the live load. What am I missing?

    Thanks,

    Samuele

    #48745
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Samuele,

    Could be a bad selector or a minor misconfiguration.

    Can you add a link where I can test and also back-end details so I can fiddle with the configuration? Thank you!

    #48749
    samuelepellizzarisamuelepellizzari
    Participant

    You cannot access this content.

    #48753
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank you Samuele!

    I see the issue – you want to combine some 3rd party filters with the search I guess? That’s a bit of a grey area, as the other plugin may not detect the new results and will try to filter the original loop. I usually don’t recommend combining multiple search/filter plugins, it often leads to compatibility issues.

    #48755
    samuelepellizzarisamuelepellizzari
    Participant

    Hi Ernest,

    I see… The goal is to get an Amazon-like result page, that can be filtered.

    However it turns out that the issue occurs immediately on page load, as if the filters couldn’t detect the original loop, even before live loading.

    What’s odd is that if I go to the standard result page (without Ajax Search Pro overriding it), filters work. If I use Ajax Search Pro to get the results, with all the query variable appended to the URL, filters don’t show

    Is there a way to prevent that? Could it be a matter of get/post method, or other compatibility tweaks?

    Please shed some light at the end of the tunnel…

    Samuele

    #48758
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I see Samuele. The issue seems to be unrelated to the plugin though. When I turn off the plugin completely and go to the results page, it seems to happen ragardless: https://i.imgur.com/wOnjQkL.png

    It looks like a visual issue or a misconfiguration within the page builder or the filter plugin.

    #48763
    samuelepellizzarisamuelepellizzari
    Participant

    Hi Ernest,

    I am trying to debug this following your hints (thanks!).

    So, I rebuilt the result page in a simpler way.

    I also found that, by deactivating “Replace the default theme search with:”, the standard search works, as well as filters. However, as soon as I override it with Ajax Search Pro, the filter is gone.

    Redirection to result page overridden by Ajax Search Pro is triggered by both magnifier and return button.

    Please have a look at the screenshots attached and let me know your thoughts.

    Best,
    Samuele

    #48765
    Ernest MarcinkoErnest Marcinko
    Keymaster

    On my end the filter is gone even if I deactive Ajax Search Pro completely, see: https://i.imgur.com/yUBuUqz.png
    It flickers for a millisecond, so the filters are there, but it looks like it’s only a visual issue – somewhere either it’s container or a 3rd party script is hiding it. It’s definitely not related to Ajax Search Pro now, as the issue would disappear if Ajax Search Pro is deactivated.

    #48771
    samuelepellizzarisamuelepellizzari
    Participant

    I’m sorry to bother you on this, but your plugin is definitely one of the best out there and it has so far suited many specific needs of our website like no other.

    I deactivated the plugin myself, then added a standard WordPress search bar on the header. I kindly invite you to test it just another time. Let’s say, search for “tecnica” – results are here:
    https://www.musicandbooks.edizionicurci.it/ram10/?s=tecnica

    And filters show.

    I’m clueless…

    #48773
    Ernest MarcinkoErnest Marcinko
    Keymaster

    When I look at the source code, I’m seeing 0 elements in each filter when the search override is activated. Maybe that is the reason why it’s “hidden”, as it thinks that there is nothing to filter. I guess the other plugin can’t see the results, or is trying to fetch the original query, which no longer exists as it’s been overridden. I have checked and all filter elements say that there is 0 items, so this is probably the issue and the filter simply hides itself.

    The only way to solve it and use both plugins at the same time is to turn off the search override.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.