• Resolved madis

    (@madis)


    Hello,

    Do you have a filter hook for excluding products from search that belong to specific product category? For example, if you would like to exclude products that has term called “archived”.

    Nice plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hello,
    There are no filters to easy excluding products. I’m going to add more filters in the future.

    At this moment you can use native WooCommerce option “Catalog visibility”. You should set it to “Shop only”. The default option is “Shop and search results”.

    If you have a lot of archived products, do the following steps:
    1. Go to the products page
    2. In screen options set “Number of items per page” to 999
    3. Filter all products by category “archived”
    4. Check all products and select “Edit” in the bulk actions. Click apply
    5. In “Product data” section set “Visibility” to “Catalog”
    6. Update. That’s it.

    I hope I helped.

    Thread Starter madis

    (@madis)

    Thanks, that helps a lot!

    I’m will probably use the save_post hook as well to automatically set the “Shop only” option if there category “archived” is chosen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude products that are in specific product category’ is closed to new replies.