Ivo R Posted April 4, 2019 Share Posted April 4, 2019 Hi, I noticed that in version 1.7.5.* when you call Context::getContext()->language object is returning the context language of the logged in user and not the context language of the selected shop. Example: I have a multi-store with the following Shops: United Kindom with language EN, France with language FR. As a User, in my profile the language is set to EN When I select the context UK Shop the context object is returning the correct data Context::getContext()->shop->id & Context::getContext()->language->id When I switch to the FR Shop, the shop context object Context::getContext()->shop->id returns the FR shop which is correct, BUT when I call Context::getContext()->language->id it doesn't returns the FR language id which is set up for the shop but returns the language id which is setup in the logged user profile language settings. When I change the profile language settings to FR, then the language context return the FR lang. Is this a bug ? Is it possible to SET a context ? 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