Skip Navigation

[Resolved] AJAX search filter not working

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.

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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 1 year, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2559543
screencapture-gilded-brandmnc-wp-admin-admin-php-2023-02-22-11_27_09.png

I have a view that shows store locations with 3 store brands (a custom taxonomy) and filters for location (distance) and services (a custom taxonomy). The main view that shows all 3 store brands works fine - AJAX is working when using filters. However, on a different page with a view that only shows a single brand (via shortcode filter) the AJAX filter does not work for the services taxonomy filter. The services filter is set up using checkboxes, when clicking a checkbox, the page does not refresh, the URL does not change--nothing. The map distance filter kind of works - it changes the URL but it won't update the map correctly for a custom radius. However, setting it up without AJAX and using a search button it DOES work. I have also noticed that on these single-brand pages the services list does not filter out the services that are not tied to the brand - but that's ok.

Page WITH the issue: hidden link
page WITHOUT the issue: hidden link

Keep in mind, in order to filter out the single brand (in this example, Blissworks) I'm using a shortcode attribute for the brand name slug, manually entered, NOT a shortcode in a shortcode. It seems that once the view is filtered down to a specific store brand the issue occurs.

I have tried disabling ALL plugins and using the Twenty Twenty Three theme -- still doesn't work. I am using the Elementor theme.

#2560609

Hello,

I have checked it in your website, it seems you are using below settings:
Display the custom search form with a shortcode, display the search result with anther shortcode.

It will prevent AJAX search from working, you might consider one of below options:
1) Display both the search form + search result with only one shortcode
2) Or you can disable the AJAX search.