josecar Posted November 20, 2012 Share Posted November 20, 2012 (edited) Hello, I've got a problem someone solved in this forum, but up to version 1.4.7, I need advice on how to do the same in presta 1.5 my setup is: prestashop 1.5 as multistore with: -presta 1.5 shop on domain.es -->only in spanish -presta 1.5 shop on domain.com ->only in english I set the language selector to redirect the customer to each shop, wich should be totally independent at customer and orders level, but cookies get in the way and generate weird behaviors with the language and the shop operation. So, how do I set the language in the cookies by domain, and not by cookies? The solution posted here to my problem in presta 1.4 involved editing the file FrontController.php after line 116, switchLanguage(), but I cant find it in presta 1.5: if ($_SERVER['SERVER_NAME'] == "psybackdrops.com" OR $_SERVER['SERVER_NAME'] == "www.psybackdrops.com") $cookie->id_lang = 1; elseif ($_SERVER['SERVER_NAME'] == "psybackdrops.se" OR $_SERVER['SERVER_NAME'] == "www.psybackdrops.se") $cookie->id_lang = 4; Help would be very appreciated! Edited November 20, 2012 by josecar (see edit history) Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted November 20, 2012 Share Posted November 20, 2012 you could just do this: back office-->localization-->localization select the shop you want to work with set the default language for that shop.... Link to comment Share on other sites More sharing options...
josecar Posted November 21, 2012 Author Share Posted November 21, 2012 (edited) thats what we had configured beforehand. But now things seem to be ok, so maybe we were messing with old cookies, caches and users, because the problem seems to be gone. thank you anyway, patrón. Edited November 21, 2012 by josecar (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts