Exemple #1
0
 protected function _prepareColumns()
 {
     $this->addColumn('create_date', array('header' => Mage::helper('M2ePro')->__('Creation Date'), 'align' => 'left', 'width' => '165px', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     if (count(Mage::helper('M2ePro/Component')->getActiveComponents()) > 1) {
         $this->addColumn('component_mode', array('header' => Mage::helper('M2ePro')->__('Channel'), 'align' => 'right', 'width' => '120px', 'type' => 'options', 'index' => 'component_mode', 'filter_index' => 'main_table.component_mode', 'sortable' => false, 'options' => $this->getComponentModeFilterOptions()));
     }
     $this->addColumn('channel_order_id', array('header' => Mage::helper('M2ePro')->__('Order #'), 'align' => 'left', 'width' => '180px', 'sortable' => false, 'index' => 'channel_order_id', 'frame_callback' => array($this, 'callbackColumnChannelOrderId'), 'filter_condition_callback' => array($this, 'callbackFilterChannelOrderId')));
     $this->addColumn('magento_order_number', array('header' => Mage::helper('M2ePro')->__('Magento Order #'), 'align' => 'left', 'width' => '150px', 'index' => 'so.increment_id', 'frame_callback' => array($this, 'callbackColumnMagentoOrderNumber')));
     $this->addColumn('type', array('header' => Mage::helper('M2ePro')->__('Type'), 'align' => 'left', 'width' => '65px', 'index' => 'type', 'type' => 'options', 'options' => array(Ess_M2ePro_Model_Order_Log::TYPE_ERROR => Mage::helper('M2ePro')->__('Error'), Ess_M2ePro_Model_Order_Log::TYPE_WARNING => Mage::helper('M2ePro')->__('Warning'), Ess_M2ePro_Model_Order_Log::TYPE_SUCCESS => Mage::helper('M2ePro')->__('Success'), Ess_M2ePro_Model_Order_Log::TYPE_NOTICE => Mage::helper('M2ePro')->__('Notice')), 'frame_callback' => array($this, 'callbackColumnType')));
     $this->addColumn('message', array('header' => Mage::helper('M2ePro')->__('Description'), 'align' => 'left', 'width' => '*', 'index' => 'message', 'frame_callback' => array($this, 'callbackColumnMessage')));
     $this->addColumn('initiator', array('header' => Mage::helper('M2ePro')->__('Run Mode'), 'align' => 'left', 'width' => '65px', 'index' => 'initiator', 'type' => 'options', 'options' => array(Ess_M2ePro_Model_Order_Log::INITIATOR_UNKNOWN => Mage::helper('M2ePro')->__('Unknown'), Ess_M2ePro_Model_Order_Log::INITIATOR_EXTENSION => Mage::helper('M2ePro')->__('Automatic'), Ess_M2ePro_Model_Order_Log::INITIATOR_USER => Mage::helper('M2ePro')->__('Manual')), 'frame_callback' => array($this, 'callbackColumnInitiator')));
     return parent::_prepareColumns();
 }
Exemple #2
0
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set delete action
     //--------------------------------
     $this->getMassactionBlock()->addItem('delete', array('label' => Mage::helper('M2ePro')->__('Delete'), 'url' => $this->getUrl('*/*/delete'), 'confirm' => Mage::helper('M2ePro')->__('Are you sure?')));
     //--------------------------------
     return parent::_prepareMassaction();
 }
Exemple #3
0
 protected function _prepareMassaction()
 {
     // Set massaction identifiers
     //--------------------------------
     $this->setMassactionIdField('main_table.id');
     $this->getMassactionBlock()->setFormFieldName('ids');
     //--------------------------------
     // Set delete action
     //--------------------------------
     $confirm = 'Be attentive! By deleting account you delete all information on it from M2E Pro server. ';
     $confirm .= 'This will cause inappropriate work of all accounts\' copies.';
     $confirm = Mage::helper('M2ePro')->__($confirm);
     $this->getMassactionBlock()->addItem('delete', array('label' => Mage::helper('M2ePro')->__('Delete'), 'url' => $this->getUrl('*/*/delete'), 'confirm' => $confirm));
     //--------------------------------
     return parent::_prepareMassaction();
 }