Login to Magento Admin>Store>Attributes>Product
On the Product Attributes page, you can see by default that Magento gives us pre-defined attributes.
Let me create a new attribute.
Click on Add New Attribute
Now we need to fill out details in the New Product Attribute and then Save.
Let’s explain the fields:
Default Label:Label text attributes that recognize the attribute.
Catalog Input Type for Store Owner: Determines the kind of data and input control that is used to manage the product from the Admin store. For example, Text Field, Text Area, Yes/No, Date, Dropdown, etc.
Values required:To request that a value be entered in this field before the record can be saved, set Values Required to Yes.
For Advanced Attribute Properties:
Attribute Code:Identifier unique to internal use.
Scope:Limits the use of an attribute to a specific store view or website. Options: Store View / Website / Global.
Default value:Assigns a start value for the attribute ease of data entry.
Use in Filter Options:Determines if the attribute is used as a filter control at the top of columns in the grid. Options: Yes / No.
The filter control is only shown when Add to Column Options is turned on.
For more details, see the Commerce User Guide.
Step 2: Assign Product Attribute to Attribute Set in Magento?
Login to Admin>Stores>Attributes>Attribute Set
Attribute Sets page>Select set from the list>Drag and Drop Unassigned Attributes to Group
can also add a new set of attributes.
Once you drag and drop it:
Here we have successfully created a Custom Attribute and assigned it to the Attribute Set. And go the catalog-> product->here can see the non discountable field on every product:
A nd for new product also it will applied: