Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Where is the New Order email fired from? 
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

I have implemented a 3rd party payment gateway.
I am offering two payment methods - By cheque or by credit card.
When payment is done by cheque, the new order transactional email is fired.
But on payment by credit card, the new order email is not fired.

Is it a problem with my implementation of the payment module?

To fix this I want to see where is the code that fires a new order email on placing a new order (via check payment).

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Anyone??

 
Magento Community Magento Community
Magento Community
Magento Community
 
alistek
Sr. Member
 
Total Posts:  293
Joined:  2008-04-02
Normal, IL
 

I know there is a dispatch event for after order saving and maybe the payment module isn’t triggering it.  There is also a specific send e-mail function in the code, I know I have seen it.  I would look around the controllers/models for the checkout to see it in there.

-Adam

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

you find the method sending the mail wihtin onepage model saveOrder().

cheers

Stefan

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top