Here i m create one customer attribute.

Using custom module i want to change customer attribute.

Now i want that customer attribute column in my custom grid

in my custom table i m saving customer id.

So is it possible?

enter image description here I want this attribute in my custom module grid

1 Answer 1


This is work for me

$collection = Mage::getModel("module/model")->getCollection();
        $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('customer', '[your attribute name]');
        $collection->getSelect()->join(array('l' => 'customer_entity_int'),
                'main_table.customer_ids = l.entity_id');
        $collection->getSelect()->where('l.attribute_id =?',$attributeId);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.