Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Filters on result page not working
- This topic has 9 replies, 2 voices, and was last updated 1 year, 10 months ago by
Ernest Marcinko.
-
AuthorPosts
-
July 9, 2024 at 4:35 pm #48740
samuelepellizzari
ParticipantHi 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
July 10, 2024 at 9:39 am #48745Ernest Marcinko
KeymasterHi 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!
July 10, 2024 at 11:31 am #48749samuelepellizzari
ParticipantYou cannot access this content.
July 12, 2024 at 9:58 am #48753Ernest Marcinko
KeymasterThank 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.
July 12, 2024 at 1:13 pm #48755samuelepellizzari
ParticipantHi 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
July 14, 2024 at 2:14 pm #48758Ernest Marcinko
KeymasterI 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.
July 15, 2024 at 11:49 am #48763samuelepellizzari
ParticipantHi 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,
SamueleJuly 15, 2024 at 12:36 pm #48765Ernest Marcinko
KeymasterOn 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.July 16, 2024 at 1:50 pm #48771samuelepellizzari
ParticipantI’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=tecnicaAnd filters show.
I’m clueless…
July 16, 2024 at 3:32 pm #48773Ernest Marcinko
KeymasterWhen 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.
-
AuthorPosts
- You must be logged in to reply to this topic.