ajensen27 Posted July 16, 2015 Share Posted July 16, 2015 I have a customer who keeps getting this error message when trying to place an order. Hoping this isn't an issue that is happening to a lot of potential customers. Anyone know why she might be getting this error if she sent me the email address she's using and it looks fine and she has tried 3 other emails as well? "There is 1 error (s): 1. Email is invalid" Website is www (dot) llmedico (dot) com Thanks!! Link to comment Share on other sites More sharing options...
Guest Posted July 16, 2015 Share Posted July 16, 2015 Works fine for me You have asked the customer for their email address - perhaps they are typing it incorrectly Link to comment Share on other sites More sharing options...
ajensen27 Posted July 16, 2015 Author Share Posted July 16, 2015 It was a user error. She has a trailing space after the ".com". Is there anyway to add a function in to remove leading or trailing spaces? Feel like this might be happening more often than not due to copying/pasting. Thanks! Link to comment Share on other sites More sharing options...
bellini13 Posted July 16, 2015 Share Posted July 16, 2015 yes, the function is called trim. you can do this from javascript on the browser side, or you can do it server side in php Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2015 Share Posted July 17, 2015 as far as i know email address is trimmed by prestashop core while someone creating an account Link to comment Share on other sites More sharing options...
ajensen27 Posted July 17, 2015 Author Share Posted July 17, 2015 Must not be because I tried putting a trailing space in and registering an email address and go the "Invalid Email Address" error. Can anyone point me as to where I need to add the TRIM function in the code? Thanks!! Link to comment Share on other sites More sharing options...
bellini13 Posted July 17, 2015 Share Posted July 17, 2015 perhaps you are using a custom theme, or an older default theme that does not trim Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now