I have the attribute code, But how do I check whether the attribute is exist in the attribute set or not. Please provide me a solution how to get the attribute id from attribute code in magento 2
How to Get Attribute ID by Attribute Code in Magento 2
attribute-setmagento2.2.2product-attribute
Best Answer
Get Attribute Id By Attribute Code In Magento2.
Just you have to follow some steps.
Create constructor
Also you can check more details here.