예제 #1
0
 protected function _prepareColumns()
 {
     $this->addColumnAfter('marketplace', array('header' => Mage::helper('M2ePro')->__('Marketplace'), 'align' => 'left', 'type' => 'options', 'width' => '100px', 'index' => 'marketplace_id', 'filter_index' => 'marketplace_id', 'filter_condition_callback' => array($this, 'callbackFilterMarketplace'), 'frame_callback' => array($this, 'callbackColumnMarketplace'), 'options' => $this->getEnabledMarketplaceTitles()), 'type');
     parent::_prepareColumns();
     $options = array(self::TEMPLATE_SELLING_FORMAT => Mage::helper('M2ePro')->__('Selling Format'), self::TEMPLATE_SHIPPING_OVERRIDE => Mage::helper('M2ePro')->__('Shipping Override'), self::TEMPLATE_DESCRIPTION => Mage::helper('M2ePro')->__('Description'), self::TEMPLATE_SYNCHRONIZATION => Mage::helper('M2ePro')->__('Synchronization'));
     $this->getColumn('type')->setData('options', $options);
     $this->getColumn('title')->setData('header', Mage::helper('M2ePro')->__('Title / Description Policy Category'));
     $this->getColumn('title')->setData('frame_callback', array($this, 'callbackColumnTitle'));
     $this->getColumn('title')->setData('filter_condition_callback', array($this, 'callbackFilterTitle'));
     return $this;
 }