Home Forums WoodMart support forum Search results not appear after hitting the enter key

Search results not appear after hitting the enter key

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

    Guna
    Participant

    Can 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.
    #307475

    Hello,

    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

    #307486

    Guna
    Participant

    It’s not working try to search using SKU code SD2067 it’s showing No products were found matching your selection.

    #307512

    Hello,

    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

    #307513

    Guna
    Participant

    Its 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.
    #307532

    Hello,

    Please provide the admin panel login details of the website to check it myself and help you out accordingly.

    Regards.
    Xtemos Studios

    #307553

    Guna
    Participant

    Please check login details sent via Private Content

    #307560

    Hello,

    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

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