I wrote my own Magento function which calculates the percentage relation of orders to retours. In this way you can categorize customers into those, who never give bought things back (green - good customers), who sometimes make retours (yellow) and those ones, who return most of bought things (red - bad customers).
For this, I added a new db table which saves required information.
Now, I would like to add a new column in Magento's admin Customers->Manage customers which shows the appropriate color. I managed to add the header of the new column, but I have no clue how to show my custom calculations from my custom db table. Magento makes everything so complicated.
I edited the "app/code/core/Mage/Adminhtml/Block/Customer/Grid.php" and added the following code into the "prepareColumns":
$this->addColumn('abc', array( 'header' => "ABC" ));
So, how do I fill it with any data?
I appreciate any help.