Skip navigation
Help

theme_uc_checkout_pane_cart_review

6 uc_cart_checkout_pane.inc theme_uc_checkout_pane_cart_review($items)
7 uc_cart_checkout_pane.inc theme_uc_checkout_pane_cart_review($variables)

Themes cart items on the checkout review order page.

Parameters

$variables: An associative array containing:

  • items: An associative array of cart item information containing:

    • qty: Quantity in cart.
    • title: Item title.
    • price: Item price.
    • desc: Item description.

Return value

A string of HTML for the page contents.

Related topics

File

ubercart/uc_cart/uc_cart_checkout_pane.inc, line 545
Callbacks for the default Ubercart checkout panes plus helper functions.

Code

function theme_uc_checkout_pane_cart_review($variables) {
  $rows = array();
  $items = uc_order_product_view_multiple($variables['items']);

  foreach (element_children($items['uc_order_product']) as $key) {
    $item = $items['uc_order_product'][$key];
    $rows[] = array(
      array(
        'data' => $item['qty'],
        'class' => array('qty'),
      ),
      array(
        'data' => $item['product'],
        'class' => array('products'),
      ),
      array(
        'data' => $item['total'],
        'class' => array('price'),
      ),
    );
  }

  return theme('table', array('rows' => $rows, 'attributes' => array('class' => array('cart-review'))));
}