Page 1 of 1

TypeAhead Script - Reloaded

Posted: Mon May 12, 2025 10:52 am
by burt
gree.png
I've made a new TypeAhead script that searches the following fields for the inputted term;

product_name
products_model
products_description
products_seo_title
products_seo_description
products_seo_title

As you can see, a TypeAhead script solely to find Product Matches.

More details to follow, it is in Alpha testing at this point.

Re: TypeAhead Script - Reloaded

Posted: Mon May 12, 2025 3:25 pm
by burt
Works and looks just as good on pre BS5 versions!

This is tested on v1.0.8.21;

ta-10821.png

So, if you're not yet on Bootstrap 5 you can still get in on the action, using it "now" and having it future proofed if you do uprate your Phoenix sometime in the future.

I haven't tested it on anything older than v1.0.8.21 - just let me know which version you are on and I can test it.
The greater the range of Phoenix's this can be used on, the better.

Re: TypeAhead Script - Reloaded

Posted: Tue May 13, 2025 10:13 am
by mhsuffolk
Request.
Could you add search of info pages as a feature or option.
I use this in the original Type Ahead as I have many pages of old DVDs listed that do not have their own product page. The results screen just displays an icon thus.
Typeahead.JPG

Re: TypeAhead Script - Reloaded

Posted: Tue May 13, 2025 4:16 pm
by burt
I can't see a reason why not.
We need a beer "smilie".

Re: TypeAhead Script - Reloaded

Posted: Thu May 15, 2025 10:04 pm
by burt
First feedbacks, all of which are very useful, TY guys;
IMO including the description clutters the search result list, however searching in description is very desirable.
option to not display the description (Keeps it cleaner on small devices)
option not to search product description (Cleaner search results for shops with lots of product)
option not to search Privacy, shipping etc
Would be nice if it highlighted the key word that was searched in the term and ordered it by most relevant.

Re: TypeAhead Script - Reloaded

Posted: Fri May 16, 2025 8:56 am
by burt
https://youtu.be/Ci-_67eKABE

Need more people involved to progress this!

Re: TypeAhead Script - Reloaded

Posted: Sat May 17, 2025 8:55 am
by burt
I have just sent v5 of this out to the guys mentioned in this thread.
Any feedback via PM would be golden, thank you.

Changes in this version include;

1a. ability to search categories
1b. ability to turn category searching off/on
2. ability to turn page searching off/on
3. ability to search selected product rows (eg search only name, search name and model etc etc)
4. keyword highlighting in results

Re: TypeAhead Script - Reloaded

Posted: Mon May 19, 2025 8:52 am
by burt
First feedback on v5 is received...
Always show the highlighted search term in the "description" no matter where it is. At the moment it just shows the first 15 words, when the searched term might not be in the first 15.
Updated codebase now displays this (note that I added the word "position" at the start of 1 product, the end of another and somewhere in the middle of another).

feedback-1.png

Re: TypeAhead Script - Reloaded

Posted: Thu Jun 12, 2025 11:40 am
by burt
Lite Version, in the Code Co-op:

viewtopic.php?f=28&t=2850