How to Get Order Data From Magento “sales_order_place_after” Event

How to Get Order Data From Magento “sales_order_place_after” Event

Earlier, I had given the solution to get order data from Magento 2 “sales_order_place_after” event.

A client with a similar requirement for Magento 1 wanted to use the solution to retrieve the order data and send a payment confirmation SMS to store customers.

With a view to sharing the solution with my readers, here’s the stepwise method to get order data from Magento “sales_order_place_after” event

Method to Get Order Data From Magento “sales_order_place_after” Event:

  1. Place the below event code in your config.php file
  2. Create Observer.php file at app/code/local/Vendor/Extension/Model/ folder

Follow these steps and easily get order data from Magento “sales_order_place_after” event  to implement features useful to improve customer experience or administration tasks!

Do let me know if the solution was helpful to you and how you used it in your Magento store. Also, feel free to discuss any doubts regarding the method in the Comments section below 🙂

Thanks.

5
(based on 5 Reviews)

Sanjay is a co-founder at Meetanshi. He is a certified Magento developer who loves creating Magento E-commerce solutions. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a Reply