I am trying to add the customers Company Name to the customer grid (Manage Customers) in the admin portal. In /app/code/core/Mage/Adminhtml/Block/Customer/Grid.php I have added the following code:
In the _prepareCollection() function I have added this line to the collection:
->joinAttribute('billing_company', 'customer_address/company', 'default_billing', null, 'left')
And in the _prepareColumns() function I have added this code to create the new column:
'header' => Mage::helper('customer')->__('Company'),
'index' => 'billing_company'
The new “Company” column appears in the grid but the value is empty for every customer - no errors being thrown anywhere.
This works on other versions of Magento but not on CE 188.8.131.52??