Magento: Get Item Number In Cart


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $cart = Mage::helper('checkout/cart')->getCart()->getItemsCount();
  4. echo 'cart items count: ' . $cart;
  5.  
  6. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.