Hi everyone,
i am very new about opencart. In default menu I saw there are :
Home, Log In, Account, Basket , CheckOut.
Example for Home item menu I saw the english language 'Home' text store in $_['text_home'] and it was call the
variable $text_home in template/common/header.tpl
So if I wanna create one more item menu let's say My Profile how can I use variable to store it's text ?
I had try $_['text_myprofile'] = 'My Profile'; and then I call $text_myprofile; It does not work as $text_home.
anyone can help me please?
Regards,
Vuthy
and also You should create the variable in controller file common/header.php e.g.
$this->data['text_myprofile'] = $this->language->get('text_myprofile');
$this->data['text_myprofile'] = $this->language->get('text_myprofile');
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here
Who is online
Users browsing this forum: No registered users and 2 guests