/** * Add an Varien_Object, which holds the total values, to the parent block. * * @param $total Varien_Object * @param $after null|string * @return Balticode_CashOnDelivery_Block_Totals_Abstract */ protected function _addTotalToParent($total, $after = null) { if (!$after) { $after = Mage::helper('Balticode_Cashondelivery/data')->getTotalAfterPosition(); } $this->_parentBlock->addTotal($total, $after); return $this; }