Skip to content

Commit b89b3ca

Browse files
authored
Add status column to customer orders grid in Admin (#3582)
1 parent e4b7b09 commit b89b3ca

File tree

1 file changed

+9
-0
lines changed
  • app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab

1 file changed

+9
-0
lines changed

app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ protected function _prepareCollection()
4545
->addFieldToSelect('created_at')
4646
->addFieldToSelect('grand_total')
4747
->addFieldToSelect('order_currency_code')
48+
->addFieldToSelect('status')
4849
->addFieldToSelect('store_id')
4950
->addFieldToSelect('billing_name')
5051
->addFieldToSelect('shipping_name')
@@ -90,6 +91,14 @@ protected function _prepareColumns()
9091
'currency' => 'order_currency_code',
9192
]);
9293

94+
$this->addColumn('status', [
95+
'header' => Mage::helper('customer')->__('Status'),
96+
'index' => 'status',
97+
'type' => 'options',
98+
'width' => '150px',
99+
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
100+
]);
101+
93102
if (!Mage::app()->isSingleStoreMode()) {
94103
$this->addColumn('store_id', [
95104
'header' => Mage::helper('customer')->__('Bought From'),

0 commit comments

Comments
 (0)