New Zenner
- Join Date:
- Jan 2010
- Posts:
- 36
- Plugin Contributions:
- 0
Shopping Cart Totals in Header Support
the given code for the **Shopping Cart Totals in Header Add-On **displays the number of products in the cart and not the total quantity of products.
Example, shopper has 1 qty of (product A) and 2 qty of (product B) but "My Cart" shows (2) items, not the total quantity of 3.
Likewise a qty of 1 or 30 of Product A still shows 1 item.
Its a little misleading to the shopper when qty of items and products mean different things.
How can this be adjusted?
<li><span class="style1">My Cart:
<?php echo sizeof($_SESSION['cart']->get_products());
?> items
<?php $header_cart = $currencies->format($_SESSION['cart']->show_total());
echo $header_cart;
?>
</span>
<br class="clearBoth" />
</li>