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.
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)
Offline
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
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
Offline
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)
Offline
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
$email1 = strtolower($email1); $email2 = strtolower($email2); $email = trim($email);
you could just add an additional line under each instance such as
$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)
Offline
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)
Offline
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.
Offline
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?
Offline
Will ask next time I speak to him bit I expect he will use the default browser which I believe is Chrome.
Offline
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
Offline
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)
Offline
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