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.
We use cookies to help improve our services, make personal offers, and enhance your experience. If you do not accept optional cookies below, your experience may be affected. If you want to know more, please read the Cookie Policy
Please select and accept your Cookies Group
Cookie Name | Cookie Provider | Cookie Description | Cookie Lifetime | Cookie Type |
---|---|---|---|---|
Login and Registration Form