Get cart total price

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

How to get the cart total in a Magento Page

Copy this code and paste it in your HTML
  1. $quote = Mage::getModel('checkout/session')->getQuote();
  2. $total = $quote->getGrandTotal();
  3. // format total in order to have a user friendly price
  4. $total = $this->helper('checkout')->formatPrice($total);


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.