Answer the question
In order to leave comments, you need to log in
How to filter products in woocommerce?
I want to filter products in woocommerce. Out of the box, there is already a filter plugin, but it works according to the "AND" type, that is, if you select the color red, then all red products will be displayed and if you then select blue, then products that have both red and blue color will be displayed. I want to remake it so that you can display products that are OR red OR blue. I figured out the widget itself, I just form links like ?filter_color=23,21 where color is our attribute (color), 23,21 is the ID of the desired attribute values (colors). But I don’t know how to force the wordpress cycle to display the desired products.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question