A product variant is one specific version of the same model that differs from the others in some property – for example a T-shirt in size M in blue. In a feed each variant is a separate item with its own code, price and availability and a shared group code that tells the channel the variants belong together.
What is a product variant
On one rack in a shop hangs a sleeping bag of a single model in two lengths and two colours. There is one model but four pieces for sale. Each of those pieces is a variant.
Terms you will meet with variants:
- Parent product (main product, model) – the shared "wrapper", for example "Nordlys sleeping bag -5 °C". It is usually not sold itself.
- Variant (child product) – a specific combination, for example "Nordlys, 200 cm, green".
- Variant parameter – the property the variants differ in: colour, size, length, volume.
- Group code – the shared label for all variants of one model (item_group_id).
- Simple product – a product without variants.
What it looks like in a feed
<!-- Google Merchant -->
<item>
<g:id>SPAC-NL-200-ZEL</g:id>
<g:item_group_id>SPAC-NL</g:item_group_id>
<g:title>Nordlys sleeping bag -5 °C 200 cm green</g:title>
<g:color>green</g:color>
<g:size>200 cm</g:size>
</item>
<!-- Heureka -->
<SHOPITEM>
<ITEM_ID>SPAC-NL-200-ZEL</ITEM_ID>
<ITEMGROUP_ID>SPAC-NL</ITEMGROUP_ID>
<PRODUCTNAME>Nordlys sleeping bag -5 °C 200 cm green</PRODUCTNAME>
<PARAM><PARAM_NAME>Color</PARAM_NAME><VAL>green</VAL></PARAM>
</SHOPITEM>The variant has its own ID and shares the group code SPAC-NL with the other lengths and colours.
What it is used for
- A shop shows one product page with a choice of size and colour instead of four separate pages.
- Google Shopping and Meta show the variants together and send the customer straight to the chosen colour or size.
- Comparison sites match the offer correctly by variant parameters – a T-shirt in M is not a T-shirt in XL.
- Stock – every variant has its own availability, so a sold-out size does not block the others.
What to watch out for
- Variants without their own code. If all sizes have the same ID, the channel treats them as one product.
- Different models in one group. The same group code for different products wrongly merges them.
- A missing difference. Variants must differ in at least one variant parameter and have it filled in.
- The same name. The name of a variant should include the distinguishing property ("200 cm green").
- One EAN for the whole series. Such a shared EAN mixes the variants up during matching.
How Sortyra helps
When loading a source, Sortyra groups variants even if the supplier sends them as separate items with a reference to a parent; you set the reference field in the source settings as the Variant parent field. The Fill in missing codes recipe gives a series with a shared EAN a common group code so that it appears as variants.
Related terms
- item_group_id / ITEMGROUP_ID
- Parameters – PARAM / product_detail
- Color – color
- Size – size
- Shared EAN
- More detail: Parameters and product variants
Frequently asked questions
What is the difference between a variant and a parameter?
A parameter is a property, such as colour. A variant is a separate version of a product that differs from the others in the value of such a parameter.
Should every variant have its own EAN?
Yes, if the manufacturer assigned one. Every size and colour sold should have its own EAN and its own code.
Does the parent product have to be in the feed?
Feeds for Google and comparison sites contain only the variants with a shared group code. A parent as a separate item is needed mainly by imports into shop platforms.