예제 #1
0
 protected function _prepareCollection()
 {
     $this->prepareCacheData();
     $collection = Mage::helper('M2ePro/Component_Buy')->getCollection('Listing_Other');
     $collection->getSelect()->group(array('account_id', 'marketplace_id'));
     // Set collection to grid
     $this->setCollection($collection);
     return parent::_prepareCollection();
 }
예제 #2
0
 protected function _prepareColumns()
 {
     $this->addColumnAfter('marketplace', array('header' => Mage::helper('M2ePro')->__('Marketplace'), 'align' => 'left', 'type' => 'text', 'sortable' => false, 'frame_callback' => array($this, 'callbackColumnMarketplace')), 'account');
     return parent::_prepareColumns();
 }