I want to add some logic after place order using order_id. For this I tried sales_order_place_after event, but in this event I'm not getting order_id. And order_id is coming into event checkout_onepage_controller_success_action but this event only triggering on frontend.

I want to add some logic for both orders (frontend and backend).

Which event should I use so that I can add some logic stuff for backend orders as well?

1 Answer 1


you need event


get Data in observer

public function execute(\Magento\Framework\Event\Observer $observer) { 
        $order = $observer->getEvent()->getOrder();


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.