Hi alexan,
To display the cart info, use:
<?php echo $displayCartInfo; ?>
or to have the info as a link to your cart, use:
<a href="/yourshopdir/index.php?main_page=shopping_cart"><?php echo $displayCartInfo; ?></a>
Also, in the tpl_header.php file, I added code to display 'item(s)' depending on how many items in your cart:
$displayCartInfo = '';
switch (true) {
case ($_SESSION['cart']->count_contents() == '0'):
$displayCartInfo = '<b>' . $_SESSION['cart']->count_contents() . ' items' . '</b><br>' . 'Total: ' . $currencies->format($_SESSION['cart']->show_total());
break;
case ($_SESSION['cart']->count_contents() == '1'):
$displayCartInfo = '<b>' . $_SESSION['cart']->count_contents() . ' item' . '</b><br>' . 'Total: ' . $currencies->format($_SESSION['cart']->show_total());
break;
case ($_SESSION['cart']->count_contents() >= '2'):
$displayCartInfo = '<b>' . $_SESSION['cart']->count_contents() . ' items' . '</b><br>' . 'Total: ' . $currencies->format($_SESSION['cart']->show_total());
break;
}
so this displays '0 items', '1 item', '2 items', etc.
Hope this helps