Telephone number on the contact form?
My cart doesn't have one.
My cart doesn't have one.
Do you mean when a customer registers an account, you don't want it to be required that they need to give you a telephone number?
If so:
In:
Find:
Replace with:
Then...
In:
Find:
and DELETE it.
Then....
Find:
and DELETE it.
That should do it.
If so:
In:
Code: Select all
catalog/view/theme/YOURTHEME/template/account/create.tpl
Code: Select all
<tr>
<td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
<td><input type="text" name="telephone" value="<?php echo $telephone; ?>" />
<?php if ($error_telephone) { ?>
<span class="error"><?php echo $error_telephone; ?></span>
<?php } ?></td>
</tr>
Code: Select all
<tr>
<td><?php echo $entry_telephone; ?></td>
<td><input type="text" name="telephone" value="<?php echo $telephone; ?>" /></td>
</tr>
In:
Code: Select all
catalog/controller/account/create.php
Code: Select all
if (isset($this->error['telephone'])) {
$this->data['error_telephone'] = $this->error['telephone'];
} else {
$this->data['error_telephone'] = '';
}
Then....
Find:
Code: Select all
if ((strlen(utf8_decode($this->request->post['telephone'])) < 3) || (strlen(utf8_decode($this->request->post['telephone'])) > 32)) {
$this->error['telephone'] = $this->language->get('error_telephone');
}
That should do it.
You forgot to do this for the edit account pages and the guest_step_1 checkout pages
basically repeat those steps for those pages. note your coding might not be exact but just search for TELE and you should find what you need.
basically repeat those steps for those pages. note your coding might not be exact but just search for TELE and you should find what you need.
Hey everyone!
Just thought this might be an easier solution....
http://www.opencart.com/index.php?route ... on_id=6488
It worked for me
even though this thread is like 2-3 years old...
Someone out there maybe looking for this fix too !!
Just thought this might be an easier solution....
http://www.opencart.com/index.php?route ... on_id=6488
It worked for me
even though this thread is like 2-3 years old...
Someone out there maybe looking for this fix too !!
Regards,
Nyte_Ryda
Running Open Cart v1.5.5.1
Also working for me with OpenCart 1.5.6!Nyte_Ryda wrote:Hey everyone!
Just thought this might be an easier solution....
http://www.opencart.com/index.php?route ... on_id=6488
It worked for me
even though this thread is like 2-3 years old...
Someone out there maybe looking for this fix too !!
Thanks a lot to William Jay!
Who is online
Users browsing this forum: No registered users and 115 guests