Post by vuthy2008 » Tue Mar 01, 2011 11:27 pm

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

Newbie

Posts

Joined
Tue Mar 01, 2011 10:50 pm

Post by openmycart.com » Wed Mar 02, 2011 3:44 am

and also You should create the variable in controller file common/header.php e.g.

$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


User avatar
Active Member

Posts

Joined
Tue Oct 12, 2010 4:47 am

Who is online

Users browsing this forum: No registered users and 2 guests