Your cart is empty!
Empty Cart
public function onEmptyPackagesCart(VAPCartPackages $cart) : void
Fires before the cart gets emptied.
Description
Trigger hook before flushing the cart.
It is still possible to see what kind of items $cart
holds, since the cart is emptied after firing this hook.
Parameters
- $cart
-
(VAPCartPackages) The cart instance.
Return Value
None.
Example
/**
* Trigger hook before flushing the cart.
*
* @param mixed $cart The cart instance.
*
* @return void
*/
public function onEmptyPackagesCart($cart)
{
/**
* @todo do stuff here
*/
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-06 16:43
Helpful?