Support » Plugin: Ajax Search for WooCommerce » Search only categories

  • Resolved hamirom

    (@hamirom)


    HI,

    is there a possibility to limit the plugin to search only in categories?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Damian Gora

    (@damian-gora)

    Hi,
    I didn’t plan such an option because the product suggestions are the core feature. If you really want to exclude the product from search, you can use the following filter:

    
    add_filter('dgwt/wcas/search_results/output', function($output){
        // exclude what you want from $output
        return $output;
    });
    

    or you can set catalog visibility of each product to Shop only instead Shop and search results. It’s a native WooCommerce option.

    Hello,
    my idea was also to search only in TAGS and Categories. However your filter is not working for me, it still displays products as well. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.