TypeAhead Script - Reloaded

Open to all! Ask other shopowners for help.
Post Reply
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

TypeAhead Script - Reloaded

Post 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.
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: TypeAhead Script - Reloaded

Post 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.
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Has thanked: 12 times
Been thanked: 11 times

Re: TypeAhead Script - Reloaded

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: TypeAhead Script - Reloaded

Post by burt »

I can't see a reason why not.
We need a beer "smilie".
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: TypeAhead Script - Reloaded

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: TypeAhead Script - Reloaded

Post by burt »

https://youtu.be/Ci-_67eKABE

Need more people involved to progress this!
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: TypeAhead Script - Reloaded

Post 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
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: TypeAhead Script - Reloaded

Post 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
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: TypeAhead Script - Reloaded

Post by burt »

Lite Version, in the Code Co-op:

viewtopic.php?f=28&t=2850
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply