-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order confirmation email not sent during guest checkout #16
Comments
Order confirmation mail is not being send though i am using a registered user.Exception processing template "orderConfirmation-email": Exception evaluating SpringEL expression: |
Order confirmation emails are not sent during guest checkout because the guest customer does not have its email address populated and therefore the retrieve by email address on line 61 of OrderConfirmationController returns null.
We hacked this by using order.getCustomer() rather than customerDao.readCustomerByEmail() and then setting the guest customer's email address, first name and last name from the order's first payment info. Not sure if this is the best solution but it does result in the order confirmation email getting sent.
The text was updated successfully, but these errors were encountered: