Display magento cart in Menu
November 30, 2013
If you want to change your shopping cart display like number of item and price ,
i give sample image show ,
<div class="mybag">
<a href="<?php echo $this->getUrl('checkout/cart')?>">
<span class="mybag-text">Shopping Cart:</span>
<?php $cartcnt= Mage::helper('checkout/cart')->getItemsCount();?>
<?php if($cartcnt==0):?>
<span class="empty-bag"><?php echo '0 items,';?>
<?php echo $this->helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal()); ?>
</span>
<?php else:?>
<span class="bag-item">
<?php echo $cartcnt.' '.'items,';?><?php echo $this->helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal()); ?></span>
<?php endif; ?>
</a>
</span>
</div>