1

I am trying to display all custom address (Added programmatically) attributes on address add/edit page in My Account section.

I have looked into below interface

module-customer/Model/Address/CustomAttributeListInterface.php

It does have the getAttributes() function but the class which implements this interface is module-customer/Model/Address/CustomAttributeList.php and has

public function getAttributes()
{
   return [];
}

I don't know why the core team has left it like this. Was this intentional or this will get an update in next versions?

1 Answer 1

0

I believe this is a "hook" in the Open Source edition that the commercial edition ("Magento Commerce") uses to implement admin-managed customer address attributes. This is one of the features that's exclusive to Commerce. While it's possible to add additional customer address attributes in the Open Source version as well using this same "hook," it must be done in code (or potentially managed by a third-party extension).

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.