Return to Snippet

Revision: 26587
at May 3, 2010 08:51 by TioSolid


Initial Code
$quote = Mage::getModel('checkout/session')->getQuote();
$total = $quote->getGrandTotal();
// format total in order to have a user friendly price
$total = $this->helper('checkout')->formatPrice($total);

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

Initial Description
How to get the cart total in a Magento Page

Initial Title
Get cart total price

Initial Tags
magento

Initial Language
PHP