Get cart total price


/ Published in: PHP

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);

URL: http://www.odino.org/development/content-management-systems/magento-tutorial/retrieve-grand-total-and-items-quantity/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.