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.
find this file catalog > controller > common > footer.php
find the this line of code
below it add this line of code
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.
find the this line of code
Code: Select all
$this->data['text_information'] = $this->language->get('text_information');
Code: Select all
$this->data['text_garantie'] = $this->language->get('text_garantie');
“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
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot] and 70 guests