Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › How to set a "typing delay" before presenting search results
- This topic has 6 replies, 2 voices, and was last updated 5 years, 5 months ago by
pk34.
-
AuthorPosts
-
December 8, 2020 at 11:34 am #30540
pk34
ParticipantHello,
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 15Your 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.December 8, 2020 at 11:36 am #30541pk34
ParticipantForgot 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”
December 8, 2020 at 11:46 am #30546pk34
ParticipantI 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 …”December 8, 2020 at 1:27 pm #30549Ernest Marcinko
KeymasterHi,
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.pngTo 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 _priceFor example, sorting by price ascending: https://i.imgur.com/4OBdhS2.png
December 8, 2020 at 2:23 pm #30553pk34
ParticipantYou cannot access this content.
December 8, 2020 at 2:24 pm #30554Ernest Marcinko
KeymasterYou cannot access this content.
December 8, 2020 at 2:40 pm #30557pk34
ParticipantYou cannot access this content.
-
AuthorPosts
- The topic ‘How to set a "typing delay" before presenting search results’ is closed to new replies.