My SellerDeck Account | Newsletter | Free Trial

Community and 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

Reply
 
Thread Tools Search this Thread Useful Thread? Display Modes
  #1  
Old 13-Nov-2015, 04:04 PM
G.W.Green G.W.Green is offline
Administrator
Join Date: Sep 2005
Full Name: G.W.Green
Posts: 480
Thanks: 0
Thanked 66 Times in 42 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: -

OrderScript.pl

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

Search for the following line: -

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

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

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
Reply


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 08:12 AM.


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