I've seen this on other sites - where people are asked to put their email down twice, and if the email doesn't have the correct format (such as .cm instead of .com) it tells the person (politely) to fix it.
I've hunted for extensions on "email verification" or "email check" but all I find are ones that send a verification email to you and you then click on it in your email program. While this is the best way to verify that an email is more or less correct, it doesn't help folks that can barely use a computer as a number of my clients (and yours too I'm sure) don't want the hassle and just go looking elsewhere.
So, I'm looking for a basic email checker that doesn't send the buyer off the checkout page and require them to figure out what is needed to just complete the friggin' order!
I've had a few people provide emails that are invalid (usually a typo) and want to avoid loosing their business...
Thanks!
John :-#)#
I've hunted for extensions on "email verification" or "email check" but all I find are ones that send a verification email to you and you then click on it in your email program. While this is the best way to verify that an email is more or less correct, it doesn't help folks that can barely use a computer as a number of my clients (and yours too I'm sure) don't want the hassle and just go looking elsewhere.
So, I'm looking for a basic email checker that doesn't send the buyer off the checkout page and require them to figure out what is needed to just complete the friggin' order!
I've had a few people provide emails that are invalid (usually a typo) and want to avoid loosing their business...
Thanks!
John :-#)#
jrr wrote: ↑Wed Sep 10, 2025 1:59 amI've seen this on other sites - where people are asked to put their email down twice, and if the email doesn't have the correct format (such as .cm instead of .com) it tells the person (politely) to fix it.
I've hunted for extensions on "email verification" or "email check" but all I find are ones that send a verification email to you and you then click on it in your email program. While this is the best way to verify that an email is more or less correct, it doesn't help folks that can barely use a computer as a number of my clients (and yours too I'm sure) don't want the hassle and just go looking elsewhere.
So, I'm looking for a basic email checker that doesn't send the buyer off the checkout page and require them to figure out what is needed to just complete the friggin' order!
I've had a few people provide emails that are invalid (usually a typo) and want to avoid loosing their business...
Thanks!
John :-#)#
Code: Select all
// validate email address
if (!empty($this->request->post['email'])) {
if (!filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {
$this->error['email'] = $this->language->get('error_email');
} else {
// check email domain
$emailArray = explode('@', $this->request->post['email']);
if (!checkdnsrr($emailArray[1], "MX"))
$this->error['email'] = $this->language->get('error_email');
}
} else {
$this->error['email'] = $this->language->get('error_email');
}
Thank you for the script, but where do I add it to? Need a little more guidance here.
I've hunted a bit in /catalog/controller/checkout/ but haven't found any obvious place to insert this script.
I think for this modification I should create a small extension so it isn't wiped out if/when I upgrade OC again...
Thanks!
I've hunted a bit in /catalog/controller/checkout/ but haven't found any obvious place to insert this script.
I think for this modification I should create a small extension so it isn't wiped out if/when I upgrade OC again...
Thanks!
Email validation is done in two files for the default checkout:jrr wrote: ↑Sat Sep 13, 2025 11:18 pmThank you for the script, but where do I add it to? Need a little more guidance here.
I've hunted a bit in /catalog/controller/checkout/ but haven't found any obvious place to insert this script.
I think for this modification I should create a small extension so it isn't wiped out if/when I upgrade OC again...
Thanks!
1. catalog/controller/checkout/guest.php
2. catalog/controller/checkout/register.php
You might also want to consider adding the email validation in account registration in catalog/controller/account/register.php.
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
I must be very thick as I can't figure out where to safely stick this bit of code in (OC 3.0.4.0)...
for example in register.php lines 229 - 231 does it go right after?:
Does this add-on cover errors such as does the email server domain even exist? I just had a customer use gmail.con instead of gmail.com and obviously their emails bounced...
This was also discussed back on 2009 - 2011 and while there was an answer then, was anything like this integrated into later versions of OC?
viewtopic.php?f=23&t=6882
and a possible solution from 2011:
viewtopic.php?f=2&t=25510&p=132171&hilit=mail#p132171
John :-#)#
PS, is the Notify me when a reply is posted ever going to get fixed???
for example in register.php lines 229 - 231 does it go right after?:
Code: Select all
if ($customer_group_info && !$customer_group_info['approval']) {
$this->customer->login($this->request->post['email'], $this->request->post['password']);
This was also discussed back on 2009 - 2011 and while there was an answer then, was anything like this integrated into later versions of OC?
viewtopic.php?f=23&t=6882
and a possible solution from 2011:
viewtopic.php?f=2&t=25510&p=132171&hilit=mail#p132171
John :-#)#
PS, is the Notify me when a reply is posted ever going to get fixed???
Who is online
Users browsing this forum: No registered users and 13 guests