You are here

function commerce_stock_commerce_checkout_pane_info in Commerce Stock 7.2

Same name and namespace in other branches
  1. 7 commerce_stock.module \commerce_stock_commerce_checkout_pane_info()

Implements hook_commerce_checkout_pane_info().

This creates the stock checkout pane. It should be placed on the first stage of checkout. It checks if all items are in stock and if not redirects the user to their cart.

File

./commerce_stock.module, line 132
Commerce Stock module.

Code

function commerce_stock_commerce_checkout_pane_info() {
  $checkout_panes = array();
  $checkout_panes['stock_validation_checkout_pane'] = array(
    'title' => t('check if all items are in stock at checkout'),
    'base' => 'commerce_stock_commerce_checkout_pane',
    'page' => 'checkout',
    'fieldset' => FALSE,
  );
  return $checkout_panes;
}