Question

How to retrieve default attribute set ID for the customer? And also is it possible in the practical scenario to have multiple attribute sets for EAV entity type Customer? I know in the case of entity type product, you can create multiple attribute sets but is it also normal in the case of the customer as well?

Était-ce utile?

La solution

For get default attribute set ID for the customer:

$attribute_set_id = \Magento\Customer\Api\CustomerMetadataInterface::ATTRIBUTE_SET_ID_CUSTOMER
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top