Jump to content

Improved search function with misspelling function


Rami Najmi

Recommended Posts

Hello everyonr

 

I am looking for a module or a solution that helps customer find what they are searching for on a shop.

 

It means if they make a minor misspelling in the search term, then it should still show related results.

 

If there isn't a module that have these functions, then I am searching for a solution that makes so the search function only reads the first 3 characters of the search term.

 

Any ideas?

 

//Rami

Link to comment
Share on other sites

In Prestashop there are aliases, you can set up an alias for a specific phrase, but you need to know the actual misspelling up front. If you have a few common and frequent misspellings in your shop this can be enough.

 

To limit the search phrase to 3 characters you would need to make some changes to the find() function in Search class, for example add at the very beginning:

$expr = substr($expr, 0, 3);

If you want to enhance the search further, to include CMS pages, check out the Smart CMS Search Module.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...