Woodmart – search category
-
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.
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
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,
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
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?
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
Thank you for the quick response