-
Search Results
-
split by @trevorsf from https://support.searchandfilter.com/forums/topic/different-filters-for-different-product-categories/
Any news when is new version is coming.
I tried setting up multiple filters for different categories, by using the “As an Archive” option, and using a copy of woocommerce’s “archive-product.php” (in my child theme folder) as the template.
While the page loads fine, when I click on any of the filters, I get redirected to an archive page with no results.
If you know how to set it up properly using this method that would be really helpful for the time being
My form has:
Search
Taxonomy: product_cat
Sort Order
Post Per Page
Post Meta: _price
Reset Button
Submit ButtonThe search seems broken, but that is mostly due to one single reason.
For this explanation I disabled AJAX and use only Submit manual, my settings are as recommended, Woocommerce Shop display results, correct post metas etc. The search I think works good. Let me start saying that the price widget, doesn’t work, at all. It firstly worked when I had 20 products, but then it stopped (not 20 products as in time frame when testing this website, not in correlation), I haven’t changed anything, I only added 30-40 products by duplication, I added more since than with import, but it does not work. I change/slide it, the link changes, I submit it, nothing.
Categories work half the time, and this is mostly because the filter form switches from the default shop archive-page.php to taxonomy-product_cat.php. So when I visit the store the first time, it is on archive-page.php, I use the filter, select category – switches to taxonomy-product_cat.php with the correct results, but when I search again, for example I change my category from the drop-down, it first goes to archive-product.php, resetting my search results, like clicking reset and ignoring what I selected, and if I then just click again on the submit button, it works correctly. Of course this is not an intuitive/nor I think intended way of working.
Last thing is the results per page, when the price filter worked, the result page did not count properly – not that the price slider does not work, I cannot tell.
It would be great to get these stuff resolved, thank you!