Page 1 of 1

text_register text_login

Posted: Sun Jan 25, 2015 8:49 am
by igor083
how to rename?

Re: text_register text_login

Posted: Sun Jan 25, 2015 9:35 am
by igor083
and i have problem when i click login
show me error Notice: Undefined variable: text_register in /home/vol10_6/byethost17.com/b17_15650583/htdocs/catalog/view/theme/default/template/account/login.tpl on line 27

Re: text_register text_login

Posted: Sun Jan 25, 2015 11:22 am
by fido-x
OK. There are two different questions here.

Add the following code to catalog/language/YOUR_LANGUAGE/common/header.php

Code: Select all

$_['text_register']      = 'Register';
$_['text_login']         = 'Login';
In your case, the words "Register" and "Login" would be replaced by your own language's words.

The "text_register" variable should be defined in the controller (catalog/controller/account/login.php). It would appear from the error that it isn't.

Insert the following:

Code: Select all

$data['text_register'] = $this->language->get('text_register');
somewhere around line 108.

Re: text_register text_login

Posted: Mon Jan 26, 2015 4:24 am
by igor083
thank you