-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Duplicate order confirmation emails when checking out with PayPal Express #18838
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
Comments
Hi @squeegy06. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @squeegy06 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
I would be willing to take on this issue! #SQUASHTOBERFEST |
I am unable to reproduce the issue on vanilla magento 2.2.5 and 2.2.6 |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @squeegy06 thank you for you report, this issue has already fixed by this commit -> #15094 |
Sorry if I bothered anyone. I did finally narrow down the module causing the issue and for the sake of anyone else struggling with this and searching around... We previously had issues (still present in 2.2.5) with confirmation emails missing the FROM, see bug #14952, and as a result we applied this little module https://github.com/pfortin-expertime/MageFix-Misc which had worked nicely until this issue with PayPal. Thanks again, I do hope this helps someone. |
Hello again, I've had some time to work on this issue, and I'm fairly confident there is an issue here. @engcom-backlog-nazar mentioned this was fixed, but it does not appear that the fix made it into 2.2.5. So, testing from a fresh install of 2.2.5, when checking out with PayPal, a customer does indeed only get one confirmation email, but it's not because everything functioned correctly, instead a warning is thrown and caught during execution that the "FROM" in the email cannot be set twice, causing the second confirmation that would be sent to fail. So, this might work, but it's not proper. And this issue is compounded by the fact that a bug is still present in 2.2.5 where the FROM in the email doesn't actually get set in the end. So when we apply a fix found in https://github.com/pfortin-expertime/MageFix-Misc to solve the problem with the FROM not being set, it also stops the warning from being thrown so now when you checkout with PayPal, it sends 2 confirmation emails. Writing a quick module that replaces the paypal checkout with the fix found in #15094 does ultimately fix all of my issues. But I just want to make someone aware that this issue does not appear to be fixed in 2.2.5 |
I believe the issue ist found in 2.2.7; we observe similar behavior, but cannot confirm the fixes yet (will try). |
Hey folks, Issue Still Persists
Possible Causes Possibly the other code sending the e-mail didn't exist before, necessitating an explicit call in the Magento Paypal code (details below). This may no longer be required. Quick Fix If you're in a pinch, commenting out those lines seems is an option too. Call Details
Inside this method call here you can see the e-mail is sent with:
Which then calls checkAndSend(): |
Preconditions (*)
Magento 2.2.5
Steps to reproduce (*)
Expected result (*)
I expected to receive a single order confirmation email.
Actual result (*)
I receive 2 order confirmation emails.
The text was updated successfully, but these errors were encountered: