Magento : Get cart total quantity and Grandtotal

You can get cart total quantity and grandtotal in Magento as following.

//Start of code

$cartItemsCount = $this->helper(‘checkout/cart’)->getSummaryCount();  //get total items in cart
$cartTotal = $this->helper(‘checkout/cart’)->getQuote()->getGrandTotal();  //get total price

//End of code

Leave a Reply