Hi I have custom customer attribute for customer in my magento 1.9.
I want that custom attribute value by customer id.

1 Answer 1


You can try below code.... If attribute code "myattr" or "my_attr"

$customer_id = 9;
$customer  = Mage::getModel('customer/customer')->load($customer_id);
$attributeValue  = $customer->getMyattr();// // code is myattr
$attributeValue  = $customer->getMyAttr();// code is my_attr

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.