protected function _prepareColumns() { $this->addColumn('magento_category', array('header' => Mage::helper('M2ePro')->__('Magento Category'), 'align' => 'left', 'width' => '500px', 'type' => 'text', 'index' => 'name', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMagentoCategory'))); $this->addColumn('ebay_categories', array('header' => Mage::helper('M2ePro')->__('eBay Categories'), 'align' => 'left', 'width' => '*', 'type' => 'options', 'options' => array(1 => Mage::helper('M2ePro')->__('Primary eBay Category Selected'), 0 => Mage::helper('M2ePro')->__('Primary eBay Category Not Selected')), 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnEbayCategories'), 'filter_condition_callback' => array($this, 'callbackFilterEbayCategories'))); $this->addColumn('actions', array('header' => Mage::helper('M2ePro')->__('Actions'), 'align' => 'center', 'width' => '100px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'renderer' => 'M2ePro/adminhtml_grid_column_renderer_action', 'actions' => $this->getColumnActionsItems())); return parent::_prepareColumns(); }
protected function _prepareColumns() { $this->addColumn('magento_category', array('header' => Mage::helper('M2ePro')->__('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' => Mage::helper('M2ePro')->__('Description Policy'), 'align' => 'left', 'width' => '*', 'sortable' => false, 'type' => 'options', 'index' => 'description_template_id', 'filter_index' => 'description_template_id', 'options' => array(1 => Mage::helper('M2ePro')->__('Description Policy Selected'), 0 => Mage::helper('M2ePro')->__('Description Policy Not Selected')), 'frame_callback' => array($this, 'callbackColumnDescriptionTemplateCallback'), 'filter_condition_callback' => array($this, 'callbackColumnDescriptionTemplateFilterCallback'))); $actionsColumn = array('header' => Mage::helper('M2ePro')->__('Actions'), 'renderer' => 'M2ePro/adminhtml_grid_column_renderer_action', 'align' => 'center', 'width' => '130px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'actions' => array()); $actions = array(array('caption' => Mage::helper('M2ePro')->__('Set Description Policy'), 'field' => 'entity_id', 'onclick_action' => 'ListingGridHandlerObj.setDescriptionTemplateByCategoryRowAction'), array('caption' => Mage::helper('M2ePro')->__('Reset Description Policy'), 'field' => 'entity_id', 'onclick_action' => 'ListingGridHandlerObj.resetDescriptionTemplateByCategoryRowAction')); $actionsColumn['actions'] = $actions; $this->addColumn('actions', $actionsColumn); return parent::_prepareColumns(); }
protected function _prepareColumns() { $this->addColumn('magento_category', array('header' => Mage::helper('M2ePro')->__('Magento Category'), 'align' => 'left', 'width' => '500px', 'type' => 'text', 'index' => 'name', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMagentoCategory'))); $this->addColumn('ebay_categories', array('header' => Mage::helper('M2ePro')->__('eBay Categories'), 'align' => 'left', 'width' => '*', 'type' => 'options', 'options' => array(1 => Mage::helper('M2ePro')->__('Primary eBay Category Selected'), 0 => Mage::helper('M2ePro')->__('Primary eBay Category Not Selected')), 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnEbayCategories'), 'filter_condition_callback' => array($this, 'callbackFilterEbayCategories'))); $actionsColumn = array('header' => Mage::helper('M2ePro')->__('Actions'), 'align' => 'center', 'width' => '100px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'frame_callback' => array($this, 'callbackColumnActions'), 'actions' => array()); $actions[] = array('label' => Mage::helper('catalog')->__('Edit Primary Category'), 'value' => 'editPrimaryCategories'); if ($this->listing->getAccount()->getChildObject()->getEbayStoreCategories()) { $actions[] = array('label' => Mage::helper('catalog')->__('Edit Store Primary Category'), 'value' => 'editStorePrimaryCategories'); } $actions[] = array('label' => Mage::helper('catalog')->__('Edit Categories'), 'value' => 'editCategories'); $actionsColumn['actions'] = $actions; $this->addColumn('actions', $actionsColumn); return parent::_prepareColumns(); }
protected function _prepareColumns() { $this->addColumn('magento_category', array('header' => Mage::helper('M2ePro')->__('Magento Category'), 'align' => 'left', 'type' => 'text', 'index' => 'name', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMagentoCategory'))); $this->addColumn('action', array('header' => Mage::helper('M2ePro')->__('Action'), 'align' => 'center', 'width' => '75px', 'type' => 'text', 'filter' => false, 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnActions'))); return parent::_prepareColumns(); }