This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

How to set a "typing delay" before presenting search results

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to set a "typing delay" before presenting search results

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #30540
    pk34pk34
    Participant

    Hello,

    I would like to know where / if I can set a delay in seconds or milliseconds to wait for the user to type its search criterias before presenting results.
    On mobile devices it is very annoying because we loose focus on the text input field and it leads to wrong results clicking etc …

    For example on my site a user wants to entry this seach : technics sx kn 1500

    He does not have the time to enter fully his search characters and gets interrupted and it is very annoying,
    from the search results / stats I see he generated searches equal to :
    tech
    technics
    technics sx
    technics sx kn 1
    technics sx kn 15

    Your plugin absolutely ROCKS ! and I would like to differ a little bit and let the user to have some time to type before submitting search results ….
    I’ve searched your FAQ for delay option or things like that but have not found a result.

    • This topic was modified 5 years, 5 months ago by pk34pk34.
    • This topic was modified 5 years, 5 months ago by pk34pk34.
    #30541
    pk34pk34
    Participant

    Forgot to mention :

    The “problem” is only present when typing searches on mobile devices as you don’t loose focus on the searchfield on desktop computers ….

    The problem is particularly annoying when the visitor is a “slow typer”

    • This reply was modified 5 years, 5 months ago by pk34pk34.
    • This reply was modified 5 years, 5 months ago by pk34pk34.
    #30546
    pk34pk34
    Participant

    I would also like to know if it is possible to have the search results which are coming from woocommerce products
    appearing in either “the most popular/most sold product” or “the highest price products first …”

    #30549
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for your kind words!

    There is actually a 300ms delay hard coded for the input triggers. It is not possible to change, but there are few options you can change to make the mobile experience better.
    First, I recommend checking if this option is turned off. By default it should be, so the mobile keyboard should not show when the search stops. Some devices (mostly Apple IOS) still also have an automatic keyboard control, which cannot be altered. It changes frequently, so I cannot tell for sure which ones do that. An even better practice in my opninion is, to completely turn off the live search on typing on mobile devices, and allow the mobile keyboard “magnifier” button (return key equivalent) to trigger the search: https://i.imgur.com/h09DGTv.png

    To sort the products by rating, sales number (popularity) or the price, you can use the custom field based ordering, and use one of the following fields there:

    total_sales
    _wc_average_rating
    _price

    For example, sorting by price ascending: https://i.imgur.com/4OBdhS2.png

    #30553
    pk34pk34
    Participant

    You cannot access this content.

    #30554
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #30557
    pk34pk34
    Participant

    You cannot access this content.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to set a "typing delay" before presenting search results’ is closed to new replies.