Your cart is empty!
Initialization
public function onInitSavePackagesOrder(VAPCartPackages $cart) : void
Fires at the beginning of the saving process.
Description
Trigger hook to manipulate the cart instance while saving a package order. Here's possible to manipulate the cart instance.
This is the first hook that triggers after clicking the "Confirm Order" button.
Parameters
- $cart
-
(VAPCartPackages) The cart instance.
Return Value
None.
Example
/**
* Trigger hook to manipulate the cart instance.
*
* @param VAPCartPackages $cart The cart instance.
*
* @return void
*/
public function onInitSavePackagesOrder($cart)
{
/**
* @todo do stuff here
*/
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-08 15:01
Helpful?