function uc_checkout_pane_cart in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_cart/uc_cart_checkout_pane.inc \uc_checkout_pane_cart()
- 6.2 uc_cart/uc_cart_checkout_pane.inc \uc_checkout_pane_cart()
Displays the cart contents for review during checkout.
2 string references to 'uc_checkout_pane_cart'
- hook_uc_checkout_pane in uc_cart/
uc_cart.api.php - Registers callbacks for a checkout pane.
- uc_cart_uc_checkout_pane in uc_cart/
uc_cart.module - Implements hook_uc_checkout_pane().
File
- uc_cart/
uc_cart_checkout_pane.inc, line 16 - Callbacks for the default Ubercart checkout panes plus helper functions.
Code
function uc_checkout_pane_cart($op, $order, $form = NULL, &$form_state = NULL) {
switch ($op) {
case 'view':
$contents['cart_review_table'] = array(
'#theme' => 'uc_cart_review_table',
'#items' => $order->products,
'#weight' => variable_get('uc_pane_cart_field_cart_weight', 2),
);
return array(
'contents' => $contents,
'next-button' => FALSE,
);
case 'review':
//$review[] = theme('uc_checkout_pane_cart_review', array('items' => $order->products));
$review[] = theme('uc_cart_review_table', array(
'items' => $order->products,
'show_subtotal' => FALSE,
));
return $review;
}
}