Home Forums WoodMart support forum Latest Version doesn’t allow me to search blank “” field

Latest Version doesn’t allow me to search blank “” field

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #424394

    Atif Arshad
    Participant

    Hello,
    The previous versions of woodmart allowed Blank searches on the search field. Now it asks for the user to fill in the field. How do I make it search blank field where it just shows all the products if no category is selected in the search bar or show the products in that specific category that was selected during the search.

    Regards,
    Atif Arshad

    #424604

    Atif Arshad
    Participant

    Hello,
    I am still waiting for a response from you guys. I see that the support team is responding to tickets that were submitted a few minutes ago but I have been waiting since yesterday. It is a bit urgent so I hope you can respond soon.
    Thanks.

    #424609

    Hello,

    Sorry to hear about the inconvenience.

    We have confirmed from the Development Team, the functionality of the Search Form has been changed to fill-out the field as mandatory to be in-accordance with the WooCommerce functionality because this is how the default WooCommerce Search form works.

    But for your ease and convenience, they have confirmed that in the upcoming Theme Updates they will add an ability to revert back to the previous state, like you mentioned.

    So, for the time being please get along with this new functionality and in the upcoming Theme Updates, you will get the functionality that you mentioned.

    We appreciate your patience, understanding & cooperation in this regard.

    Best Regards

    #424630

    Atif Arshad
    Participant

    Thank you for your response. Actually, It is one of my client’s requirements. Is there no way to revert back through some custom code?

    #424709

    Artem Temos
    Keymaster

    Try to edit the file wp-content/themes/woodmart/inc/modules/search.php and replace the following line

    <input type="text" class="s" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php echo get_search_query(); ?>" name="s" aria-label="<?php esc_html_e( 'Search', 'woodmart' ); ?>" title="<?php echo esc_attr( $placeholder ); ?>" required/>

    with this one

    <input type="text" class="s" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php echo get_search_query(); ?>" name="s" aria-label="<?php esc_html_e( 'Search', 'woodmart' ); ?>" title="<?php echo esc_attr( $placeholder ); ?>"/>

    Kind Regards

    #424753

    Atif Arshad
    Participant

    Thanks, It worked. I really appreciate it.

    #424771

    Artem Temos
    Keymaster

    You are welcome! Feel free to contact us if you have any further questions.

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

The topic ‘Latest Version doesn’t allow me to search blank “” field’ is closed to new replies.