L
L
Leonid2018-03-14 15:07:38
WordPress
Leonid, 2018-03-14 15:07:38

So that product categories in WooCommerce have their own product attributes and filters for them?

There is a WooCommerce store.
How can I make sure that different product categories have different filters?
For example, the product category: Laptops on the site will have product filters by attributes: CPU, RAM, HDD, etc.
And the category LCD TVs : screen size, FullHD, etc.
By default, WooCommerce attributes are created for all products and filtering resp. for all attributes regardless of category.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vova, 2018-03-14
@easycode

1. You can achieve this with css.
or 2. You can install the WC Ajax Product Filter
plugin . As far as I remember, it will display only those attributes that are in the products in the current category. or 3. If there are not too many categories, you can make a sidebar for each category, and display the desired sidebar through the condition.

G
gnatalya_90, 2021-04-25
@gnatalya_90

If you use the woof (woocommerce filter) plugin, then take the following steps:
1) activate the “show count”, “dynamic recount” and “hide empty terms” options in the plugin settings (that is, select ON).
2) the shortcode in older versions of the plugin should be like [woof is_ajax=1 taxonomies=product_cat:19] , where 19 is the id of the product category, and in newer versions it’s enough just to write [woof] (at least that’s how it is for me works).
3) In order for the filter to be applied immediately on the same page where it is located (without an additional redirect), you must also activate "Try Ajax" in the same place, in the plugin settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question