This just gets the current language:
Code: Select all
(int)$this->config->get('config_language_id');
Anyone know?

Thanks!
opencart 3.0.1.2
Code: Select all
(int)$this->config->get('config_language_id');
Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations
Code: Select all
$this->model_localisation_language->getLanguages();
Code: Select all
$this->request->cookie['language'];
Code: Select all
$this->config->get('config_language_id');
Code: Select all
$this->session->data['language'];
Code: Select all
$this->config->get('config_language');
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Users browsing this forum: avsrthe and 11 guests