Hi I have custom customer attribute for customer in my magento 1.9.
I want that custom attribute value by customer id.
1 Answer
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