I tried this at line 45, which I'm somehow sure is crappy hacked code. Man, I really need to learn php and how this store is put together, but it's a long process trying to piece it together. I don't know if I need to define this variable I made up $cart_qty somewhere.
Code:
if ($_SESSION['cart']->count_contents() > 0) {
$cart_qty = $_SESSION['cart']->count_contents();
$content .= '<hr />';
$content .= '<div class="cartBoxTotal">Number of items = ' . $cart_qty . '</div>';
$content .= '<br class="clearBoth" />';
}
What I really want to do is not just show the total number of items, but the items from certain categories. For instance on cacaocouture.com I'd want to show the total number of truffles added to the cart so far (since we'll be selling specific box sizes for those). We'll probably also want to show the total number of items in the cart too, which would include the other items like pre-packed boxes, holiday boxes, and event favors.
Actually I could use this code to notify people when they've full filled one of the preset box sizes, or need to add more to do so...too.
Anyway, for now I just want to be able to show the total items, and maybe the total items from certain categories (if I can figure that out relatively quickly).