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:

  1. header.tpl on /catalog/view/theme/yourthemefolder/template/common
  2. header.php on /catalog/language/english , /catalog/language/yourlanguage
  3. 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

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -