W
W
WebforSelf2021-01-20 15:43:37
WordPress
WebforSelf, 2021-01-20 15:43:37

Filter products by woocomerce attribute on the main page?

There is a category "Soap" which has a "collection" attribute.
6008258c9f153128175793.png
How to make all possible attributes on top, and when clicked, the products are sorted.
I found plugins that do this with records, but something is not with woocomerce.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pychev Anatoly, 2021-01-20
@pton

Install any filter plugin. It usually has widgets. Create a field for widgets and throw the desired widget there. Customize it according to the desired attribute
Well, or you can handle it. Make buttons according to their attributes and call the request. Receive posts (products) from the database according to a custom request, taking into account the category and display it in the required layout. Perhaps this option will work faster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question