Jump to content

Prestashop 1.6 : Internal Search Problem, Aliases List Not Working


Recommended Posts

I use Prestashop version 1.6.

I have a problem in the search preference section,
in the "Aliases list" feature, I try to use words with spaces. We have inputted and we did an index, but after we tried to do a search, the results displayed were not what we wanted.
The following is a screenshot of the problem I experienced.
Is it because I use spaces in the alias word?


hopefully friends in this forum can help me.

regards,

Khoerul Amri.

Aliases List configuration.png

search result roda gendeng.png

search result for flywheel.png

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Try to open classes/Search.php

At line 127 change:

$words = explode(' ', $string);

To:

$words = array($string);

 

After that, you will be able to search through alias with space. 

Of course, if you can, please make changes in override/classes/Search.php

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More