Skip Navigation

[Resolved] AJAX Filter by Tax Not Working

This support ticket is created 2 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.38 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by Waqar 2 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#2341599

I am trying to:
Filter service providers by Hospital Affiliation.

Link to a page where the issue can be seen:
hidden link

Video Overview:
hidden link

I expected to see:
After selecting the "Palms of Pasadena Hospital" checkbox under the Hospital Affiliation filter the only result should be Gunn, Jinny, MD. Another example of this is "Parkside Surgery Center" which should only show the result of Greene, Daina P., MD.

Instead, I got:
The proper result shows at the top after AJAX automatically filters but it's followed by a bunch of random service providers that do not belong to that taxonomy. If I refresh the page (while keeping the URL parameters from the AJAX reload in the URL) then the proper result of the one service provider shows. Additionally, if you change the checkbox after the first AJAX refresh (check one box then uncheck it and check it again) then it shows "no results" which is even worse than showing the extra results.

#2341897

Hi,

Thank you for contacting us and I'd be happy to assist.

Based on what you've shared, most likely your server (WP Engine) or the CDN (Cloudflare) is caching the AJAX request and/or queries.

Are you experiencing the same on the production website too? I'll recommend testing the website's clone on different localhost or online server where Cloudflare is not being used and see if the issue persists. This will help in narrowing down whether the server or CDN is responsible for this.

I hope this helps and let me know how it goes.

regards,
Waqar

#2348927

Hello,

I've moved the site to an another DEV server that does not have WP caching or server caching in place: hidden link

Same issues as on the WPengine site. This new DEV environment uses the same UN and PW as I previously provided.

Thank you,

#2349609

Thank you for sharing this update.

During troubleshooting on your WPengine staging website, I noticed that the issue is fixed if the transition effect is changed to anything other than "Infinite scrolling" in the view "Find A Provider".
( screenshot: hidden link )

However, I couldn't reproduce this same issue with the "Infinite scrolling" on my test website, which suggests that something specific to your website is involved.

To investigate this further, I'll need your permission to download a clone/snapshot of the website. This will help us in troubleshoot this on a different server, without affecting the actual website.

#2349757

Ok, please proceed. Thank you

#2350535

Thank you for the permission.

I managed to install your website's clone on my test server and the issue persisted with the view's results.

I've shared these findings with the concerned team for further investigation and will keep you updated through this ticket.

For now, the workaround is to change the transition effect in the view "Find A Provider", to anything other than the "Infinite scrolling" option.

#2358611

Thank you for waiting and I've received an update.

The issue with infinite scrolling is fixed when a theme is switched, which suggests that something in your active theme's code is interfering with the default functionality.

It won't be possible for us to troubleshoot the custom code in the theme specifically, however, there are a number of functions in the theme's "custom.js" file which are responsible for triggering the search form submit programmatically. I'll recommend focusing on this file while troubleshooting this custom code conflict.