Your cart is empty!
Status Change
public function onStatusChangePackageorder(object $data) : void
Fires every time the status of a package order changes.
It is possible to use the following code to access the details of the changed order.
VAPLoader::import('libraries.order.factory');
$order = VAPOrderFactory::getPackages($data->id_order);
Description
Trigger hook to let the plugins be notified every time the status of the order changes.
Parameters
- $data
-
(object) The object holding the details of the new status.
Return Value
None.
Example
/**
* Trigger event to let the plugins be notified every time the status of the orders change.
*
* @param object $data The order status details.
*
* @return void
*/
public function onStatusChangePackageorder($data)
{
/**
* @todo do stuff when the status changes
*/
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-08 14:17
Helpful?