Posted By

TioSolid on 05/03/10


Tagged

cart magento


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

eval


Get cart total price


 / Published in: PHP
 

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

How to get the cart total in a Magento Page

  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  

You need to login to post a comment.