• Resolved LudachrisGSX

    (@ludachrisgsx)


    I’m trying to figure out how to limit filters by category – meaning, I have some attributes that only apply to certain product categories. If you set up a filter in a widget, will the filter automatically only be displayed in the relevant category where those attributes are used in products? Or will the filter be displayed in all categories, even where the attribute isn’t relevant?

Viewing 1 replies (of 1 total)
  • Hello

    Or will the filter be displayed in all categories, even where the attribute isn’t relevant? – Yes.The Filter show all attributes, but with this options – https://c2n.me/3FJdIE9.png ( Hide empty terms only for premium version )

    Another way:

    1) In category pages use shortcode – [woof_products] which attribute : taxonomies=product_cat:X Where X id your product category.

    2) In widgets use shortcode [woof] which attribute : * taxonomies=product_cat:X
    +
    tax_only – write taxonomies or products slug using comma
    +
    by_only – write any by-filter-elements there using comma: by_text,by_price,by_sku,by_author,by_insales,by_instock. Of course firstly user should enable extensions for that by-filter-elements
    *- Do not forget set the same condition in [woof_products]

    3) For show or hide widgets on different pages – https://www.woocommerce-filter.com/how-to-show-or-hide-widget-only-on-selected-site-pages/

    You can read more about shortcodes – https://www.woocommerce-filter.com/documentation/#!/section_3_1

Viewing 1 replies (of 1 total)
  • The topic ‘How to create category-specific filters?’ is closed to new replies.