3

We have tried to add store filter in order list page admin section. But not able to get solution.

How to add store filter in order grid?. Is it possible for this? Please help.

1

1 Answer 1

1

Just Rewrite class Mage_Adminhtml_Block_Sales_Order_Grid .

On add below code at _prepareColumns()..

<?php
class StackExchange_AdvanceCustomerGrid_Block_Adminhtml_Sales_Order_Grid
 extends Mage_Adminhtml_Block_Sales_Order_Grid{
protected function _prepareColumns()
  {

      $this->addColumnAfter('store_id',array(
              'header' => 'Store',
              'index' => 'store_id',
              'type'  => 'options',
              'width' => '70px',
              'options'   => Mage::getModel('core/store')->getCollection()->toOptionHash(),

      ),'shipping_name');

       parent::_prepareColumns();
       return Mage_Adminhtml_Block_Widget_Grid::_prepareColumns();
  }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.