Jump to content

wrong search liston multilingual site


Recommended Posts

I own a site in italian based on prestashop 1.6 . I translated it in german,
and i'm testing it.
If i set german as a language, and input on the search box an italian
word, in the result list i find items which are related to the italian word

I want to avoid such a behaviour. how could do that.
Anyay, in which prestashop module is implemented the search?

Link to comment
Share on other sites

I've modified  in the class search.php

And it works

 

$eligible_products = array();

foreach ($results as $row)

{

$eligible_products[] = $row['id_product'];

  }

TO

 

$eligible_products = array();

 foreach ($results as $row) {

 

        if ($id_lang == 3)

        {

        switch ($row['id_product'])

        {

            //Led a tubetto

            case 201:

            case 202:

            case 203:

           

            //Display a led

            case 154:

            case 155:

            case 157:

            case 160:

 

            break;

            default:

            $eligible_products[] = $row['id_product'];

        }

        }

        else

        {

            $eligible_products[] = $row['id_product'];

 

        }


 

 

 

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