/** * @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; }