سؤال

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?

هل كانت مفيدة؟

المحلول

For get default attribute set ID for the customer:

$attribute_set_id = \Magento\Customer\Api\CustomerMetadataInterface::ATTRIBUTE_SET_ID_CUSTOMER
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top