You are here

function commerce_cart_commerce_checkout_complete in Commerce Core 7

Implements hook_commerce_checkout_complete().

File

modules/cart/commerce_cart.module, line 212
Implements the shopping cart system and add to cart features.

Code

function commerce_cart_commerce_checkout_complete($order) {

  // Move the cart order ID to a completed order ID.
  if (commerce_cart_order_session_exists($order->order_id)) {
    commerce_cart_order_session_save($order->order_id, TRUE);
    commerce_cart_order_session_delete($order->order_id);
  }
}