<?php
hook_checkout_pane()
?>The checkout screen for Ubercart is a compilation of enabled checkout panes. A checkout pane can be used to display order information, collect data from the customer, or interact with other panes. Panes are defined in enabled modules with hook_checkout_pane() and displayed and processed through specified callback functions. Some of the settings for each pane are configurable from the checkout settings page with defaults being specified in the hooks.
The default panes are defined in uc_cart.module in the function uc_cart_checkout_pane(). These include panes to display the contents of the shopping cart and to collect essential site user information, a shipping address, a payment address, and order comments. Other included modules offer panes for shipping and payment purposes as well.
An array of checkout pane arrays using the following keys:
| Key | Type | Value |
| id | string | The internal ID of the checkout pane, using a-z, 0-9, and - or _. |
| title | string | The name of the pane as it appears on the checkout form. |
| desc | string | A short description of the pane for the admin pages. |
| callback | string | The name of the callback function for this pane. View this page for more documentation and examples of checkout pane callbacks. |
| weight | int | Default weight of the pane, defining its order on the checkout form. |
| enabled | bool | Optional. Whether or not the pane is enabled by default. Defaults to TRUE. |
| process | bool | Optional. Whether or not this pane needs to be processed when the checkout form is submitted. Defaults to TRUE. |
| collapsible | bool | Optional. Whether or not this pane is displayed as a collapsible fieldset. Defaults to TRUE. |
<?php
// Taken from uc_cart_checkout_pane() in uc_cart.module.
function uc_cart_checkout_pane() {
$panes[] = array(
'id' => 'cart',
'callback' => 'uc_checkout_pane_cart',
'title' => t('Cart Contents'),
'desc' => t("Display the contents of a customer's shopping cart."),
'weight' => 1,
'process' => FALSE,
'collapsible' => FALSE,
);
return $panes;
}
?>Checkout System Documentation - includes documentation on checkout pane callback functions.
Lead Tracker - a basic module demonstration that creates a checkout pane, saves the collected information, and provides it for display on the order screen.
