Attribute Groups
Learn how attribute groups decide which attributes each EverShop product has, and what happens when a product changes group.
What an attribute group is
An attribute group is a named set of attributes. Each product belongs to one attribute group. The product's Attribute group card shows a field for each attribute in that group, and for no other attribute.
Use attribute groups when different products need different details. For example, a group Mugs can hold Color and Material. A group T-shirts can hold Color and Size. One attribute can be in many groups.
In the screenshots on this page, all products use the attribute group Demo Products. It holds Color and Size.
The Default group
Every EverShop store has an attribute group named Default. A new product starts in the Default group. You can add attributes to it, like to any other group.
Create an attribute group
You create a group from the form of an attribute:
- Go to Catalog › Attributes. Click New Attribute, or click the name of an attribute.
- In the Create a new group box, type the group name and click the plus icon. EverShop creates the group at once, even if you leave without saving the attribute.
- Under Select groups the attribute belongs to, open the list and choose the new group.
- Click Save. The attribute now belongs to the new group.
Check the list before you create a group, so you do not make two groups with the same name.
Add attributes to a group
You add an attribute to a group from the attribute's form, under Select groups the attribute belongs to. Choose a group to add the attribute to it. Click the × on a group to take the attribute out of it. Then click Save. The Groups column in Catalog › Attributes shows the groups of each attribute.
Taking an attribute out of a group deletes that attribute's values from every product in the group. It also deletes the variant groups that use the attribute. You cannot undo this. See Change or delete an attribute.
Rename or delete a group
- Rename a group: in the Groups column of Catalog › Attributes, click the group name. Type the new Group Name in the window and click Save.
- Delete a group: a developer can delete a group with the API. Deleting a group also deletes its variant groups and the attribute values of its products. Its products are left with no attribute group.
The Attribute group card on a product
On a product's page in the admin panel, the Attribute group card has two parts:
- The Attribute group list, where you choose the product's group.
- One field for each attribute of the group, such as Color and Size. The type of the attribute decides the field: see Attribute types. A red star marks a required attribute.
All products of a variant group use one attribute group. The card of a product in a variant group shows the group's name instead of the list. Below the name is this message: "Can not change the attribute group of a product that is already in a variant group."
What happens when a product changes group
You change a product's group in the Attribute group list of its Attribute group card.
- The card shows the fields of the new group at once. Nothing is saved yet.
- When you click Save, EverShop deletes the product's values for attributes that are not in the new group. If you move the product back later, you must enter those values again.
- Values of attributes that are in both groups stay.
- All products of a variant group use one attribute group.
Next steps
- Create an AttributeMake an attribute and add it to groups.
- Create Product VariantsBuild variants from the attributes of a group.
- How Variants WorkWhy all variants share one attribute group.
- Add a ProductChoose a product's attribute group when you create it.
For developers
To create, rename or delete attribute groups with code, see the Attribute Group REST API.