'All Product Categories' searches not working as expected
-
I’m having a problem with Search & Filter using woocommerce.
In Woocommerce I have my categories set up and a ‘designer’ attribute for the clothing designers name (there are only two designers at the moment). I’m using the following code:
[searchandfilter fields="product_cat,pa_designer" types="menu,checkbox" operators=",or,and" ]
When selecting a category from the dropdown menu and one of the names it works as expected. If I select a category without selecting a designer it brings all the products back as a result – fine.
However, if I leave the category as ‘All Product Categories’ with no designers selected, instead of returning everything I get a ‘No content matched your criteria’.
If I do this again but select just one of the two designers it gets a ‘404 Page not found’.
If I do it again but this time select both designers it brings all the results.
So, everything works as expected when a category is chosen but not when the category is left as ‘All Product Categories’.
Any idea what the problem is?
- The topic ‘'All Product Categories' searches not working as expected’ is closed to new replies.