How to get/output customer attribute value via PHP code?

Please use the following code if you need to get customer attribute value anywhere while using the Customer Attributes extension:

< ?php $value = $customer->getCustomAttribute('attribute_code')->getValue(); ? >

where $customer is customer object, and attribute_code is a code of customer attribute, created via the `Amasty: Customer Attributes` extension.

How can we help you?

Didn’t you find the answer to your question? We are always happy to help you out.

© 2009-2021 Amasty. All Rights Reserved.