New Zenner
- Join Date:
- Jan 2010
- Posts:
- 18
- Plugin Contributions:
- 0
Showing Cart Quantity
I would like to show the quantity that is in my cart on every page, which you would think would be the easiest thing in the world beings that this is shopping cart software, but I cannot seem to figure out any way to do it. I realize it must be using a SESSION variable. I was able to get it to echo the quantity for individual products, which is weird. For instance, if I clicked on a certain product, then it would echo the contents of the cart, BUT ONLY for that product. If there were 10 products in the cart and 4 of them were for that product, then the shopping cart would say "4 items in cart."
I tried this code and it printed nothing:
$totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents();
echo $totalsDisplay;
What am I missing here?