Home Forums WoodMart support forum Ajax Live Search on 2 Characters

Ajax Live Search on 2 Characters

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

    xristoskon19
    Participant

    I have a search button at the top menu , with ajax live search enabled , but i want to trigger live search on 2 characters.
    I have tried :

    add_filter( ‘woodmart_ajax_search_symbols_count’, function (){
    return 2;
    } );

    but it is not working

    #533230

    Hung Pham
    Participant

    Hi xristoskon19,

    Thanks for reaching to us.

    Please remove your code and try to add the following PHP code snippet to the child theme functions.php file to fix this

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

    Regards

    Regards,

    #533294

    xristoskon19
    Participant

    but thats the same ?
    i tried “your” code and it doesnt work

    #533330

    Hung Pham
    Participant

    Hi xristoskon19,

    To assist you in the best possible manner, I kindly ask that you provide me temporary wp-admin info (wp-admin URL, username, password) to Private Content area, this will allow me to thoroughly investigate and address your concerns in a more efficient.

    Regards,

    #533473

    xristoskon19
    Participant

    attached

    #533556

    Hung Pham
    Participant

    Hi xristoskon19,

    This is PHP Custom Code, which should be added to functions.php instead of style.css file. https://prnt.sc/Ax44vL1rftFu

    Please check again.

    Regards,

    #533594

    xristoskon19
    Participant

    :@ im embarassed , thanks

    #533603

    Hung Pham
    Participant

    Hi xristoskon19,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    If you have a quick minute we always appreciate a 5-star rating on our theme!

    https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492

    Your feedback is the motivation to improve our work and services.

    Regards,

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