Your cart is empty!
Empty Cart
public function onEmptyCart(VAPCart $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
-
(VAPCart) The cart instance.
Return Value
None.
Example
/**
* Trigger hook before flushing the cart.
*
* @param mixed $cart The cart instance.
*
* @return void
*/
public function onEmptyCart($cart)
{
/**
* @todo do stuff here
*/
}
Changelog
Version | Description |
---|---|
1.6 | Introduced. |
Last Update: 2021-10-06 16:16
Helpful?