Posted By

TioSolid on 05/03/10


cart magento

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Get cart total price

 / Published in: PHP


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.