Forums › Forums › Search & Filter Pro › The plugin doesn’t reset the search
- This topic has 15 replies, 2 voices, and was last updated 10 years ago by Anonymous.
-
Anonymous(Private) November 1, 2014 at 3:21 pm #6821
I have a form configured to filter two custom taxonomies, one using checkboxes the other using a dropdown.
Im using the widget version and filtering WooCommerce products. When I first enter the shop, i get the following:
https://www.dropbox.com/s/1qgxd6cjlo5ewtg/Screenshot%202014-11-01%2015.18.12.png?dl=0As you can see the form has nothing set, and the url is the store’s base url “/shop/”.
When I activate a checkbox for the plans filter, the contents do get filtered and the URL now shows:“/product-category/bookings/?sfid=344&_sf_ajax_timestamp=1414855142753”
But then I remove the selection from that same checkbox, the page seems to do an Ajax refresh but the contents stays the same, as do the URL that still contains the navigation to the product category:
“/product-category/bookings/?sfid=344&_sf_ajax_timestamp=1414855142753”
Am I missing something or there’s a problem here?
Thank you.
Ross Moderator(Private) November 4, 2014 at 1:40 am #6955Hey Luis sorry missed this as it was in “general support” moved over to S&F… will check through tomorrow now as its late here.
Thanks
Ross Moderator(Private) November 5, 2014 at 11:15 am #7044Hey Luis
Do you by any chance have a link I could look at? Its hard to guess what is going on.
When using ajax, if you change some search settings, and click submit, and the results just reload, and the URL stays the same, then this is sounding like it could be a JS error.
Have you checked the console for any errors?
Thanks
Anonymous(Private) November 5, 2014 at 11:22 am #7046You should be able to see it here:
http://www.webipack.eu/themes/Im not getting any errors on the console.
Ross Moderator(Private) November 5, 2014 at 11:41 am #7047Hey Luis
Thanks for that, it does look a little strange but I think I know what the problem is.
You must click “use custom template” and enter a filename to a template you wish to display you results.
The problem is, when you don’t specify a custom template then you leave it up to wordpress/your theme to use a template – so depending on your url different different templates are being loaded which causes the ajax to mess up..
Let me know when you have done this and I’ll take another look.
Thanks
Anonymous(Private) November 5, 2014 at 8:00 pm #7070Thank you for the suggestion Ross.
I’ve tried to insert the template filename, it does behave differently but it still doesn’t output anything. I do see the requests on the console, but they seem to be always retrieving the complete list.This is a WooCommerce products list, so i’ve tried with the default
search.php
and also tried to insert the default WooCommerce search archive page, which isarchive-product.php
. When I insert the second filename and save the settings, the form clears that input and shows it as blank.Any tips?
-
AuthorPosts