Which event should I use in order to execute a function after a frontend order? In other module, a colleague used but I think this is for backend orders.

  • Which is your Magento version? Commented Aug 3, 2016 at 9:09

2 Answers 2


If you want to execute function after order is created use sales_order_place_after event.

If you want to execute function only when order is successful use checkout_onepage_controller_success_action event.

if you want to use event for frontend,backend also write the event in the <global> tag in the config.xml


you can use checkout_onepage_controller_success_action event. It will be called after the order is placed on frontend i.e. when the customer is redirected to the checkout success page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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