2

I want to use an observer which will triggered when an order will placed on front end by the user. I am little bit confused which observer I should use for this requirement.

sales_order_place_after observer

or checkout_onepage_controller_success_action.

1

sales_order_place_after is fire when place() of order object is called and in magento every payment does not call place() when order placed.


Where

checkout_onepage_controller_success_action 

Is only called when customer has been redirect to checout/onepage/success. Also this event only called whenever order place from frontend and customer visit checout/onepage/success.

MY suggestion, this two event not proper,We should be use checkout_submit_all_after this event is fire when order place from frontend and backend.

it is fire immediate order place

  • then how to show the message on phtml when event is immediately fired ? – Bikash Ranjan Apr 4 '17 at 7:41

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.