For developers: OrderPlaced event
This event occurs after the order has been placed and stored in the database. For example, you can use it to export information about the order outside of the Ecommerce module.
The method accepts as argument orderId
Represent the ID of the order that has been placed. Based on this ID you can query information about the order or the customer who placed it.
Here is a code example of hooking up to the OrderPlaced event: