Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-26-2021 08:26:53

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 868

Invalid Email Address Message - Guest Checkout

For some time now we have had customers report they cannot checkout using their mobile device because they get a message stating that the email address entered is invalid. They have confirmed that email entered is correct. That leads me to think there must be a problem with the validation process on some mobile devices.

Apart for people entereing an invalid addres what other problem could cause K9 to think the email is invalid?

Has that problem been reported by others?

Is there a way to rectify the problem?

Last edited by sdn (08-26-2021 08:47:16)


Simon

Offline

 

#2 08-26-2021 08:52:58

ElectroSpares
Member
Registered: 07-11-2009
Posts: 58

Re: Invalid Email Address Message - Guest Checkout

We have had this in the past and have found the customer was trying to log into their account with an email address when they last used GUEST checkout and so they do not have an account. I accept this is not the same as the problem you describe, but just thought it might be worth a mention.

Offline

 

#3 08-26-2021 10:36:20

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1679

Re: Invalid Email Address Message - Guest Checkout

We get this from time to time, and virtually every time the user is copying/pasting the email address into the website form field.
When they copy their email address, they also copy a trailing space which will make the email address invalid.

I tell them to type the address in manually in both fields and problem is solved.

The only exception is some weird domain extensions like .coffee or .digital.
Nick was checking this out a few years ago:
https://forum.kryptronic.com/viewtopic.php?id=33843


- Euorpacart 8

Online

 

#4 08-27-2021 00:38:02

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 868

Re: Invalid Email Address Message - Guest Checkout

We have also experienced that issue. We did ask if a "Create Account" option could be added at the end of the guest checkout process like other sites offer. Maybe it is in the long awaited 9.04 update?

But this is a different problem associated with the customer trying to complete a Guest Checkout (or Create New Account) form. On some mobile devices the email validation process is rejecting valid email addresses stopping the customer from completing their purchase.

If it is as Zanart outlines, couldn't the email validation process just check all emails for a trailing space and trim it off if present?

We will ask customer to confirm if he pasted his .com email address and what os his phone has so we have a bit more to go on.

Last edited by sdn (08-27-2021 00:48:50)


Simon

Offline

 

#5 08-27-2021 02:48:25

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1679

Re: Invalid Email Address Message - Guest Checkout

it would be quite easy to trim the white space from the email address entered.

in ECOM/ext/guestco.php you have a few instances of

Code:

$email1 = strtolower($email1);
$email2 = strtolower($email2);
    $email  = trim($email);

you could just add an additional line under each instance such as

Code:

$email1 = strtolower($email1);
$email1 = trim($email1);

$email2 = strtolower($email2);
$email2 = trim($email2);

$email  = strtolower($email);
$email  = trim($email);

There is probably a quicker way to do it and I haven't tested it properly.

Last edited by zanart (08-27-2021 02:48:51)


- Euorpacart 8

Online

 

#6 08-27-2021 08:38:53

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19717
Website

Re: Invalid Email Address Message - Guest Checkout

That works well.  We have something similar in 9.0.4 which is being released in the next couple of days.  Packaging today finally.


Nick Hendler

Offline

 

#7 08-27-2021 08:55:32

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 868

Re: Invalid Email Address Message - Guest Checkout

OK thanks to you both. I have amended guestco.php as Zanart suggests although that may not be the cause of the problem above but still worth adding if it means a few more orders. Waiting on more info from customer.

Last edited by sdn (08-27-2021 08:57:51)


Simon

Offline

 

#8 08-31-2021 04:14:46

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 868

Re: Invalid Email Address Message - Guest Checkout

Customer has confirmed he uses a Samsung Galaxy S9 and did not paste his email address into the form so it might not be the above after all. If anyone has a Samsung Galaxy S9 and can do a guest checkout to see if they experience a problem that would be great.


Simon

Offline

 

#9 08-31-2021 09:39:24

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19717
Website

Re: Invalid Email Address Message - Guest Checkout

sdn wrote:

Customer has confirmed he uses a Samsung Galaxy S9 and did not paste his email address into the form so it might not be the above after all. If anyone has a Samsung Galaxy S9 and can do a guest checkout to see if they experience a problem that would be great.

We've got a Galaxy S7 we use here for testing which should present more issues (if any) than an S9.  What browser should be used?  Chrome?


Nick Hendler

Offline

 

#10 09-01-2021 04:21:23

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 868

Re: Invalid Email Address Message - Guest Checkout

Will ask next time I speak to him bit  I expect he will use the default browser which I believe is Chrome.


Simon

Offline

 

#11 09-01-2021 05:48:18

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1679

Re: Invalid Email Address Message - Guest Checkout

I use Xcode on mac which has a virtual device for every iPhone and iPad, so you can check website on every device to make sure it works correctly. I think you also select IOS version, so assume the emulator works exactly as it would on actual device.
Just checked, and it looks like you can download Android Studio https://developer.android.com/studio which also has an android emulator.
May be worth installing so you can check site on Android devices


- Euorpacart 8

Online

 

#12 09-10-2021 02:16:12

sdn
Member
From: UK
Registered: 05-29-2007
Posts: 868

Re: Invalid Email Address Message - Guest Checkout

Thanks for the heads up on Xcode. I used to use an online equivalant but it seems to have disappeared.

Is K9.04 ready now? We will (hopefully) be hitting the busy season shortly so the sooner we can get it installed, tested and tweaked the better.

Last edited by sdn (09-10-2021 02:21:51)


Simon

Offline

 

#13 09-10-2021 07:40:21

ElectroSpares
Member
Registered: 07-11-2009
Posts: 58

Re: Invalid Email Address Message - Guest Checkout

sdn wrote:

Thanks for the heads up on Xcode. I used to use an online equivalant but it seems to have disappeared.

Is K9.04 ready now? We will (hopefully) be hitting the busy season shortly so the sooner we can get it installed, tested and tweaked the better.

Offline

 

#14 09-10-2021 08:34:26

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19717
Website

Re: Invalid Email Address Message - Guest Checkout

We're currently testing more VAT changes and expect to release 9.0.4 ASAP - next week sometime.


Nick Hendler

Offline

 

Board footer