Create an Attribute
Create a product attribute in EverShop, such as Color or Material, to describe and filter your products.
An attribute is a product detail that you define once and then fill in on each product. You fill in the value in the product's Attribute group card.
Before you start
- Choose the Type with care. You cannot change the type or the code after you save the attribute.
- To use the attribute for variants, or as a filter on category pages, choose Select.
- Decide which attribute groups the attribute belongs to. A product shows only the attributes of its own attribute group.
Steps
-
Go to Catalog › Attributes and click New Attribute.
-
In General, enter the Name and the Code, and choose the Type. Customers see the name, such as Material. The code is a unique ID, such as
material. -
Under Select groups the attribute belongs to, choose one or more groups. To make a new group, see Create an attribute group.
-
In Setting, choose Is Required?, Is Filterable? and Display on Frontend?, and enter the Sort Order. A new attribute starts with Is Required? set to Yes. Choose No unless every product in the group needs a value.
-
Click Save. The message "Attribute created successfully!" appears, and the attribute's edit page opens.
-
Select and Multiselect only: on the edit page, click Add option and type the option text, such as Black. Add one option for each value.
-
Click Save.
The attribute now appears in the attribute list. It also appears in the Attribute group card of every product in its groups.
Attribute types
The type decides how you enter the value on a product. It also decides what the attribute can do on the storefront.
| Type | On the product form | Variants | Filter on category pages |
|---|---|---|---|
| Text | A one-line text box. | No | No |
| Textarea | A larger text box. | No | No |
| Select | A list. The product has one option. | Yes | Yes |
| Multiselect | A list. The product can have several options. | No | No |
Settings on this page
| Card | Field | What it does | Default |
|---|---|---|---|
| General | Name | The label customers see on the product page and above the filter, such as Color. | Empty |
| General | Code | A unique ID. EverShop uses it in the API and in storefront addresses, such as ?color=6 on a product page. You cannot change it after the first save. | Empty |
| General | Type | Text, Select, Multiselect or Textarea. See Attribute types. You cannot change it after the first save. | None |
| General | Select groups the attribute belongs to | The attribute groups whose products show this attribute. | None |
| General | Create a new group | Creates an attribute group as soon as you click the plus icon. | Empty |
| General | Options | The values of a Select or Multiselect attribute, such as Black and White. | No options |
| Setting | Is Required? | Yes: a product in one of the attribute's groups cannot be saved without a value. | Yes |
| Setting | Is Filterable? | Yes: category pages show a filter for the attribute. Works for Select attributes only. | No |
| Setting | Display on Frontend? | Yes: the product page shows the attribute and the product's value. | No |
| Setting | Sort Order | The position of the attribute on the product page and among the filters. Lower numbers come first. | Empty (required) |
What your customers see
An attribute can appear in three places on your storefront. For the filters that shoppers use, see Filters.
-
On the product page. When Display on Frontend? is Yes, the attribute and its value appear under the price. A product without a value has no row for the attribute.
-
On category pages. When Is Filterable? is Yes, the left column shows a filter with the attribute's options. A filter lists only the options that products in the category use. On the Drinkware page, Size has no filter, because no product there has a size.
-
As variant choices. A Select attribute that a variant group uses shows as buttons on the product page. See How Variants Work.
Change or delete an attribute
Catalog › Attributes lists every attribute with its Groups, Type, Is Required? and Is Filterable? values. Use Search to find an attribute by name. To change an attribute, click its name, make the change and click Save.
- Rename an option: change its text. Every product with that option shows the new text.
- Remove an option: click Remove next to it. Products that used the option lose that value. A product variant that used it is then no longer a choice on the storefront.
- Delete an attribute: in the attribute list, select its checkbox, click Delete, and confirm with Delete. EverShop removes the attribute's values from all products. If a variant group uses the attribute, EverShop keeps it and shows a message such as
The attribute "Color" is being used in a variant group.
Removing a group from an attribute deletes the attribute's values from every product in that group. A variant group in that attribute group may use the attribute. EverShop then deletes the variant group too, and its products become separate products. You cannot undo this.
Troubleshooting
Why do my products now ask for a value I do not need?
A new attribute starts with Is Required? set to Yes. Every product in the attribute's groups then needs a value before you can save it. The New Variant dialog cannot save either. If only some products need the attribute, open the attribute, set Is Required? to No, and click Save.
Why does my attribute not show as a filter?
Check three things:
- The Type is Select.
- Is Filterable? is Yes.
- At least one product in the category has a value for the attribute.
Why is my attribute missing from a product's page in the admin panel?
The product shows only the attributes of its attribute group. Open the attribute, add the product's group under Select groups the attribute belongs to, and click Save. To see a product's group, look at its Attribute group card.
Next steps
- Create Product VariantsUse a Select attribute to sell one product in several versions.
- Attribute GroupsDecide which attributes each product has.
- How Variants WorkHow attributes tell variants apart.
For developers
To create and update attributes with code, see the Attribute REST API.