示例#1
0
 protected function _prepareColumns()
 {
     $this->addColumn('magento_category', array('header' => $this->__('Magento Category'), 'align' => 'left', 'width' => '500px', 'type' => 'text', 'index' => 'name', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMagentoCategory')));
     $category = $this->getHelper('Component\\Ebay\\Category')->getCategoryTitle(\Ess\M2ePro\Helper\Component\Ebay\Category::TYPE_EBAY_MAIN);
     $this->addColumn('ebay_categories', array('header' => $this->__('eBay Categories'), 'align' => 'left', 'width' => '*', 'type' => 'options', 'options' => array(1 => $this->__('%1% Selected', $category), 0 => $this->__('%1% Not Selected', $category)), 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnEbayCategories'), 'filter_condition_callback' => array($this, 'callbackFilterEbayCategories')));
     $this->addColumn('actions', array('header' => $this->__('Actions'), 'align' => 'center', 'width' => '100px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'renderer' => '\\Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Renderer\\Action', 'actions' => $this->getColumnActionsItems()));
     return parent::_prepareColumns();
 }
示例#2
0
 protected function _prepareColumns()
 {
     $this->addColumn('magento_category', array('header' => $this->__('Magento Category'), 'align' => 'left', 'width' => '500px', 'type' => 'text', 'index' => 'name', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMagentoCategory')));
     $this->addColumn('description_template', array('header' => $this->__('Description Policy'), 'align' => 'left', 'width' => '*', 'sortable' => false, 'type' => 'options', 'index' => 'description_template_id', 'filter_index' => 'description_template_id', 'options' => array(1 => $this->__('Description Policy Selected'), 0 => $this->__('Description Policy Not Selected')), 'frame_callback' => array($this, 'callbackColumnDescriptionTemplateCallback'), 'filter_condition_callback' => array($this, 'callbackColumnDescriptionTemplateFilterCallback')));
     $actionsColumn = array('header' => $this->__('Actions'), 'renderer' => '\\Ess\\M2ePro\\Block\\Adminhtml\\Magento\\Grid\\Column\\Renderer\\Action', 'align' => 'center', 'width' => '130px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'actions' => array());
     $actions = array(array('caption' => $this->__('Set Description Policy'), 'field' => 'entity_id', 'onclick_action' => 'ListingGridHandlerObj.setDescriptionTemplateByCategoryRowAction'), array('caption' => $this->__('Reset Description Policy'), 'field' => 'entity_id', 'onclick_action' => 'ListingGridHandlerObj.resetDescriptionTemplateByCategoryRowAction'));
     $actionsColumn['actions'] = $actions;
     $this->addColumn('actions', $actionsColumn);
     return parent::_prepareColumns();
 }
示例#3
0
 protected function _prepareColumns()
 {
     $this->addColumn('magento_category', array('header' => $this->__('Magento Category'), 'align' => 'left', 'type' => 'text', 'index' => 'name', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMagentoCategory')));
     $this->addColumn('action', array('header' => $this->__('Action'), 'align' => 'center', 'width' => '75px', 'type' => 'text', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnActions')));
     return parent::_prepareColumns();
 }