getGrandTotal(); $baseGrandTotal = $address->getBaseGrandTotal(); $totals = array_sum($address->getAllTotalAmounts()); $baseTotals = array_sum($address->getAllBaseTotalAmounts()); $address->setGrandTotal($grandTotal+$totals); $address->setBaseGrandTotal($baseGrandTotal+$baseTotals); return $this; } /** * Add grand total information to address * * @param Mage_Sales_Model_Quote_Address $address * @return Mage_Sales_Model_Quote_Address_Total_Grand */ public function fetch(Mage_Sales_Model_Quote_Address $address) { $address->addTotal(array( 'code' => $this->getCode(), 'title' => Mage::helper('sales')->__('Grand Total'), 'value' => $address->getGrandTotal(), 'area' => 'footer', )); return $this; } }