Jump to content

Modify the search result page


rob84

Recommended Posts

Hello. Is it possible to modify the search result page when alias is set for adding a text for the misspelled word ?

 

Example:

Alias set: ipdo -> Ipod

 

search for ipdo

Search page result:

 

No product found for ipdo.

Did you mean ipod ?

 

-----------------------

and here the results for ipod

 

I think that the file is search.php and /themes/theme/search.tpl

 

How to modify them ?

Ps: 1.4.7.3

 

Thanks !!

Link to comment
Share on other sites

rob,

As it works now (or should work at least) is that before the search is done, Prestashop checks if there's any word in the search string that is added to the alias list. if there is a word that is mentioned in the alias list, it changes it first.

 

So if you search for 'ipdo', it already changes the search string to 'ipod' BEFORE it searches. This way, you will never have the situation that you describe, as it changed already to the 'do you mean' word...

 

My 2 cents,

pascal

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...