I'm guessing that there's an IF statement in there that says IF address is valid, continue checkout ELSE display error message END IF. If that's the case, then all I need to do is to copy the first part of the statement over the second part of the statement so that in each case the checkout process continues. I have found IF statements in the appropriate file, but I'm not confident enough that I have the right one. Can anyone advise me?
I searched the forum before posting this thread but didn't find an answer.
private function validate()
then commenting the email validation only.
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here
catalog\controller\checkout\guest_step_1.php
catalog\controller\account\create.php
catalog\controller\account\edit.php
find:
Code: Select all
private function validate() {
Code: Select all
if ((strlen(utf8_decode($this->request->post['email'])) > 96) || (!preg_match(EMAIL_PATTERN, $this->request->post['email']))) {
$this->error['email'] = $this->language->get('error_email');
}
Code: Select all
if (!preg_match(EMAIL_PATTERN, $this->request->post['email'])) {
$this->error['email'] = $this->language->get('error_email');
}
Code: Select all
/* if ((strlen(utf8_decode($this->request->post['email'])) > 96) || (!preg_match(EMAIL_PATTERN, $this->request->post['email']))) {
$this->error['email'] = $this->language->get('error_email');
}*/
Code: Select all
/* if (!preg_match(EMAIL_PATTERN, $this->request->post['email'])) {
$this->error['email'] = $this->language->get('error_email');
} */
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here
to complete it You also should open:Purebeads wrote:Thank you so much! I appreciate it!
I gather that there are no ENDIF statements in PHP, so I don't have to worry about removing them to balance out the IF statements.
catalog\controller\checkout\guest_step_1.php
catalog\controller\account\create.php
catalog\controller\account\edit.php
Code: Select all
if (isset($this->error['email'])) {
$this->data['error_email'] = $this->error['email'];
} else {
$this->data['error_email'] = '';
}
Code: Select all
/* if (isset($this->error['email'])) {
$this->data['error_email'] = $this->error['email'];
} else {
$this->data['error_email'] = '';
} */
catalog\view\theme\YOUR_THEME\template\account\create.tpl
catalog\view\theme\YOUR_THEME\template\account\edit.tpl
catalog\view\theme\YOUR_THEME\template\checkout\guest_step_1.tpl
Find:
Code: Select all
<?php if ($error_email) { ?>
<span class="error"><?php echo $error_email; ?></span>
<?php } ?>
Code: Select all
<?php //if ($error_email) { ?>
<!--span class="error"><?php //echo $error_email; ?></span-->
<?php //} ?>
Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here
It seems to me that there should be a way to simply direct the program away from the command that initiates the validation routine -- you know, something that just tells the program to skip over it. But I see that it is much more complicated than that.
So far, only one customer has made the mistake of typing a zero in the .com part of her email address, so obviously it doesn't happen too often.
Openmycart, I appreciate all the trouble you went to. This thread will be useful to other people who want to disable email validation.
Many Store Owners are complaining because fake customers are creating fake email addresses and buying a bunch of products that probably will not be delivered once the client doesn't pay for them.
So store owners are looking for email-validation or email-confirmation so that at least they know is coming from a real email address.
respects.
It's not for you to dismiss the needs of other merchants. The items I sell are not attractive to thieves. For 7 years before I installed OpenCart on my site, my shopping cart had no email verification, and I had no problems. Such things as email validation, or requiring a customer to type at least 3 letters into every field, simply cause problems for me.rocketero wrote:I found this thread a bit silly,
Many Store Owners are complaining because fake customers are creating fake email addresses and buying a bunch of products that probably will not be delivered once the client doesn't pay for them.
So store owners are looking for email-validation or email-confirmation so that at least they know is coming from a real email address.
respects.
I have been searching for a while about:
Email-Validation VS. Email-Confirmation
Email Validation has been covered pretty much in all the angles, when having foreign-characters in the email address or because the domain name is too long or other varieties of problems have already been resolved.
But about Email-Confirmation there is not much out here. When one create an account at the store, can use any fake email addresses and fake domain names. then purchase 100 items and make a mess for the administrator without the store-owner even been able to send an email back to the perpetrator, and other havoc that this bad fake-customer is able to perform on the store.
Is there any way to change the files responsible for email-validation to do also email-confirmation on the newly signed customers?
Buy Maplestory Mesos Cheap Maplestory Mesos Buy RS Gold Runescape Gold
Users browsing this forum: No registered users and 123 guests