In opencart v2.2.0.0 with 2 admin languages, i would like to add a new css file with few override css changes that will affect only one language.
I tried with the following code in header.tpl:
Code: Select all
<?php if ($this->config->get('config_language') == 'es-es') { ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/es.css" />
<?php } ?
Thanks for your help.Notice: Undefined property: Template\Basic::$config in /home/xxx/public_html/new/admin/view/template/common/header.tpl on line 24
Fatal error: Call to a member function get() on a non-object in /home/xxx/public_html/new/admin/view/template/common/header.tpl on line 24