Home › Forums › WoodMart support forum › Search results not appear after hitting the enter key
Search results not appear after hitting the enter key
- This topic has 7 replies, 2 voices, and was last updated 3 years, 4 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
July 19, 2021 at 6:08 am #307455
GunaParticipantCan anyone direct me on how to make search results appear after hitting the enter key? Currently, the only way any results show up is if you type your search term and then just wait. This isn’t very intuitive. Most people are going to hit enter after they type their search term. But hitting enter just returns a blank page.
Refer screenshot: https://ibb.co/p0bjxRJ
Website Name:https://www.thesstudioonline.com
Attachments:
You must be logged in to view attached files.July 19, 2021 at 8:18 am #307475
Aizaz Imtiaz AwanKeymasterHello,
I have visited your website and the search is displayed when you click enter.
Screenshot for Clarification: https://gyazo.com/b09385297d9667f38d55e293b9d3ccc6
Please clear cache and check back.
Best Regards
July 19, 2021 at 9:04 am #307486
GunaParticipantIt’s not working try to search using SKU code SD2067 it’s showing No products were found matching your selection.
July 19, 2021 at 10:56 am #307512
Aizaz Imtiaz AwanKeymasterHello,
Please Go to Theme Settings >> Shop and make sure that you have enabled the option “Search by product SKU”.
Screenshot for Clarification: https://gyazo.com/1a289e9e1d42ac5ed379b46b76670fe4
Best Regards
July 19, 2021 at 11:11 am #307513
GunaParticipantIts already enabled but not working please refer screenshot
https://www.thesstudioonline.com/?s=SD2067&post_type=product
Attachments:
You must be logged in to view attached files.July 19, 2021 at 11:43 am #307532
Aizaz Imtiaz AwanKeymasterHello,
Please provide the admin panel login details of the website to check it myself and help you out accordingly.
Regards.
Xtemos StudiosJuly 19, 2021 at 12:50 pm #307553
GunaParticipantPlease check login details sent via Private Content
July 19, 2021 at 12:59 pm #307560
Aizaz Imtiaz AwanKeymasterHello,
It seems to be an issue with the latest WooCommerce version already reported by other themes as well https://github.com/woocommerce/woocommerce/issues/30298 As a workaround, you can edit the file wp-content\plugins\woocommerce\includes\class-wc-query.php and replace the following code
private function product_query_post_clauses( $args, $wp_query ) { $args = $this->price_filter_post_clauses( $args, $wp_query ); $args = $this->filterer->filter_by_attribute_post_clauses( $args, $wp_query, $this->get_layered_nav_chosen_attributes() ); $search = $this->get_main_search_query_sql(); if ( $search ) { $args['where'] .= ' AND ' . $search; } return $args; }
with the following one
private function product_query_post_clauses( $args, $wp_query ) { $args = $this->price_filter_post_clauses( $args, $wp_query ); $args = $this->filterer->filter_by_attribute_post_clauses( $args, $wp_query, $this->get_layered_nav_chosen_attributes() ); return $args; }
Regards.
Xtemos Studios -
AuthorPosts
- You must be logged in to create new topics. Login / Register