Triggered when an order is canceled.
The onOrderCanceled()
event handler runs when an order is canceled. The received OrderCanceled
object contains information about the order that was canceled, details related to the cancelation, and event metadata.
Note: Backend events don't work when previewing your site.
Information about the order that was canceled.