You are here

function commerce_stock_commerce_checkout_pane_info in Commerce Stock 7

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

Implements hook_commerce_checkout_pane_info().

Creates the stock checkout pane: Should be placed on the first stage of checkout. when loads checks if all items in stock and if not redirects you to the cart.

File

./commerce_stock.module, line 141
Allow commerce products to have stock levels associated with their SKU

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;
}