Was reading the jqueryui site the other day and came across an interesting tidbit; autocomplete feature is built in. That got me to thinking, why not autocomplete the search box with the products name;
That’s the finished article, and as you can see selects the products name (in the correct language) based on the input of the box.
With some thinking, I was able to write a tiny background script to grab the results of a MySQL search based on the keyword in the input box. It took me a half hour to realise that the autocomplete feature sends $_GET[‘term’] – so watch out for that!
I then added a class to the search input box, and joined the jquery trickery to it;
And here is a video of it in action;
I was going to add it to the add-on’s area of osCommerce, but when I got there I found almost the same thing already made, so I did not bother (as you can plainly see in the image/video that it is made on a clients site meaning I would have to re-do it for a basic 2.3.1). Might as well just use the existing one, unless anyone really really wants my version