Exemple #1
0
 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => Mage::helper('M2ePro')->__('ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'id', 'filter_index' => 'main_table.id'));
     $this->addColumn('title', array('header' => Mage::helper('M2ePro')->__('Title / Info'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'escape' => true, 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     if (!Mage::helper('M2ePro/View_Common_Component')->isSingleActiveComponent()) {
         $this->addColumn('component_mode', array('header' => Mage::helper('M2ePro')->__('Channel'), 'align' => 'left', 'width' => '120px', 'type' => 'options', 'index' => 'component_mode', 'filter_index' => 'main_table.component_mode', 'sortable' => false, 'options' => Mage::helper('M2ePro/View_Common_Component')->getActiveComponentsTitles()));
     }
     return parent::_prepareColumns();
 }
 protected function _prepareColumns()
 {
     $this->addColumn('id', array('header' => Mage::helper('M2ePro')->__('ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'id', 'filter_index' => 'main_table.id'));
     $this->addColumn('title', array('header' => Mage::helper('M2ePro')->__('Title / Info'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'escape' => true, 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')));
     if (Mage::helper('M2ePro/View_Ebay')->isAdvancedMode() && Mage::helper('M2ePro/View_Ebay')->isFeedbacksShouldBeShown()) {
         $this->addColumn('feedbacks', array('header' => Mage::helper('M2ePro')->__('Feedback'), 'align' => 'center', 'width' => '120px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'frame_callback' => array($this, 'callbackColumnFeedbacks')));
     }
     return parent::_prepareColumns();
 }