How can I retrieve a list of attributes and values by given attribute set ID in Magento 2?

  • Did you find the solution, Please update the answer – Jaisa Jun 22 '18 at 6:26

You can use the Magento\Eav\Api\AttributeManagementInterface service contract class:

$attributeManagementInterface->getAttributes(\Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE, $attributeSetId);
  • 1
    can you please elaborate your answer ? – Sarfaraj Sipai Oct 16 '17 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.