2

Good morning,

We are currently using Magento and trying to list 'Processing' orders as default.
We have located the status dropdown column but can't figure out how to set 'Processing' as default.

We would love some help on this, Thank you.

$this->addColumn('status', array(
            'header' => Mage::helper('sales')->__('Status'),
            'index' => 'status',
            'type'  => 'options',
            'width' => '70px',
            'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
        ));

enter image description here

2
  • 1
    You mean you want to see only the processing orders when clicking Sales->Orders and then see the rest if you choose to change the filter?
    – Marius
    Sep 9 '14 at 10:11
  • Morning @Marius, This is correct.
    – rawco_de
    Sep 9 '14 at 10:13
3

Copy

app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

to

Copy app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php

Then goto function __construct add below code to after parent::__construct() add

$this->setDefaultFilter(array('status'=>'processing'));
1
  • Morning Amit, I copied the code above direct into app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php As we didn't have a app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php file or document, everything seems to be working. Thank you:)
    – rawco_de
    Sep 9 '14 at 10:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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