/** * Set the right template depending on the debit type * * @return void */ protected function _construct() { parent::_construct(); /* @var $helper Itabs_Debit_Helper_Data */ $helper = Mage::helper('debit'); if ($helper->getDebitType() == Itabs_Debit_Helper_Data::DEBIT_TYPE_SEPA) { $this->setTemplate('debit/sepa/account/data.phtml'); } else { $this->setTemplate('debit/account/data.phtml'); } }
protected function _construct() { parent::_construct(); $this->_mainModel = Mage::getModel('aitcheckoutfields/aitcheckoutfields'); }