Document hook_checkout_prepare

This commit is contained in:
Juerd Waalboer 2023-01-16 04:00:20 +01:00
parent 6180bf6ea5
commit dbb11b5898

View file

@ -156,9 +156,13 @@ item going into the cart!
Be careful to avoid infinite loops if you add new stuff.
=item hook_checkout_prepare($class, $cart, $user, $transaction_id, @)
Called when the transaction is about to be processed. In this phase, the cart and its entries can still be manipulated.
=item hook_checkout($class, $cart, $user, $transaction_id, @)
Called when the transaction is finalized, before accounts are updated.
Called when the transaction is finalized, before accounts are updated. The cart and cart entries must not be changed.
=item hook_checkout_done($class, $cart, $user, $transaction_id, @)