/** * */ protected function _prepareToRender() { $this->addColumn('txaction', array('label' => Mage::helper('payone_core')->__('Transactionstatus-Message'), 'style' => 'width:150px')); $this->addColumn('state_status', array('label' => Mage::helper('payone_core')->__('Magento-Status'), 'style' => 'width:120px;')); $this->_addAfter = false; $this->_addButtonLabel = Mage::helper('payone_core')->__('Add Statusmapping'); parent::_prepareToRender(); }
/** * */ protected function _prepareToRender() { $this->addColumn('personstatus', array('label' => Mage::helper('payone_core')->__('Personstatus'), 'style' => 'width:120px')); $this->addColumn('score', array('label' => Mage::helper('payone_core')->__('Score'), 'style' => 'width:120px;')); $this->_addAfter = false; $this->_addButtonLabel = Mage::helper('payone_core')->__('Add Personstatus Mapping'); parent::_prepareToRender(); }
protected function _prepareToRender() { $this->addColumn('ratepay_shopid', array('label' => Mage::helper('payone_core')->__('Shop-ID'), 'style' => 'width:60px;')); $this->addColumn('ratepay_currency', array('label' => Mage::helper('payone_core')->__('Currency'), 'style' => 'width:60px;')); $this->_addAfter = false; $this->_addButtonLabel = Mage::helper('payone_core')->__('Add Shop-ID'); parent::_prepareToRender(); }
/** * @param $columnName * @return string * @throws Exception */ protected function _renderCellTemplate($columnName) { if ($columnName == 'txactions') { $selectType = Payone_Core_Block_Adminhtml_System_Config_Form_Field_Abstract::PAYONE_CORE_FIELD_MULTISELECT; $modelConfigCode = $this->getFactory()->getModelSystemConfigTransactionStatus(); $options = $modelConfigCode->toOptionArray(); $rendered = $this->prepareCellTemplate($columnName, $selectType, $options); } else { return parent::_renderCellTemplate($columnName); } return $rendered; }
/** * @param $columnName * @return string * @throws Exception */ protected function _renderCellTemplate($columnName) { if ($columnName == 'countries') { $selectType = Payone_Core_Block_Adminhtml_System_Config_Form_Field_Abstract::PAYONE_CORE_FIELD_MULTISELECT; $modelConfigCode = $this->getFactory()->getModelSystemConfigCountryFull(); } elseif ($columnName == 'shipping_method') { $selectType = Payone_Core_Block_Adminhtml_System_Config_Form_Field_Abstract::PAYONE_CORE_FIELD_SELECT; $modelConfigCode = $this->getFactory()->getModelSystemConfigShippingMethod(); } else { return parent::_renderCellTemplate($columnName); } $options = $modelConfigCode->toOptionArray(true); $rendered = $this->prepareCellTemplate($columnName, $selectType, $options); return $rendered; }