Forums › Forums › Search & Filter Pro › Click on category checkbox with empty searchstring results in nothing found
Tagged: category, empty searchstring, no results found
- This topic has 18 replies, 2 voices, and was last updated 9 years, 9 months ago by Ross.
-
Anonymous(Private) February 10, 2015 at 11:10 am #11719
Hi Ross,
Remember Vanka.magicservices.nl? I’ve got an issue as follows: I go to the productpage and all products are shown. If I leave the searchstring empty and directly click on a category then no products are shown with a message No products found. If I enter something in the searchstring then it correctly shows the products filterd on the choosen category.
So, it seems that if searchstring is empty the filter isn’t working correctly. What can I do to resolve this?
Best regards, Janno
Ross Moderator(Private) February 10, 2015 at 11:15 am #11720Hey Janno
This is likely your theme – some themes like Avada will have a condition in the templates which say if search string is empty, do not show any results – but, you want this to display everything – so it will likely be some customising of your templates..
Although you haven’t mentioned it, this behaviour is sometimes noticed when turning on “force is_search to true” under the advanced tab in settings (which tells WP & your theme that it a search has been performed) – then again you may need to keep this enabled, in that case I revert back to the original suggestion of taking a look at your template files.
Thanks
Anonymous(Private) February 13, 2015 at 11:27 am #11882Hi Ross,
it did the trick in Dutch but the same searchform with lang=en doesn’t work. In the template is no restriction on searchfield is empty or not.
So, in Dutch language it’s still working perfect but in English as soon as I click on a Categorie or select a Brand with nothing in the searchform the party is over.
Yes, I use the same searchform in both languages.
Please help!
Ross Moderator(Private) February 13, 2015 at 12:16 pm #11883Hey Janno
How are you translating, what plugin are you using?
We only officially support WPML – if you are having problems with this then I’m going to have to say that it is a problem with your theme or another plugin, as there is absolutely no reason that language *should* affect the results (in this way).
Thanks
Ross Moderator(Private) February 13, 2015 at 12:42 pm #11886Any of the WP ones – 2013, 2014 or 2015? 🙂
Ross Moderator(Private) February 13, 2015 at 12:43 pm #11887(actually I haven’t done extensive testing with 2015 so probably use one of the other two)
Anonymous(Private) February 13, 2015 at 2:45 pm #11895Hi Ross,
I tested with Twenty Four, disabled all plugins except
– Relevanssi
– Search and Filter Pro
– Woocommerce
– Woocommerce multilingual
– WPML Media
– WMPL Multilimgual CMS
– WPML String Translation
– WPML Translation managementCheck vanka.magicservices.nl. The lay-out is stupid now because of the theme but you can still test by going to vanka.magicservices.nl and clicking
Dutch: http://vanka.magicservices.nl/?sfid=2726&_sft_product_cat=drank
English: http://vanka.magicservices.nl/?lang=en&sfid=2726&_sft_product_cat=beverageDutch result: 38 items
English result: NothingBest regards, Janno
Ross Moderator(Private) February 13, 2015 at 3:02 pm #11899Hey Janno thanks for doing that – in that case I will have to make a little test here using the same configuration but I believe this should normally be working.
I’ve just emailed you an updated plugin, can you upload this and test and let me know the results?
Thanks
-
AuthorPosts