public function onInitSaveOrder(VAPCart &$cart) : void

Fires at the beginning of the saving process.


Description

Trigger hook to manipulate the cart instance while saving one or more appointments. Here's possible to manipulate the cart instance.

This is the first hook that triggers after clicking the "Confirm Reservation" button.


Parameters

&$cart

(VAPCart)  The cart instance, passed by reference.

Return Value

None.


Example

/**
 * Trigger hook to manipulate the cart instance.
 *
 * @param   VAPCart  &$cart  The cart instance.
 *
 * @return  void
 */
public function onInitSaveOrder(&$cart)
{
    /**
     * @todo do stuff here
     */
}

Changelog

VersionDescription
1.6 Introduced.
Last Update: 2021-10-08 14:46
Helpful?