Magento go

1/19/2010

How to get item/product counts in cart?

$_cart = Mage::getModel('checkout/cart');

echo"getItemsQty-" . ($_cart->getItemsQty());
echo"getItemsCount-" . ($_cart->getItemsCount());
echo"getSummaryQty-" . ($_cart->getSummaryQty());

Source : http://www.codefight.org/
Posted by Unknown at 2:14 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2012 (1)
    • ►  July (1)
  • ►  2011 (2)
    • ►  January (2)
  • ▼  2010 (62)
    • ►  December (2)
    • ►  July (1)
    • ►  June (2)
    • ►  May (12)
    • ►  April (7)
    • ►  March (13)
    • ►  February (10)
    • ▼  January (15)
      • Magento Display Product SKU
      • How to get currency symbol?
      • Report each step of Magento's One Page Checkout to...
      • A brief introduction to Magento Collection
      • Magento – check if user logged in
      • Restrict access to Magento during upgrades etc
      • Add a javascript file to your magento page templates
      • How to get item/product counts in cart?
      • Edit the default Magento eMail Templates
      • javascript in Magento Not Working (js 404 error)
      • How to Install Sample Data for Magento?
      • Magento - AdWords Conversion Tracking
      • Newsletter Subscribe Page in Magento
      • Magento: Add New CMS Page Layout
      • Moving / Removing Callouts on the left / right col...
  • ►  2009 (36)
    • ►  December (22)
    • ►  November (10)
    • ►  March (4)
Magento One Step Checkout Magento Extensions Free Virtuemart Extensions One Page Checkout For Virtuemart Magento Extensions Magento Themes Virtuemart templates Joomla Extensions Virtuemart Module Magento Full Page Cache Magento Layered Navigation Magento Product Video Magento Social Login Magento Store Locator
Simple theme. Powered by Blogger.