In onepage checkout, I am trying to get grand total but it is not updated based on shipping charges, taxes applied instead it is only showing product cost.. After selecting the shipping method and reloading the page is updating grand total correctly but I wanted to update grand total in the step payment information. Can anybody please help me in this?
$quote = Mage::getModel('checkout/session')->getQuote(); $quoteData= $quote->getData(); $grandTotal=$quoteData['grand_total'];
You can get the grand total by using this:
$grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();