How Variants Work
Learn how EverShop sells one product in several versions, such as a coffee cup in black, white and yellow.
Each variant is its own product
In EverShop, a product variant is a complete product. It has its own name, SKU, price, stock, images and web address. A variant group joins the variants, so customers see them as one item with a choice.
For example, a coffee shop sells the Ceramic Coffee Cup in three colors. These are three products in one variant group:
| Product | SKU | Color |
|---|---|---|
| Ceramic Coffee Cup - Black | CUP-001-BLK | Black |
| Ceramic Coffee Cup - White | CUP-001-WHT | White |
| Ceramic Coffee Cup - Yellow | CUP-001-YEL | Yellow |
No variant is the main product. All products in a variant group are equal. Open any of them, and its Variant Group card lists the others.
The variant group
A variant group names the attributes that its products differ by, such as Color. These are the variant attributes.
- A variant attribute must have the type Select, such as Color with the options Black, White and Yellow. See Create an Attribute.
- A variant group uses 1 to 5 variant attributes, for example Color and Size.
- Each product in the group has its own option for each variant attribute, such as White.
- All products in a variant group use the same attribute group. The variant attributes must belong to it.
- A product can be in one variant group only.
You create a variant group and add variants on a product's edit page. See Create Product Variants.
What variants share
Some settings belong to the whole variant group. When you save one variant, EverShop copies these settings to the other variants in the group.
| Setting | Card | What is shared |
|---|---|---|
| Category | General Information | All variants are in one category. Changing it on one variant changes the web address of every variant. See Product address and redirects. |
| Tax Class | General Information | All variants use one tax class. |
| Package | Shipping | All variants ship in the same box. EverShop copies the package each time you save a variant. |
| No shipping required? | Shipping | Selecting or clearing it on one variant does the same on all variants. EverShop also copies that variant's Weight to them. |
| Other attributes | Attribute group | Values of attributes that are not variant attributes, such as Material, are copied to every variant. Empty values are not copied. |
| Attribute group | Attribute group | All variants use one attribute group. |
Everything else belongs to each variant. This includes the Product Name, SKU, Price, Description and images. It also includes the stock, Status, Visibility, URL Key, SEO fields, Weight and collections.
What customers see on the product page
On the storefront, the product page shows a button for each option, such as Black, White and Yellow.
- When a customer clicks an option, the page shows that variant: its name, price, SKU and images. The address stays the same, with the choice added, for example
/drinkware/ceramic-coffee-cup-white?color=6. - On a variant's own address, the page opens with that variant's option selected, such as White on the white cup's page.
- Only enabled variants appear as options. If Show out of stock products is off in Catalog Settings, out-of-stock variants do not appear either.
- A group can have two variant attributes, such as Color and Size. Then an option without a matching variant is grayed out.
Variants in product lists
On the storefront, category pages and search results show each variant as its own product. This happens when its Visibility is Catalog, Search. In the example below, the Drinkware page shows all three coffee cups.
You can show one card per variant group. Set the other variants to Not visible individually in their Product Status card. Then:
- The list shows only the variant that is visible.
- A customer can filter by an option, such as Color Black. The list then shows the matching variant, even if it is not visible individually.
- Hidden variants still appear as options on the product page, and their own pages still open.
- If every variant is Not visible individually, the group does not appear in lists at all.
Variants in the admin panel
In Catalog › Products, each variant group shows as one row: the variant that was created last. To find another variant, search for its name, such as Black. The Product type filter shows Configurable products, which are in a variant group, or Simple products, which are not.
Next steps
- Create Product VariantsCreate a variant group and add variants to a product.
- Create an AttributeMake the Select attribute your variants differ by.
- Attribute GroupsDecide which attributes each product has.
- Manage StockSet the stock of each variant.
For developers
To manage variant groups with code, see the Product Variant REST API.