onOrderUpdated( )
An event that triggers when an order is changed.
The onOrderUpdated()
event handler runs when an order has changed.
The received OrderUpdatedEvent
object contains information about the order that was updated.
An order is considered changed and the onOrderUpdated()
event handler runs
if any of the following happens:
- An order is paid. In this case, the
onOrderPurchased()
event handler also runs. - An order reaches its start date. In this case, the
onOrderStarted()
event handler also runs. - An order is canceled. In this case, the
onOrderCanceled()
event handler also runs. - The end date of an order is postponed or brought forward. In this case, the
onOrderEndDatePostponed()
event handler also runs. - An order is paused or resumed. In this case, the
onOrderPaused()
or theonOrderResumed()
event handler also runs. - An order expired by reaching its end date. In this case, the
onOrderEnded()
event handler also runs. - The start date of an order has changed. In this case, the
onOrderStartDateChanged()
event handler also runs. - The payment cycle of an order starts. In this case, the
onOrderCycleStarted()
event handler also runs. - The auto-renewal of an order is stopped. In this case, the
onOrderAutoRenewCanceled()
event handler also runs.
Note: Backend events don't work when previewing your site.
Method Declaration
Copy
Method Parameters
eventOrderUpdatedEventRequired
Information about the order that was updated and metadata for the event.
Was this helpful?
Yes
No