Beispiel #1
0
 protected function _prepareColumns()
 {
     $this->addColumn('synch_task', array('header' => Mage::helper('M2ePro')->__('Synchronization'), 'align' => 'left', 'width' => '200px', 'type' => 'options', 'index' => 'synch_task', 'sortable' => false, 'filter_index' => 'main_table.synch_task', 'options' => Mage::getModel('M2ePro/Synchronization_Logs')->getActionsTitles()));
     $this->addColumn('description', array('header' => Mage::helper('M2ePro')->__('Description'), 'align' => 'left', 'type' => 'text', 'index' => 'description', 'filter_index' => 'main_table.description', 'frame_callback' => array($this, 'callbackDescription')));
     $this->addColumn('type', array('header' => Mage::helper('M2ePro')->__('Type'), 'width' => '80px', 'index' => 'type', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogTypeList(), 'frame_callback' => array($this, 'callbackColumnType')));
     $this->addColumn('priority', array('header' => Mage::helper('M2ePro')->__('Priority'), 'width' => '80px', 'index' => 'priority', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogPriorityList(), 'frame_callback' => array($this, 'callbackColumnPriority')));
     $this->addColumn('create_date', array('header' => Mage::helper('M2ePro')->__('Creation Date'), 'align' => 'left', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'width' => '150px', 'index' => 'create_date'));
     return parent::_prepareColumns();
 }
Beispiel #2
0
 protected function _prepareColumns()
 {
     $ebayListingData = Mage::registry('M2ePro_data');
     $this->addColumn('create_date', array('header' => Mage::helper('M2ePro')->__('Creation Date'), 'align' => 'left', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'width' => '150px', 'index' => 'create_date'));
     $this->addColumn('ebay_item', array('header' => Mage::helper('M2ePro')->__('eBay Item ID'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'ebay_item', 'filter_index' => 'el.ebay_item', 'frame_callback' => array($this, 'callbackColumnEbayItemId')));
     $this->addColumn('title', array('header' => Mage::helper('M2ePro')->__('Product Name'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle')));
     $this->addColumn('action', array('header' => Mage::helper('M2ePro')->__('Action'), 'align' => 'left', 'width' => '250px', 'type' => 'options', 'index' => 'action', 'sortable' => false, 'filter_index' => 'main_table.action', 'options' => Mage::getModel('M2ePro/EbayListingsLogs')->getActionsTitles()));
     $this->addColumn('description', array('header' => Mage::helper('M2ePro')->__('Description'), 'align' => 'left', 'type' => 'text', 'index' => 'description', 'filter_index' => 'main_table.description', 'frame_callback' => array($this, 'callbackDescription')));
     $this->addColumn('type', array('header' => Mage::helper('M2ePro')->__('Type'), 'width' => '80px', 'index' => 'type', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogTypeList(), 'frame_callback' => array($this, 'callbackColumnType')));
     $this->addColumn('priority', array('header' => Mage::helper('M2ePro')->__('Priority'), 'width' => '80px', 'index' => 'priority', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogPriorityList(), 'frame_callback' => array($this, 'callbackColumnPriority')));
     return parent::_prepareColumns();
 }
Beispiel #3
0
 protected function _prepareColumns()
 {
     $listingData = Mage::registry('M2ePro_data');
     $this->addColumn('create_date', array('header' => Mage::helper('M2ePro')->__('Creation Date'), 'align' => 'left', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'width' => '150px', 'index' => 'create_date'));
     if (!isset($listingData['id'])) {
         $this->addColumn('listing_id', array('header' => Mage::helper('M2ePro')->__('Listing ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'listing_id', 'filter_index' => 'main_table.listing_id'));
         $this->addColumn('listing_title', array('header' => Mage::helper('M2ePro')->__('Listing Title'), 'align' => 'left', 'type' => 'text', 'index' => 'listing_title', 'filter_index' => 'main_table.listing_title', 'frame_callback' => array($this, 'callbackColumnListingTitle')));
     }
     $this->addColumn('product_id', array('header' => Mage::helper('M2ePro')->__('Product ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'product_id', 'filter_index' => 'main_table.product_id'));
     $this->addColumn('product_title', array('header' => Mage::helper('M2ePro')->__('Product Title'), 'align' => 'left', 'type' => 'text', 'index' => 'product_title', 'filter_index' => 'main_table.product_title', 'frame_callback' => array($this, 'callbackColumnProductTitle')));
     $this->addColumn('action', array('header' => Mage::helper('M2ePro')->__('Action'), 'align' => 'left', 'width' => '250px', 'type' => 'options', 'index' => 'action', 'sortable' => false, 'filter_index' => 'main_table.action', 'options' => Mage::getModel('M2ePro/ListingsLogs')->getActionsTitles()));
     $this->addColumn('description', array('header' => Mage::helper('M2ePro')->__('Description'), 'align' => 'left', 'type' => 'text', 'index' => 'description', 'filter_index' => 'main_table.description', 'frame_callback' => array($this, 'callbackDescription')));
     $this->addColumn('type', array('header' => Mage::helper('M2ePro')->__('Type'), 'width' => '80px', 'index' => 'type', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogTypeList(), 'frame_callback' => array($this, 'callbackColumnType')));
     $this->addColumn('priority', array('header' => Mage::helper('M2ePro')->__('Priority'), 'width' => '80px', 'index' => 'priority', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogPriorityList(), 'frame_callback' => array($this, 'callbackColumnPriority')));
     $this->addColumn('initiator', array('header' => Mage::helper('M2ePro')->__('Run Mode'), 'width' => '80px', 'index' => 'initiator', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogInitiatorList(), 'frame_callback' => array($this, 'callbackColumnInitiator')));
     return parent::_prepareColumns();
 }