Exemple #1
0
 protected function _prepareColumns()
 {
     parent::_prepareColumns();
     unset($this->_columns['profile']);
     foreach ($this->_columns as $key => $column) {
         if ($key == 'history_id') {
             continue;
         }
         // Rename column IDs so they're not posted to the profile information
         $column->setId('col_' . $column->getId());
         $this->_columns['col_' . $key] = $column;
         unset($this->_columns[$key]);
     }
     if ($this->_getProfile()->getEntity() == Xtento_OrderExport_Model_Export::ENTITY_QUOTE || $this->_getProfile()->getEntity() == Xtento_OrderExport_Model_Export::ENTITY_CUSTOMER) {
         unset($this->_columns['col_increment_id']);
     } else {
         $this->_columns['col_increment_id']->setFilterConditionCallback(false);
         $this->_columns['col_increment_id']->setFilterIndex('object.increment_id');
     }
 }