1

I need to send another mail when the order is placed...in majority cases it works fine but the issue comes with paypal. When I select paypal in payment method tab & then in next step of checkout when I hit submit then it redirects to the paypal at that time itself the another mail which I stated above fired.

I want it to be fired when payment is done on paypal. I am using this observer event - sales_order_place_after

I also searched & got the below link but it says the same thing...I mean same observer event.

How to Change Order Status After Successful PayPal Express Order

Can anyone please help with this?

2

Looking at the post on your link, the only reason he can't use the other events mentioned is because the order status would be reset. Can you try one of the other events, such as sales_order_payment_pay?

  • Hi Alistair, Thanks for your reply :) I will implement this event in a few minutes & let you know the outcome. Thanks again :) – KA9 Jun 26 '15 at 7:07
  • Hi Alistair, Now when redirected to paypal then mail not received so for paypal the issue solved :) but then I did another order in which I selected checkout/money order & then placed the order, then from backend when I invoiced that order in order to check whether after doing invoice mail coming or not..suddenly error came :( then I removed sales_order_payment_pay & did sales_order_place_after & then tried invoice then it worked..so there may be something going wrong when we send invoice having sales_order_payment_pay in observer. Anyways but the real issue is solved. Thanks again Alistair :) – KA9 Jun 26 '15 at 9:36
  • Happy to help. Good luck with the next bit. – Alistair67 Jun 26 '15 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.