Magento 1.x Security Patch Notice
For Magento Open Source 1.5 to 1.9, Magento is providing software security patches through June 2020 to ensure those sites remain secure and compliant. Visit our information page for more details about our software maintenance policy and other considerations for your business.
Creating Attributes
The properties of an attribute determine how it can be used in your catalog and how it appears throughout your store. In addition to the basic properties, there are additional properties for drop-down and multiple-select input types, their values, and associated labels. The title, or label, identifies the attribute in the Admin and your storefront. If your store is available in multiple languages, you can enter a different translated label for each language. Attributes can be created with the Manage Attributes tool, and also from inside a product record.
Manage Attributes
Step 1: Assign the Attribute Properties
|
1.
|
On the Admin menu, select Catalog > Attributes > Manage Attributes. Then, click the Add New Attribute button. |
|
2.
|
In the Attribute Properties section, complete the following required (*) properties: |
|
a.
|
Enter a unique Attribute Code to identify the attribute internally. The code should be all lowercase characters without spaces. |
|
b.
|
In the Apply To list, choose each product type that is associated with the attribute. |
Attribute Properties
|
a.
|
Set Scope to the indicate where the attribute can be used. |
|
b.
|
Set Catalog Input Type for Store Owner to the type of input control used by the store administrator during data entry. |
|
c.
|
If you want to prevent duplicate values from being entered in this field, set Unique Value to “Yes.” |
|
d.
|
To require that a value must be entered in the field before the record can be saved, set Values Required to “Yes.” |
|
e.
|
To run a validity test of data entered into the field, set Input Validation for Store Owner to the type of data the attribute should contain. |
Frontend Properties
Step 2: Define the Label and Values
|
1.
|
In the Attribute Information panel on the left, select Manage Label / Options. Then, do the following: |
|
a.
|
In the Manage Titles section, under Admin, enter a descriptive label to identify the field during data entry. |
|
b.
|
The next column determines how the label appears in your storefront. You can leave the box blank to use the Admin label as the default. |
|
c.
|
If your store is available in multiple languages, enter a translated label into each box, as needed. |
|
2.
|
For drop-down or multiple-select input types, do the following: |
|
a.
|
In the Manage Options section, click the Add Option button. |
|
b.
|
In the new row, under Admin, type the value you want to use in your store's Admin. |
|
c.
|
Enter the value you want your customers to see. (Leave blank to use the Admin value as the default.) |
|
d.
|
If applicable, enter a translated value for each language supported. |
|
e.
|
Enter a number to determine the Position of this value in relation to other options in the list. |
|
f.
|
Select Is Default to automatically select this value. |
|
g.
|
Repeat these steps for each value you want to add to the list. |
Manage Label / Options for Dropdown Input Type
|
3.
|
When complete, click the Save Attribute button. |
The attribute appears in the Manage Attributes list, sorted in alphabetical order by Attribute Code. Use the Page controls to view each page of the list.