Home Forums WoodMart support forum Woodmart – search category

Woodmart – search category

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #99866

    meenap
    Participant

    Hi,

    While we search the product based on the category, we have below issues

    1. The selected category name not showing on the search result page
    2. We want to show the selected category name on search result page breadcrumb navigation

    Check attached screenshot

    Thanks,

    Attachments:
    You must be logged in to view attached files.
    #99885

    Hello,

    By default search finds the product by a keyword. There is no option to find by a category. We have integrated search by SKU

    Best Regards

    #100361

    meenap
    Participant

    The current search response does not have a user-friendly,

    the user selected category name should be shown by default on the search result page drop-down.

    Is there any alternate way to do this?

    Thanks,

    #100424

    Hello,

    This is Woocommerce functionality and our theme does not influence. You can add a category list to the search in header https://gyazo.com/0d86254f4bafcbf51b4f9075e9e45a5c

    Or add categories into the sidebar.

    Please let me know if you need assistance in configuration the same.

    Best Regards

    #100607

    meenap
    Participant

    Thank you for the response.

    Another issue is if we assign a single product to any of the categories and we search this, it goes to product details page instead of the listing page.

    some redirection was implemented based on the product count of the category.
    We don’t need this redirection.
    if we search any category it should go to search listing page

    could please help us to remove this redirection?

    #100619

    Eric Watson
    Participant

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    add_filter( 'woocommerce_redirect_single_search_result', '__return_false' );

    Kind Regards
    XTemos Studio

    #100625

    meenap
    Participant

    Thank you for the quick response

    #100628

    Eric Watson
    Participant

    You are welcome!

Viewing 8 posts - 1 through 8 (of 8 total)