victorweb Posted February 23, 2021 Share Posted February 23, 2021 (edited) prestashop version 1.6.1.20 I find this in class/cookie.php line 315 if (!$this->_standalone && !Language::getLanguage((int)$this->id_lang)) { $this->id_lang = Configuration::get('PS_LANG_DEFAULT'); // set detect_language to force going through Tools::setCookieLanguage to figure out browser lang $this->detect_language = true; } i trie in back office : localization>idioms i have (english,spanish) active and others languages inactive in localization>localization i set configuration>language_default to english. My idea is that when entering from a browser with language in Spanish lang = 'es' enter the Spanish language in the front but when entering any other language for example when entering from lang = 'fr' enter the front with English language. And clean cache. i tried this is correct? because when I enter from a browser in Spanish enters the front in English. Edited February 23, 2021 by victorweb (see edit history) 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