prestaprova Posted April 24 Share Posted April 24 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 More sharing options...
Prestashop Addict Posted April 24 Share Posted April 24 Hi, ps_search module use the search PS native feature. As I know these is no language filter for search 😞 Link to comment Share on other sites More sharing options...
prestaprova Posted April 24 Author Share Posted April 24 thank you. you mean the modue is blocksearch? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted April 25 Share Posted April 25 Il y a 16 heures, prestaprova a dit : thank you. you mean the modue is blocksearch? Native search module is ps_searchbar. But you can have a specific module added or embed with your theme. Link to comment Share on other sites More sharing options...
prestaprova Posted April 29 Author Share Posted April 29 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 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