Add Order Status to Last 5 Orders on Magento Admin Dashboard

Posted on March 24, 2012 | Magento 1

It's happened to us all folks, you log onto the admin dashboard you see an new order in the last 5 orders list and automatically think to yourself, "Nice, I have a new order!". Well hold on a minute, this is not always the case, the order could have be abandoned or pending payment. This has happened to me a few too many times this week so I decided, I NEED to have the order status along with the Customer Name, Items & Grand Total.

If you follow the instructions below, I will show you how to add Status to the Last 5 Orders grid.

First of all, and this is a must when modifying any core files, create a local copy of the following file:

Copy app/code/core/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php

To app/code/local/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php

Open your local copy of Grid.php and around line 114 add the following:

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

Save and upload the local copy and you should now have a column called Status in your Last 5 Orders.