1

I currently use XTENTO Enhanced Order Grid to add fields to the customer grid which works perfectly.

I need to however put in a column for the customers last order date.

I have searched however the only code I found also added in total number of orders and didn't specify the files I needed to edit.

Does anyone have any advice on how I can create / populate this field when an order is placed so I can show it in my grid?

Thanks!

3
2

Please check the following link:

3
  • Thanks, the top one I have read and the issue is it adds two columns and I don't need the total number of orders column. Do I add the code in that example to "app/code/core/Mage/Adminhtml/Block/Customer/Grid.php" ? Jun 2 '15 at 13:49
  • If you don't want to have both the columns, then delete the part $this->addColumn('orders_count', array( 'header' => Mage::helper('customer')->__('Orders Count'), 'index' => 'orders_count', )); from the function _prepareColumns(), that will do the job Jun 3 '15 at 6:30
  • Yes, you can add the codes in app/code/core/Mage/Adminhtml/Block/Customer/Grid.php, but it's a better practise to overwrite the block from local scope Jun 3 '15 at 6:37

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.