My Sellerdeck Account | Free Trial

Sellerdeck Community & Knowledge Base

Go Back   Sellerdeck Community > Knowledge Base > Online Store Issues > Checkout

Search powered by Google
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Search this Thread Useful Thread? Display Modes
Old 13-Nov-2015, 04:04 PM
G.W.Green G.W.Green is offline
Join Date: Sep 2005
Full Name: G.W.Green
Posts: 485
Thanks: 0
Thanked 70 Times in 43 Posts
Email address validation on standard checkout email field

There are occasions when a customer can mistype their email address into the standard email field within the site checkout and this will not be picked up meaning that emails may not be sent.

It is possible to add code to the order script to validate the email address format so that simple errors can be avoided.

To do this go to your site folder and locate the file: -

and open it in a plain text editor (such as 'Notepad' or similar).

Search for the following line: -

$$pHash{$sKey} !~ /\@/)
which should take you to the following line: -

$$pHash{$sKey} !~ /\@/)                     # and it is not in the expected format
replace this with the following code: -

$$pHash{$sKey} !~ /^([a-zA-Z0-9_'+*$%\^&!\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9:]{2,4})+$/) # and it is not in the expected format
Save the file and close it, then run the command 'Web | Refresh Website' to rebuild the online site files.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 04:37 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.