I would like change the login form, where do I do this and would this cause any problems? I looked in administration but didn't see any option for this.
Not Mandatory
Telephone
Make Mandatory
Post code
Thanks
Not Mandatory
Telephone
Make Mandatory
Post code
Thanks
Last edited by Jacob on Tue Dec 23, 2008 3:07 am, edited 1 time in total.
Running v1.5.5.1
Assume by login you mean "account_create"
EDIT: catalog/controller/account_create.php
FIND (Line 188):
REPLACE WITH:
EDIT: catalog/langauge/english/controller/account_create.php
FIND:
REPLACE WITH:
EDIT: catalog/template/default/content/account_create.tpl
FIND:
REPLACE WITH:
FIND:
REPLACE WITH:
EDIT: catalog/controller/account_create.php
FIND (Line 188):
Code: Select all
if ((strlen($request->gethtml('telephone', 'post')) < 3) || (strlen($request->gethtml('telephone', 'post')) > 32)) {
$this->error['telephone'] = $language->get('error_telephone');
}
Code: Select all
if ((strlen($request->gethtml('[color=red]postcode[/color]', 'post')) < 3) || (strlen($request->gethtml('[color=red]postcode[/color]', 'post')) > [color=red]10[/color])) {
$this->error['[color=red]postcode[/color]'] = $language->get('error_[color=red]postcode[/color]');
}
EDIT: catalog/langauge/english/controller/account_create.php
FIND:
Code: Select all
$_['error_telephone'] = '* Telephone must be greater than 3 and less than 32 characters!';
Code: Select all
$_['error_[color=red]postcode[/color]'] = '* [color=red]Postcode[/color] must be at least 3 and less than 10 characters!';
EDIT: catalog/template/default/content/account_create.tpl
FIND:
Code: Select all
<td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
Code: Select all
<td><?php echo $entry_telephone; ?></td>
Code: Select all
<td><?php echo $entry_postcode; ?></td>
Code: Select all
<td><span class="required">*</span> <?php echo $entry_postcode; ?></td>
Qphoria
Your guide explains how to edit account_creating. So to keep continuity throughout the site I would also need to edit:
account_address
account_edit
checkout_address
in these files:
catalog/controller/file_name.php
catalog/langauge/english/controller/file_name.php
catalog/template/default/content/file_name.tpl
If that is correct then maybe I could post the edits I do to be checked over?
Your guide explains how to edit account_creating. So to keep continuity throughout the site I would also need to edit:
account_address
account_edit
checkout_address
in these files:
catalog/controller/file_name.php
catalog/langauge/english/controller/file_name.php
catalog/template/default/content/file_name.tpl
If that is correct then maybe I could post the edits I do to be checked over?
Running v1.5.5.1
account_edit yesJacob wrote: Qphoria
Your guide explains how to edit account_creating. So to keep continuity throughout the site I would also need to edit:
account_address
account_edit
checkout_address
but account_address and checkout_address don't have validation on phone, unless you just want to add validation on postcode, then yes
I have done no further edits other than the first guided edit. I tried to create a new account using different details and got message:
'If you already have an account with us, please login at the login page.'
'If you already have an account with us, please login at the login page.'
Last edited by Jacob on Wed Dec 24, 2008 3:10 am, edited 1 time in total.
Running v1.5.5.1
Actually what am I talking about? I tried to get rid of:
City
Country
Company
fax
region/state
Please see attachments for my edits.
City
Country
Company
fax
region/state
Please see attachments for my edits.
Attachments
Running v1.5.5.1
Who is online
Users browsing this forum: No registered users and 3 guests