Skip to content

Commit

Permalink
Sort order grid columns (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Feb 17, 2024
1 parent 267d83a commit 370d981
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ protected function _prepareColumns()
'index' => 'increment_id',
]);

if (!Mage::app()->isSingleStoreMode()) {
$this->addColumn('store_id', [
'header' => Mage::helper('customer')->__('Bought From'),
'index' => 'store_id',
'type' => 'store',
'store_view' => true
]);
}

$this->addColumn('created_at', [
'header' => Mage::helper('customer')->__('Purchase On'),
'index' => 'created_at',
Expand Down Expand Up @@ -99,15 +108,6 @@ protected function _prepareColumns()
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
]);

if (!Mage::app()->isSingleStoreMode()) {
$this->addColumn('store_id', [
'header' => Mage::helper('customer')->__('Bought From'),
'index' => 'store_id',
'type' => 'store',
'store_view' => true
]);
}

if (Mage::helper('sales/reorder')->isAllow()) {
$this->addColumn('action', [
'header' => ' ',
Expand Down

0 comments on commit 370d981

Please sign in to comment.