Home Forums WoodMart support forum Start ajax search after typing 2 caracters in the search bar

Start ajax search after typing 2 caracters in the search bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #236846

    ondigitalmarketing
    Participant

    Three characters are required to start the ajax search. Many product types are only 2 characters for a webshop I am working on. How could I start the ajax search after typing 2 characters.

    #236880

    Hello,

    Unfortunately, Wooocommerce does not have this option. WoodMart search is based on Woocommerce search with light customization. Please try to find a plugin.

    Best Regards

    #236956

    Hello,

    We have double checked and our dev team provided a solution for your issue: please add this code to the fundtions.php of the child theme:

    add_filter( 'woodmart_ajax_search_symbols_count', function (){
    	return 2;
    } );

    Best Regards

    #236973

    ondigitalmarketing
    Participant

    Thanks!

    #237001

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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