Triggered when an order is created.
The onOrderCreated()
event handler runs when an order is created. The received OrderCreated
object contains information about the order that was created and event metadata.
Note: Backend events don't work when previewing your site.
Information about the order that was created.