Filter without all the attributes and terms
Hi there, I've enabled the filter on my category pages. The filter also shows attributes that do not apply to products within the category. For example, it shows the colors option, but none of the products in this category have the attribute 'color'. Summarised, the filter shows all the attributes and terms. Is it possible the filter will only show the attributes and terms applicable to products in the category?
PS. I do not want to enable the whole attribute because i will use it in other product categories.
Comments
My site: https://sh5.colo.mindbench.nl/~houtvlnieu/product-categorie/tuinhout/tuinschermen/
Hi,
You must create a separate sidebar in which this attribute is not present, create a template for that product category and assign this sidebar to the category template.
https://support.muffingroup.com/video-tutorials/how-to-create-custom-template-for-the-shop/
Best regards
Hi,
thank you for the answer, but that's not what i meant. If you go to tuinhout->tuinschermen you will see the 'lengte' and 'kleur' option is still available despite this product is not containing this feature. Do i need to make different shop templates with individual WooCommerce filter widgets?
If you did not create more than one sidebar for the shop, then this one will be global for all categories and will contain the same widgets with the same data. So it does not matter if particular category does not have some attribute, the sidebar will display it anyways because it is set up this way.
If you do not want to display some attributes on particular categories, you must create a separate sidebar without such attributes, create a custom template for this category, and assign a sidebar to this category.
Best regards