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, 10 months ago by
Anonymous.
-
Ross Moderator(Private) November 4, 2014 at 1:40 am #6955
Hey 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?
Ross Moderator(Private) November 6, 2014 at 10:38 am #7089Hey Luis this is your problem then.
When the field is getting cleared this means that S&F cannot find a template with that name in your theme folder.
If you are using a child theme try copying the template over in to that folder. Also make sure the template name has the full file path, so if it is in a sub folder, include that too.
If you are using a woocommerce template, then this needs to be copied over from the woocommercce plugin folder to your theme.
Thanks
-
AuthorPosts