D
D
Dmitry Anatolyevich2020-09-13 17:31:06
opencart
Dmitry Anatolyevich, 2020-09-13 17:31:06

How to display the current selected language by the user in the OpenCart module?

Good afternoon. Please tell me how to display the current installed client language in LiqPay modules from OpenCart 2.3.

$xml  = '<request>';
    $xml .= '	<order_id>' . $this->session->data['order_id'] . '</order_id>';
    $xml .= '	<language>'. '$$$' .'</language>';

I need it to be displayed instead of $$$
- 'en' if the language is set to English
and 'ru' - if the language is set to Russian

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VVCh, 2020-09-13
@VVCh

$this->session->data['language']
$this->config->get['config_language']
But not only
$this->language->get('code')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question