Rami Najmi Posted May 3, 2016 Share Posted May 3, 2016 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 More sharing options...
Daresh Posted May 3, 2016 Share Posted May 3, 2016 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 More sharing options...
Rami Najmi Posted May 4, 2016 Author Share Posted May 4, 2016 Daresh, thank you very much. Your solution worked like a charm, but after seeing your module, I am considering buying it. Thank you, have a nice day. 1 Link to comment Share on other sites More sharing options...
Daresh Posted May 4, 2016 Share Posted May 4, 2016 Great, go ahead! :-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now