Yet another blog (hopefully a useful one though)
Magento – Show cart quantity
If you’re putting a shopping cart area anywhere other than the standard cart side block, then you’ll probably want to show how many items are in the cart at any one time. Here’s how:
<br /> $cart = Mage::getModel('checkout/cart')->getQuote()->getData();<br /> if(isset($cart['items_qty'])){<br /> if($cart['items_qty'] != 1) {<br /> echo "You have " . (int)$cart['items_qty'] . " items in your shopping cart";<br /> } else {<br /> echo "You have " . (int)$cart['items_qty'] . " item in your shopping cart";<br /> }</p> <p>} else {<br /> echo "You have 0 items in your shopping cart"<br /> }<br />

April 12, 2010 - 7:01 pm
fine with me
June 2, 2010 - 7:47 am
Nice post , this is work for me………..
June 19, 2010 - 9:07 pm
Indeed cool article you have here. It’d be really cool to read something more concerning such theme. Thank you for posting that material.
Jessica GARCIA
October 7, 2010 - 8:12 am
Rather nice site you’ve got here. Thanks for it. I like such topics and anything that is connected to them. I definitely want to read a bit more on that blog soon.
Julia Hakkinen
dublin escorts ireland