Home Forums WoodMart support forum Problem with search form after update theme

Problem with search form after update theme

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #387121

    lesny
    Participant

    Hi,
    after the last Woodmart update I had a problem with the search engine.
    Previously, it searched only for products by names, and now it also searches in descriptions. How to go back to the old method?
    Of course, in the header builder in the search engine, I have “product” set.

    Regards

    #387214

    Hello,

    Please provide the URL of the website to check it myself and help you out accordingly.

    Best Regards

    #387227

    lesny
    Participant
    #387228

    lesny
    Participant

    It would be a good solution for me to show recommended products first in the list in the search.

    Regards

    #387474

    Hello,

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

    Best Regards

    #387479

    lesny
    Participant

    Ok, sent.

    #387525

    Hello,

    Please deactivate all the third party plugins then check back. If the problem still continues then leave all the third party plugins deactivated and tell me then we will troubleshoot with the theme plugins.

    Best Regards

    #387528

    lesny
    Participant

    OK my master:)

    #387712

    Hello,

    The login details you provided are not working. Please provide the correct login details to let me assist you further.

    Best Regards

    #387727

    lesny
    Participant

    Try now:)

    #387819

    Hello,

    All the third party plugins are still activated on your website. Please deactivate all the third party plugins and tell me then we will troubleshoot with the theme plugins.

    Best Regards

    #391793

    lesny
    Participant

    I fixed the problem with the php function:

    add_filter( ‘posts_where’, ‘gc_posts_where’, 10, 2 );
    function gc_posts_where( $where, $wp_query )
    {
    global $wpdb;
    if ( $title = $wp_query->get( ‘s’ ) ) {
    $where .= ” AND ” . $wpdb->posts . “.post_title LIKE ‘%” . esc_sql( $wpdb->esc_like( $title ) ) . “%'”;
    }
    return $where;
    }

    #391960

    Hello,

    We are Glad that your issue has been Resolved.

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

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

The topic ‘Problem with search form after update theme’ is closed to new replies.