コード例 #1
0
ファイル: Data.php プロジェクト: dedlich/Magento-DebitPayment
 /**
  * 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');
     }
 }
コード例 #2
0
 protected function _construct()
 {
     parent::_construct();
     $this->_mainModel = Mage::getModel('aitcheckoutfields/aitcheckoutfields');
 }