• Resolved Unknown Variable

    (@cuckoo1dev)


    I only use categories for searching in my woocommerce shop. So the search box only shows categories and no products. But when I press enter after enetring a category name like say ‘electronics’ then it show no results found in a new page.

    Otherwise the search box shows categories but when pressing search it shows no products found

Viewing 1 replies (of 1 total)
  • Plugin Support Marta

    (@martadella)

    Hi @cuckoo1dev,

    FiboSearch does not affect the search results page. It only forwards a list of matching product IDs to it. If you disabled searching by products, you’ll then get the “No results” message, because there is nothing (no products) to show. The plugin shows categories only in the live search.

    In order to show categories on the search results page, you’ll probably need to create a special template in your theme or redirect the search results to a custom page.

    You can also disable the Enter key, so that the user won’t be redirected to the search results page and will need to choose a category from the dropdown. To do this, use the following PHP code snippet:

    add_filter('dgwt/wcas/scripts/disable_submit', '__return_true');

    You can paste it into the functions.php file in your child theme or use the Code Snippets plugin. For more information, check our documentation: https://fibosearch.com/documentation/tips-tricks/how-to-disable-enter-key/.

    I hope this is helpful!

    Regards,
    Marta

Viewing 1 replies (of 1 total)
  • The topic ‘No results when only searching with categories’ is closed to new replies.