cancel
Showing results for 
Search instead for 
Did you mean: 

SALES > ORDERS

SALES > ORDERS

Hi,

I have magento ver. 1.9.2.3

 

Please help, I have addition SALES > ORDERS. 

How to set columns as you like in this add-in ?? I would like to move some colums to right, add column with email address.

/WS

 

9 REPLIES 9

Re: SALES > ORDERS

@wiesław_siwier can you please give more details on this?

 

Thanks

Re: SALES > ORDERS

Hi @wiesław_siwier,

 

Can you share a screenshot of what you need to customize and provide more details about those changes?

Re: SALES > ORDERS

Of course, I attach a screenshot of table SALES > ORDERS.

I would like to set these individual columns according to my own will. I don't know where I can do it.orders.png

 

Re: SALES > ORDERS

Somebody know how to do it ??????

Re: SALES > ORDERS

@wiesław_siwier Try the override app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

in your custom module and change the order of columns.

 

Thanks

Re: SALES > ORDERS

Thank you very much. Write me please what code i should add to show column with email address ???

Something like this: 

 

$this->addColumn('shipping_name', array(
'header' => Mage::helper('sales')->__('Ship to Name'),
'index' => 'shipping_name',

Re: SALES > ORDERS

Unfortunately it must be the other file, changers in Grid.php doesn't make a change Smiley Sad

Re: SALES > ORDERS

@wiesław_siwier After changing have you tried by flushing cache and removing generated code?

 

Thanks

Re: SALES > ORDERS

Yes, I've flushed every cache. I added in Grid.php file code below (only BOLD text), but unfortunately table is still the same. 

there can be two reasons:

1. this change i've made isn't sufficient or wrong

2. maybe change should be made in other file.

 

most likely reason 1 is true Smiley Happy

 
--------------------
$this->addColumn('billing_name', array(

'header' => Mage::helper('sales')->__('Bill to Name'),
'index' => 'billing_name',
));

 

$this->addColumn('email', array(
'header' => Mage::helper('sales')->__('Email'),
'width' => '150',
'index' => 'email'
));

 

$this->addColumn('shipping_name', array(
'header' => Mage::helper('sales')->__('Ship to Name'),
'index' => 'shipping_name',
));