Post by gerrymax » Tue Sep 25, 2012 3:52 am

Hello,

I want to add a new value (variable) for my bilingual site (French / English)

I went in /catalog/language/english AND in /catalog/language/french to add in the file the new value I need. I gave it a new name.

Then I called the new value un my footer.tpl like this (I copied an existing one)

<h3><span><?phphecho $text_garantie; ?></span></h3>

My new value is Garantie....

But it gives an error as follows : Notice: Undefined variable: text_garantie in /home/h00103/domains/novostyl.com/public_html/OPENCART/catalog/view/theme/fashionstreet/template/common/footer.tpl on line 16

Where should I add it ? Elsewhere ? I have look in the database but could not find anything...

Thanks a lot for your answer !!! I appreciate it.

OpenCart version : 1.5.4.1
Template - Theme used : fashionstreet


New member

Posts

Joined
Sat Sep 08, 2012 2:51 am

Post by dirtboy » Tue Sep 25, 2012 5:35 am

find this file catalog > controller > common > footer.php

find the this line of code

Code: Select all

$this->data['text_information'] = $this->language->get('text_information');
below it add this line of code

Code: Select all

$this->data['text_garantie'] = $this->language->get('text_garantie');
you are receiving the undefined error because OC doesn't know what the new text is until you tell it what it is. Honestly i am not sure if this code has to be someplace specific in the controller, if this does not work then find the line similar to the one above that is above the new line you are adding.

“Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.”
- Henry Ford


User avatar
Active Member

Posts

Joined
Wed Mar 07, 2012 3:04 pm

Post by gerrymax » Wed Sep 26, 2012 1:00 am

Thank you so much dirtboy !!

It works !

Have a great day :)

OpenCart version : 1.5.4.1
Template - Theme used : fashionstreet


New member

Posts

Joined
Sat Sep 08, 2012 2:51 am
Who is online

Users browsing this forum: Amazon [Bot], Google [Bot] and 70 guests