Add these fields to your gird class
Class * * * extends mage_adminhtml_block_widget_grid{protected $_counttotals = true; Public Function Gettotals () {$totals = new varien_object (); $fields = Array (' Uzkart_trans_amount ' = 0,//actual column index, see _preparecolumns () ' some_s Ummarable_field ' = 0, ' Another_countable_field ' and ' 0, '; foreach ($this->getcollection () as $item) {foreach ($fields as $field = $value) {$fields [$f ield]+= $item->getdata ($field); }}//first column in the grid $fields [' entity_id ']= ' Totals '; $totals->setdata ($fields); return $totals; } protected function _preparecolumns () {/** * Another columns */$this->addcolumn ( ' Uzkart_trans_amount ', Array (' header ' = Mage::helper (' Uzkart ')->__ (' Payment amount '), ' Index ' = ' uzkart_trans_amount ', ' type ' = ' currency '‘, )); /** * Another columns */}/** * Another methods */}
But there are other question
Hide the Action Column in totals and more
Add ' totals_label ' = ' In your action column
How to add a Total row in a Magento grid