Menu Button OpenCart php -
i have tried add custom menu button in 2 different languages
i use default template
i have edited these files inside opencart main folder:
- header.tpl on /catalog/view/theme/yourthemefolder/template/common
- header.php on /catalog/language/english , /catalog/language/yourlanguage
- header.php on /catalog/controller/common
and added these lines
1
<li><a href="http://xxxxxxxx/shop/index.php?route=product/manufacturer"><?php echo $new_gamintojai; ?></a></li>
2
$_['new_gamintojai'] = 'brands';
3
$this->data['new_gamintojai'] = $this->language->get('new_gamintojai');
i can click on button, there no text. how can fix this?
okey have figured out myself.
have changed line :
$this->data['new_gamintojai'] = $this->language->get('new_gamintojai');
to
$data['new_gamintojai'] = $this->language->get('new_gamintojai');
Comments
Post a Comment