0

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

0

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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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