Ravingmad Posted April 1, 2017 Share Posted April 1, 2017 (edited) Hello,I saw this tutorial about changing the default currency using a popup. I bought the module and I'm now trying to change the code to change the default language instead.Could someone help me modify the code to adapt it to my need? Thanks. Edited April 1, 2017 by Ravingmad (see edit history) Link to comment Share on other sites More sharing options...
Ravingmad Posted April 2, 2017 Author Share Posted April 2, 2017 Sadly that code isn't working. Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted April 4, 2017 Share Posted April 4, 2017 Hi...you can use the context object the get the current langauge $this->context = Context::getContext(); $id_lang = $this->context->language->id; Thanks 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