- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Everybody
I want to send the new order email at the success page stage. I'm using magento 1.9 and as you know in this version has been introduced the mail queue which is run with cronjobs, so far so good, my issue is that I'm using an external system for payment and when magento gets redirected to the payment gateway it doesn't send the email to the queue because of the redirect check in the core class.
I've managed already to send the email before, but want I want to do is to add the email of new order when the transaction is successfull. Do you know how I can accomplish this task?
I've seen a large number of solutions which unfortunately don't suite my situation, hope you can point me in the right direction so I can implement it.
Thanks in advance for your help.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've managed to sort it out. @theMageComp you've given me right heads up, I should've used the observers before. The event I was needing to listen was "checkout_onepage_controller_success_action".
Following the instructions at:
http://letsknowit.com/send-order-data-to-other-server
I've found out how to properly apply it, now I'm able to listen to the specifc event then send the new order email.
If you have any queries let me know.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Send new order email after order successfull
For your requirements you can use Magento event "Place_order_after" and with this you can use your custom code for what you want.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Send new order email after order successfull
Hi @theMageComp, thanks for tips, do you think I can use an observer for it? However is the order object still there (so I can use $order->sendneworderemail())?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've managed to sort it out. @theMageComp you've given me right heads up, I should've used the observers before. The event I was needing to listen was "checkout_onepage_controller_success_action".
Following the instructions at:
http://letsknowit.com/send-order-data-to-other-server
I've found out how to properly apply it, now I'm able to listen to the specifc event then send the new order email.
If you have any queries let me know.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Send new order email after order successfull
Okay, great
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Send new order email after order successfull
Hi!
I have the same problem on magento 1.9.2.3. but when I fix this code I get white screen!
How to I fix it!?
regards, Goran
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Send new order email after order successfull
Hi goransabo, sorry for the late reply, have you enabled the php error trace in your index.php?
If not, add this code to your index.php and tell what you get as error
error_reporting(E_ALL); ini_set('display_errors', 1);
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Send new order email after order successfull
We need to know how we can get this working to send mail only after payment confirmation
I se that the above solution working for lower version but not for 2.3.3 do you have any support on this ? http://www.tecsilk.com
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Send new order email after order successfull
For Magento 2, you can use this free extension for it.
Follow user guide.
https://magecomp.com/magento-2-order-confirmation-email.html
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer