Here is a simple code to get the total products/items in cart in Magento. The below code is return only total products/items count, did not return total quantity of different products/items. For example - ProductA has 5 quantity in cart and ProductB has 2 quantity in cart then below code return 2 counts because there are total 2 products/items added in cart.
<?php
$_cartTotalItems = Mage::getSingleton('checkout/cart')->getItemsCount();
echo $_cartTotalItems;
?>
What a blog and this post is very impressive, very informative and well maintained. Appreciated, Keep updating your post.
ReplyDeleteHot Rolled Sheets Supplier In Haryana
Very good to know about this, and this post is so well maintained. Thanks for the post, keep updating your post.
ReplyDeleteanti ageing vitamin E cream
Very useful post about to edit total items in cart in magento. Very impressive post with lots of information. Keep updating your posts.
ReplyDeleteuboard india
Really nice post, thanks for it.
ReplyDeleteTransplantation
Really nice post, thanks for it.
ReplyDeletecertified gemstones in Delhi
सिर्फ 2 मिनट में आपकी सोच बदल देगा यह विडियो- most inspiring video in the world
ReplyDeletecancer consult in noida
ReplyDeleteProstate Cancer Consultant in noida
colon cancer specialist in noida