If this is your first visit, check our documentation. To post, register or login.
Forums / Features Wish List / Email Verification Code Module

Email Verification Code Module

Started by fjolsvith on 8 May 2018, 3:11 PM · Views: 163

Results 1 to 6 of 6
8 May 2018, 3:11 PM
#1
fjolsvith avatar

fjolsvith

New Zenner

Join Date:
Mar 2016
Location:
Norcatur, Kansas, USA
Posts:
88
Plugin Contributions:
2

Email Verification Code Module

Hi all,

I want to see written an Email Verification Code Module for Zencart. Zencart lacks this IMPORTANT feature and it has caused big problems and lost sales for my online store due to customers not entering their email correctly (even with the dual email entry field module installed).

Basically, Email Verification is where, before creating an account (or changing the email address of a created account), the Zencart store sends a message to the email address the customer provides. This message contains a 6 digit alphanumeric code that the customer must use to validate the email address they provided.

The behaviour I wish to change on the website is I want to split out the function of the create_account.php page into two pages. The create_account page contains the entry fields for the customer's information.

The first page would have the login fields with a Login button, and also a Create Account button. Entering account credentials and clicking the Login button will proceed as currently exists. The Create Account button will direct to a page called email_verification.php.

This email_verification.php page will have the following behaviour. It will have a field for the customer's email address and a Send Validation Email button. It will also have a "I have my Email Validation Code" button.

When the customer enters a valid email address and clicks "Send Validation Email", the website will 1. Generate a 6 digit alphanumeric code and store it along with the email address in a table in the database. Then it will 2. Dispatch a message to the email address. This email message will contain the alphanumeric code. It will also have a clickable link that the customer can click on that will navigate a new browser window back to the email_verification.php page with the email address and validation code as parameters to the link. When the email_verification.php page receives this information as parameters, it checks the alphanumeric code against the stored code in the table. If they match, it will direct to the create_account page.

If the customer notes the code given in the email and then clicks the "I have my Email Validation" button, the page will show an entry field where the customer can enter the code by keying it or pasting it. They will then click a "Check Validation Code" button, which reloads the page with the email and code as parameters, and the above behaviour will direct to the create_account page.

The create_account page will ask the customer's name, address, phone #, password, etc, as usual.

Also, I would like to see a captcha on the send validation code page and the enter validation code page.

Finally, I would like to see also a page that the user can use to change their email address. In my opinion, using the Email address as the account identification is bad practice and makes the website less secure. Besides, people do use more than one email address, and they do change their email address on occasion.

Fjolsvith

19 May 2018, 2:47 AM
#2
fjolsvith avatar

fjolsvith

New Zenner

Join Date:
Mar 2016
Location:
Norcatur, Kansas, USA
Posts:
88
Plugin Contributions:
2

Re: Email Verification Code Module

Why is this not a feature of Zencart? Someone could create an account in a Zen store using a different person's email, and cause them to get spammed.

"Besides, it would mean that the service (website) is so bad that they do not verify email ownership before allowing creation of the a/c with this email id."

19 May 2018, 12:17 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Email Verification Code Module

Email verification is traditionally not part of a shopping cart offering. Yes, some websites do the email verification you're describing, but most shopping carts don't.

The reason is incredibly obvious: you don't want to create barriers to payment.

If you want to create a mod to do this, go for it. Nothing is stopping you. But if you put it in the plugins area, I would guess that the number of vendors who would install it would be zero. Because, speaking as a vendor, I don't want to make it harder for people to perform a transaction.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

19 May 2018, 12:32 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Email Verification Code Module

I think swguy is right, and if you are afraid someone wil use the email adres of someone else to get him spam, there are far better ways to that, then to maybe get 2 newsletters a year from a webshop.

19 May 2018, 12:41 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Email Verification Code Module

MailChimp - who are IN THE BUSINESS of sending email - turned off double opt-in as the default. Reason: too many e-commerce vendors wanted single opt-in.

https://kb.mailchimp.com/lists/signup-forms/single-opt-in-vs.-double-opt-in

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

22 May 2018, 10:14 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Email Verification Code Module

Two related discussions which may be of interest:

https://www.zen-cart.com/showthread.php?43358-New-account-verification-by-email

https://www.zen-cart.com/showthread.php?47727-Registration-and-Email-Verification -- generally the consensus is that putting a barrier in the way of purchasing is a bad idea.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.