You are here

function hook_commerce_checkout_complete in Commerce Core 7

Allows modules to perform business logic when an order completes checkout.

This hook coincides with the "Customer completes checkout" event. Only business logic should be performed when this is invoked, such as updating the order status, assigning the order to a user account, or sending notification e-mails. Interaction with the user should instead occur through checkout panes on the checkout completion page.

Parameters

$order: The order that just completed checkout.

1 function implements hook_commerce_checkout_complete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

commerce_cart_commerce_checkout_complete in modules/cart/commerce_cart.module
Implements hook_commerce_checkout_complete().

File

modules/checkout/commerce_checkout.api.php, line 79
Hooks provided by the Checkout module.

Code

function hook_commerce_checkout_complete($order) {

  // No example.
}