S
S
smolanov_sergey2021-02-09 01:58:50
WordPress
smolanov_sergey, 2021-02-09 01:58:50

How to display clickable product attributes?

Good day to all!.

There is a layout and according to it on the main page there are product attributes. This is the scope of the product. It is necessary that when you click on this area, a page with products that correspond to this area of ​​\u200b\u200bapplication opens. It turned out to display all the values ​​​​of this attribute, and then a stupor. Help solve the problem. Or maybe there is another approach. On the layout, these attributes are with icons.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pychev Anatoly, 2021-02-09
@pton

As an option, use not attributes, but labels. Only not native woo, they will come in handy. Create a new taxonomy by tag type. You can do this with the register_taxonomy code , or you can use plugins.
Then just for each product in the loop you get a list of your connected tags using wp_get_object_termsand display a link
. You may have to create a new page template for your new tags. Just copy the template for product_tag and rename it to match your tags.

E
Elio Don, 2021-02-14
@elmurzaalchakov

In the attribute settings there will be a checkbox (use for archives) something like that, put it on and the attribute will be clickable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question