Esempio n. 1
0
 protected function _prepareColumns()
 {
     $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('task', array('header' => Mage::helper('M2ePro')->__('Synchronization'), 'align' => 'left', 'width' => '200px', 'type' => 'options', 'index' => 'task', 'sortable' => false, 'filter_index' => 'main_table.task', 'options' => $this->getActionTitles()));
     $this->addColumn('description', array('header' => Mage::helper('M2ePro')->__('Description'), 'align' => 'left', 'type' => 'text', 'string_limit' => 350, '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')));
     return parent::_prepareColumns();
 }
Esempio n. 2
0
 protected function _prepareColumns()
 {
     $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 (!$this->viewComponentHelper->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()));
     }
     $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' => $this->getActionTitles()));
     $this->addColumn('description', array('header' => Mage::helper('M2ePro')->__('Description'), 'align' => 'left', 'type' => 'text', 'string_limit' => 350, '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();
 }
Esempio n. 3
0
 protected function _prepareColumns()
 {
     $columnTitles = $this->getColumnTitles();
     $this->addColumn('create_date', array('header' => $columnTitles['create_date'], 'align' => 'left', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'width' => '150px', 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     $this->addColumn('action', array('header' => $columnTitles['action'], 'align' => 'left', 'width' => '250px', 'type' => 'options', 'index' => 'action', 'sortable' => false, 'filter_index' => 'main_table.action', 'options' => $this->getActionTitles()));
     $this->addColumn('identifier', array('header' => $columnTitles['identifier'], 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'identifier', 'filter_index' => 'main_table.identifier', 'frame_callback' => array($this, 'callbackColumnIdentifier')));
     $this->addColumn('title', array('header' => $columnTitles['title'], 'align' => 'left', 'type' => 'text', 'index' => 'title', 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle')));
     $this->addColumn('description', array('header' => $columnTitles['description'], 'align' => 'left', 'type' => 'text', 'index' => 'description', 'filter_index' => 'main_table.description', 'frame_callback' => array($this, 'callbackDescription')));
     $this->addColumn('initiator', array('header' => $columnTitles['initiator'], 'width' => '80px', 'index' => 'initiator', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogInitiatorList(), 'frame_callback' => array($this, 'callbackColumnInitiator')));
     $this->addColumn('type', array('header' => $columnTitles['type'], 'width' => '80px', 'index' => 'type', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogTypeList(), 'frame_callback' => array($this, 'callbackColumnType')));
     return parent::_prepareColumns();
 }
Esempio n. 4
0
 protected function _prepareColumns()
 {
     $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', 'filter_index' => 'main_table.create_date'));
     if (!isset($listingData['id']) && 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('identifier', array('header' => Mage::helper('M2ePro')->__('Identifier'), 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'identifier', 'filter_index' => 'main_table.identifier', 'frame_callback' => array($this, 'callbackColumnIdentifier')));
     $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/Listing_Other_Log')->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('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')));
     $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();
 }
Esempio n. 5
0
 protected function _prepareColumns()
 {
     $columnTitles = $this->getColumnTitles();
     $this->addColumn('create_date', array('header' => $columnTitles['create_date'], 'align' => 'left', 'type' => 'datetime', 'format' => Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM), 'width' => '150px', 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     if (!$this->getEntityId() && !$this->viewComponentHelper->isSingleActiveComponent()) {
         $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->viewComponentHelper->getActiveComponentsTitles()));
     }
     $this->addColumn('identifier', array('header' => $columnTitles['identifier'], 'align' => 'left', 'width' => '100px', 'type' => 'text', 'index' => 'identifier', 'filter_index' => 'main_table.identifier', 'frame_callback' => array($this, 'callbackColumnIdentifier')));
     $this->addColumn('title', array('header' => $columnTitles['title'], 'align' => 'left', 'type' => 'text', 'index' => 'title', 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle')));
     $this->addColumn('action', array('header' => $columnTitles['action'], 'align' => 'left', 'width' => '250px', 'type' => 'options', 'index' => 'action', 'sortable' => false, 'filter_index' => 'main_table.action', 'options' => $this->getActionTitles()));
     $this->addColumn('description', array('header' => $columnTitles['description'], 'align' => 'left', 'type' => 'text', 'index' => 'description', 'filter_index' => 'main_table.description', 'frame_callback' => array($this, 'callbackDescription')));
     $this->addColumn('initiator', array('header' => $columnTitles['initiator'], 'width' => '80px', 'index' => 'initiator', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogInitiatorList(), 'frame_callback' => array($this, 'callbackColumnInitiator')));
     $this->addColumn('type', array('header' => $columnTitles['type'], 'width' => '80px', 'index' => 'type', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogTypeList(), 'frame_callback' => array($this, 'callbackColumnType')));
     $this->addColumn('priority', array('header' => $columnTitles['priority'], 'width' => '80px', 'index' => 'priority', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogPriorityList(), 'frame_callback' => array($this, 'callbackColumnPriority')));
     return parent::_prepareColumns();
 }
Esempio n. 6
0
 protected function _prepareColumns()
 {
     $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('action', array('header' => Mage::helper('M2ePro')->__('Action'), 'align' => 'left', 'width' => '150px', 'type' => 'options', 'index' => 'action', 'sortable' => false, 'filter_index' => 'main_table.action', 'options' => $this->getActionTitles()));
     if (!$this->getEntityId()) {
         $this->addColumn('listing_title', array('header' => Mage::helper('M2ePro')->__('Listing Title / ID'), 'align' => 'left', 'width' => '150px', 'type' => 'text', 'index' => 'listing_title', 'filter_index' => 'main_table.listing_title', 'frame_callback' => array($this, 'callbackColumnListingTitleID'), 'filter_condition_callback' => array($this, 'callbackFilterListingTitleID')));
     }
     if (!$this->isListingProductLog()) {
         $this->addColumn('product_title', array('header' => Mage::helper('M2ePro')->__('Product Title / ID'), 'align' => 'left', 'width' => '280px', 'type' => 'text', 'index' => 'product_title', 'filter_index' => 'main_table.product_title', 'frame_callback' => array($this, 'callbackColumnProductTitleID'), 'filter_condition_callback' => array($this, 'callbackFilterProductTitleID')));
     }
     if ($this->isListingProductLog() && $this->getListingProduct()->isComponentModeAmazon() && ($this->getListingProduct()->getChildObject()->getVariationManager()->isRelationParentType() || $this->getListingProduct()->getChildObject()->getVariationManager()->isRelationChildType() || $this->getListingProduct()->getChildObject()->getVariationManager()->isIndividualType())) {
         $this->addColumn('attributes', array('header' => Mage::helper('M2ePro')->__('Variation'), 'align' => 'left', 'width' => '250px', 'index' => 'additional_data', 'sortable' => false, 'filter_index' => 'main_table.additional_data', 'frame_callback' => array($this, 'callbackColumnAttributes'), 'filter_condition_callback' => array($this, 'callbackFilterAttributes')));
     }
     $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('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')));
     $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')));
     return parent::_prepareColumns();
 }