# Product attributes and variants in a feed – examples

> What product attributes and variants are, how to write them in an XML feed and why they matter for filters, comparison sites and Google Shopping.

Source: <https://sortyra.com/knowledge-base/product-attributes-and-variants>

---

[Sortyra](https://sortyra.com/) [Knowledge base](https://sortyra.com/knowledge-base) [Feed basics](https://sortyra.com/knowledge-base#basics)

# Product attributes and variants

Sortyra team · March 12, 2026 · 7 min read

Search the knowledge base

[Knowledge base](https://sortyra.com/knowledge-base)

**Feed basics**

- [What is a product feed](https://sortyra.com/knowledge-base/what-is-a-product-feed)
- [Feed types: XML, CSV, TSV, JSON, Google Sheets and API](https://sortyra.com/knowledge-base/feed-types-xml-csv-json)
- [What a product feed is used for](https://sortyra.com/knowledge-base/what-product-feeds-are-used-for)
- [What is a feed manager and when do you need one?](https://sortyra.com/knowledge-base/what-is-a-feed-manager)
- [Supplier feeds, wholesale and dropshipping](https://sortyra.com/knowledge-base/supplier-feed-dropshipping)
- [Feeds for price comparison sites (Heureka, Zboží and others)](https://sortyra.com/knowledge-base/price-comparison-site-feed)
- [Google Merchant Center and Google Shopping feed](https://sortyra.com/knowledge-base/google-merchant-center-feed)
- [Catalogue for Facebook and Instagram](https://sortyra.com/knowledge-base/facebook-instagram-catalogue-feed)
- [Feeds for marketplaces](https://sortyra.com/knowledge-base/marketplace-product-feeds)
- [EAN, GTIN, MPN and product codes](https://sortyra.com/knowledge-base/ean-gtin-mpn-product-code)
- [Product categories and category trees](https://sortyra.com/knowledge-base/product-categories-category-tree)
- [Product attributes and variants](https://sortyra.com/knowledge-base/product-attributes-and-variants)
- [Product matching on comparison sites](https://sortyra.com/knowledge-base/product-matching-comparison-sites)
- [Availability, stock and delivery time](https://sortyra.com/knowledge-base/availability-stock-delivery-time)
- [Price, VAT and currency in a feed](https://sortyra.com/knowledge-base/price-vat-currency-in-feed)
- [Images in feeds](https://sortyra.com/knowledge-base/images-in-product-feeds)
- [How often to update a feed](https://sortyra.com/knowledge-base/how-often-to-update-a-feed)
- [The most common feed errors and how to fix them](https://sortyra.com/knowledge-base/common-feed-errors-how-to-fix)

**Getting started**

- [Getting started with Sortyra – an overview](https://sortyra.com/knowledge-base/getting-started-with-sortyra)
- [Adding your first feed](https://sortyra.com/knowledge-base/adding-your-first-feed)
- [Your first output for a channel](https://sortyra.com/knowledge-base/first-output-for-a-channel)
- [Dashboard](https://sortyra.com/knowledge-base/feed-and-alerts-dashboard)
- [Team, roles and access](https://sortyra.com/knowledge-base/team-roles-and-access)
- [Subscription, payments and free trial](https://sortyra.com/knowledge-base/subscription-payments-free-trial)
- [Billing details](https://sortyra.com/knowledge-base/company-billing-details)
- [Booking a 15-minute call and what to prepare](https://sortyra.com/knowledge-base/book-a-15-minute-call)

**Catalogue**

- [Sources](https://sortyra.com/knowledge-base/sources-input-feeds)
- [Source settings: field mapping, item ID, download schedule, login](https://sortyra.com/knowledge-base/feed-source-settings)
- [Products: search and filters](https://sortyra.com/knowledge-base/products-search-and-filters)
- [Manual edits and locked fields](https://sortyra.com/knowledge-base/manual-edits-locked-fields)
- [Fields and values](https://sortyra.com/knowledge-base/feed-fields-and-values)
- [Categories in Sortyra: your own tree, assignment and channel mapping](https://sortyra.com/knowledge-base/product-categories-in-sortyra)
- [Thematic and seasonal categories: Christmas, gifts, Black Friday](https://sortyra.com/knowledge-base/thematic-seasonal-categories)
- [Renaming a category without losing SEO: 301 redirects for each platform](https://sortyra.com/knowledge-base/rename-category-301-redirects)
- [SortyMigration: moving your shop step by step](https://sortyra.com/knowledge-base/migrating-from-another-platform)
- [Duplicates and the same product from several suppliers](https://sortyra.com/knowledge-base/duplicate-products-multiple-suppliers)

**Processing**

- [Rules: how they work](https://sortyra.com/knowledge-base/feed-rules-bulk-editing)
- [Rule recipes – examples](https://sortyra.com/knowledge-base/feed-rule-recipes-examples)
- [AI Copilot: set up and edit your feed in a conversation](https://sortyra.com/knowledge-base/ai-copilot-plain-language-feed-edits)
- [AI Copilot prompt examples](https://sortyra.com/knowledge-base/ai-copilot-prompt-examples)
- [AI content: titles, descriptions, attributes](https://sortyra.com/knowledge-base/ai-content-descriptions-titles-attributes)
- [Prompt examples for AI content](https://sortyra.com/knowledge-base/ai-content-prompt-examples)
- [Translations, glossary and translation memory](https://sortyra.com/knowledge-base/translate-product-feed-glossary-memory)
- [Image studio](https://sortyra.com/knowledge-base/image-studio-feed-product-photos)
- [Feed visuals (image editor)](https://sortyra.com/knowledge-base/feed-visuals-image-editor)
- [Output check and data quality](https://sortyra.com/knowledge-base/check-feed-before-publishing)

**Outputs and channels**

- [Outputs and feed links](https://sortyra.com/knowledge-base/outputs-and-feed-links)
- [Channel formats and custom specifications](https://sortyra.com/knowledge-base/channel-formats-custom-specification)
- [Sharing feeds with partners](https://sortyra.com/knowledge-base/sharing-feeds-with-partners)
- [Connecting your shop via API](https://sortyra.com/knowledge-base/connect-online-shop-via-api)
- [Marketplaces: connection, offers, orders](https://sortyra.com/knowledge-base/marketplaces-connection-offers-orders)
- [Marketplace pricing: exchange rate, commission, VAT and minimum margin](https://sortyra.com/knowledge-base/marketplace-pricing)
- [Heureka Marketplace: connection, shipping and orders](https://sortyra.com/knowledge-base/heureka-marketplace-connection-orders)

**Prices and sales**

- [Prices and competition](https://sortyra.com/knowledge-base/competitor-based-pricing)
- [Price position](https://sortyra.com/knowledge-base/price-position-on-comparison-sites)
- [Connecting Google Merchant Center: market prices and product performance](https://sortyra.com/knowledge-base/connect-google-merchant-center)
- [Bidding on comparison sites](https://sortyra.com/knowledge-base/cpc-bidding-heureka-zbozi)
- [Product matching with comparison sites in Sortyra](https://sortyra.com/knowledge-base/comparison-site-matching-in-sortyra)
- [Stock and delivery](https://sortyra.com/knowledge-base/stock-and-delivery-times)
- [Own warehouse: marking a source, several warehouses and "in stock"-only feeds](https://sortyra.com/knowledge-base/own-warehouse-stock-feed)
- [Exporting stock from a warehouse program to a feed](https://sortyra.com/knowledge-base/stock-export-warehouse-software)
- [POHODA: exporting stock to your shop, Heureka and Google](https://sortyra.com/knowledge-base/pohoda-stock-export-feed)
- [Money S3: exporting stock to a feed for your shop and comparison sites](https://sortyra.com/knowledge-base/money-s3-stock-export-feed)
- [ABRA Flexi: stock and price-list prices straight into your feed](https://sortyra.com/knowledge-base/abra-flexi-stock-feed)
- [KROS Omega: stock card list into your feed](https://sortyra.com/knowledge-base/kros-omega-stock-feed)
- [Price quotes for customers](https://sortyra.com/knowledge-base/price-quotes-for-business-customers)
- [External and web data](https://sortyra.com/knowledge-base/external-data-and-web-data)

**Insights and checks**

- [Insights and alerts](https://sortyra.com/knowledge-base/feed-insights-and-alerts)
- [Freshness guard and feed update history](https://sortyra.com/knowledge-base/feed-freshness-guard)
- [Safeguards: prices and blocked terms](https://sortyra.com/knowledge-base/feed-safeguards-prices-blocked-terms)
- [Change history and undo](https://sortyra.com/knowledge-base/change-history-and-undo)
- [System status](https://sortyra.com/knowledge-base/system-status-feed-runs)

**Integrations and API**

- [AI and integrations: your own key or Managed AI](https://sortyra.com/knowledge-base/ai-integrations-own-api-key)
- [Alerts by email, Slack, Telegram and webhook](https://sortyra.com/knowledge-base/feed-alerts-email-slack-telegram-webhook)
- [REST API](https://sortyra.com/knowledge-base/rest-api-product-feeds)
- [Working through an AI agent – MCP](https://sortyra.com/knowledge-base/mcp-ai-agent-product-feeds)
- [Agencies and client management](https://sortyra.com/knowledge-base/agencies-client-feed-management)
- [Partner programme: sign-up, commissions and invoices](https://sortyra.com/knowledge-base/partner-programme-commissions)
- [Data and privacy: export, deletion and improving the service](https://sortyra.com/knowledge-base/data-privacy-export-deletion)

**Troubleshooting**

- [The feed is not downloading](https://sortyra.com/knowledge-base/feed-not-downloading-source-error)
- [The supplier stopped updating the feed – how to spot it before your customers do](https://sortyra.com/knowledge-base/supplier-stopped-updating-feed)
- [Products missing from the output](https://sortyra.com/knowledge-base/products-missing-from-feed-output)
- [A comparison site or Google rejects your feed](https://sortyra.com/knowledge-base/comparison-site-or-google-rejects-feed)
- [AI not working or limit reached](https://sortyra.com/knowledge-base/ai-not-working-limit-reached)
- [Frequently asked questions](https://sortyra.com/knowledge-base/sortyra-faq)

Attributes (also called parameters) are a product's properties, such as colour, size, weight or capacity. Variants are versions of the same product that differ in one of these attributes – a T-shirt in five sizes or a tent in two colours. In a feed they are written in their own fields, so the shop and comparison sites can use them.

**In this article**

1. Attributes: the label on the box
2. Variants: T-shirts on one rail
3. What attributes and variants look like in a feed
4. What attributes and variants are for
5. How it works in practice
6. What to watch out for
7. How Sortyra helps
8. Frequently asked questions

## Attributes: the label on the box

When you pick up a box with a sleeping bag in a shop, you will find a table on the side: weight 1.4 kg, comfort temperature 5 °C, length 220 cm, filling hollow fibre. These are **attributes** – specific properties of the product, each with a **name** (“Weight”) and a **value** (“1.4 kg”).

Attributes are not the same as a description. A description is continuous text for people. An attribute is a short, precisely named piece of data that a computer can work with too – for example, to sort, filter or compare products.

## Variants: T-shirts on one rail

Now imagine a rail with one model of T-shirt. It hangs there in sizes S, M, L and XL, each in black and in blue. It is still the same T-shirt, but each item is slightly different. These versions are called **variants**.

With variants:

- **Each variant is a separate item.** It has its own code, its own EAN, its own availability and sometimes its own price (XL may cost more).
- **Variants are linked by a shared group code.** This shared label is called an **item group** or variant group code – it tells the shop and the channels that the items are the same model.
- **Variants differ in their variant attributes** – most often colour, size, capacity, length or pack weight.

A product without variants is sometimes called a **simple product**.

## What attributes and variants look like in a feed

This is how one T-shirt variant might look in a feed for a price comparison site. The attributes are written as name–value pairs, and the variants are linked by the `ITEMGROUP_ID` field:

`<SHOPITEM> <ITEM_ID>TR-100-M-BLK</ITEM_ID> <ITEMGROUP_ID>TR-100</ITEMGROUP_ID> <PRODUCTNAME>Brezina Basic T-shirt black M</PRODUCTNAME> <EAN>8581234560017</EAN> <PARAM> <PARAM_NAME>Size</PARAM_NAME> <VAL>M</VAL> </PARAM> <PARAM> <PARAM_NAME>Colour</PARAM_NAME> <VAL>black</VAL> </PARAM> <PARAM> <PARAM_NAME>Material</PARAM_NAME> <VAL>100% cotton</VAL> </PARAM> </SHOPITEM>`

In a feed for Google, the most common attributes have their own fields with fixed names:

`<item> <g:id>TR-100-M-BLK</g:id> <g:item_group_id>TR-100</g:item_group_id> <g:color>black</g:color> <g:size>M</g:size> <g:gender>male</g:gender> <g:age_group>adult</g:age_group> </item>`

And in a spreadsheet (CSV), variants are often written so that each row is one variant and a “parent” column says which model it belongs to:

`code;parent;name;colour;size;price TR-100-S-BLK;TR-100;Brezina Basic T-shirt;black;S;14.90 TR-100-M-BLK;TR-100;Brezina Basic T-shirt;black;M;14.90 TR-100-XL-BLK;TR-100;Brezina Basic T-shirt;black;XL;16.90`

Feed formats are explained in more detail in [Feed types](https://sortyra.com/knowledge-base/feed-types-xml-csv-json).

## What attributes and variants are for

- **Filters in the shop and on comparison sites.** A customer ticks “capacity 40–50 l” or “colour blue” and sees only the matching products. Without attributes, your product is simply missing from the filter.
- **Comparing offers correctly.** A comparison site needs to know that you are offering the T-shirt in size M, not XL. Variant attributes help match the offer correctly (more in [Product matching on comparison sites](https://sortyra.com/knowledge-base/product-matching-comparison-sites)).
- **Channel requirements.** For clothing and footwear, Google requires colour, size, gender and age group in many countries. Fashion comparison sites almost always need this data.
- **A clear product page.** The shop shows one model with a choice of colour and size instead of ten separate products.
- **Better texts and ads.** Attributes can be used to build an informative title, for example “Horalka Light sleeping bag 220 cm, 5 °C”.

## How it works in practice

Most problems arise when combining feeds from different suppliers. One sends the colour as “Colour: Black”, another as “color: black”, and a third has it only in the product title. To standardise them:

1. **Find out which attributes your feeds contain** and how often they are filled in.
2. **Standardise attribute names.** “Colour”, “colour”, “Color” and “Farbe” should be a single “Colour” attribute.
3. **Standardise values.** “40L”, “40 l” and “40 litres” are the same thing. Choose one way of writing it – ideally the number, a space and the unit.
4. **Fill in missing attributes.** They are often hidden in the title or description (“…sleeping bag, 220 cm, down to 5 °C…”) and can be extracted from there.
5. **Check the variants.** Each variant must have a unique code and the correct group code. Variants of one model must have the same group code.
6. **Decide what goes to which channel.** Not every attribute is useful everywhere – don't send an internal warehouse code to a comparison site.

## What to watch out for

- **Variants without their own code or EAN.** If all sizes have the same code, the channel treats them as one product and throws away or overwrites the others.
- **One EAN for a whole range.** Some suppliers give all sizes the same EAN. The comparison site then merges different sizes into one product page. It is better not to send such an EAN to comparison sites.
- **A changing group code.** The group code must be stable. If it changes with every feed update, the channel keeps seeing new products.
- **The same title for all variants.** It is worth adding the distinguishing attribute to the variant's title (“black M”), so it is clear what the customer is buying.
- **Attributes as one long text.** The channel won't split “Colour: black, Size: M, Material: cotton” in a single field. Each attribute belongs in its own field or its own pair.
- **Different units.** Weight sometimes in grams and sometimes in kilograms breaks both filtering and sorting.

**Tip:** Always write attribute values the same way – the same upper and lower case, the same units, the same abbreviations. In a filter, every different spelling shows up as a separate option.

## How Sortyra helps

When you connect a source, Sortyra recognises fields as well as attributes written as name–value pairs, and it groups variants – whether the supplier links them with a shared group code, sends them as separate items with a reference to a parent or puts them in the title as "Product|Variant". Variants nested inside a product (in XML as well as JSON, for example in the product list of a Shopify store) are imported as separate products with their own code, price, stock and EAN, linked into one group; product options such as "Size: M" become variant attributes. For a source you already have, variants are split only after you confirm it in the source details – see [Source settings](https://sortyra.com/knowledge-base/feed-source-settings). On the **Fields and values** page (the **Input** menu) you can see how attributes are filled in, which values they contain and how many products have them. In the **Attribute normalisation** section you standardise names and values from different suppliers (for example “Barva” → “Farba”), and with the **+ Rule** button you create a rule from a value. **AI content** can fill in missing attributes from the title and description – you review the result before it is used. Find out more about editing on the [Rules](https://sortyra.com/features/rules) page.

## Frequently asked questions

### What is the difference between an attribute and a variant?

An attribute is a property of a product, such as colour or weight. A variant is a separate version of a product that differs from the other versions of the same model in one attribute, such as size.

### What is item_group_id?

It is a shared code given to all variants of one model. It tells Google and other channels that T-shirts in different sizes belong together.

### Does every variant need its own EAN?

Yes, if the manufacturer has assigned one. Every sellable variant (for example each size and colour) should have its own EAN and its own product code.

### Why doesn't my product appear in a filter on a comparison site?

Most often because the attribute is missing, has a different name from the one the comparison site expects, or its value is written differently from other products. Check both the name and how the value is written.

### Can I extract attributes from the product description?

Yes. If the details are clearly stated in the description, they can be moved into separate attributes. It is a good idea to check the result so that no wrong value ends up in an attribute.

[← Previous article **Product categories and category trees**](https://sortyra.com/knowledge-base/product-categories-category-tree) [Next article → **Product matching on comparison sites**](https://sortyra.com/knowledge-base/product-matching-comparison-sites)

## More articles: Feed basics

- [What is a product feed](https://sortyra.com/knowledge-base/what-is-a-product-feed)
- [Feed types: XML, CSV, TSV, JSON, Google Sheets and API](https://sortyra.com/knowledge-base/feed-types-xml-csv-json)
- [What a product feed is used for](https://sortyra.com/knowledge-base/what-product-feeds-are-used-for)
- [What is a feed manager and when do you need one?](https://sortyra.com/knowledge-base/what-is-a-feed-manager)
- [Supplier feeds, wholesale and dropshipping](https://sortyra.com/knowledge-base/supplier-feed-dropshipping)
- [Feeds for price comparison sites (Heureka, Zboží and others)](https://sortyra.com/knowledge-base/price-comparison-site-feed)
- [Google Merchant Center and Google Shopping feed](https://sortyra.com/knowledge-base/google-merchant-center-feed)
- [Catalogue for Facebook and Instagram](https://sortyra.com/knowledge-base/facebook-instagram-catalogue-feed)
- [Feeds for marketplaces](https://sortyra.com/knowledge-base/marketplace-product-feeds)
- [EAN, GTIN, MPN and product codes](https://sortyra.com/knowledge-base/ean-gtin-mpn-product-code)
- [Product categories and category trees](https://sortyra.com/knowledge-base/product-categories-category-tree)
- [Product matching on comparison sites](https://sortyra.com/knowledge-base/product-matching-comparison-sites)
- [Availability, stock and delivery time](https://sortyra.com/knowledge-base/availability-stock-delivery-time)
- [Price, VAT and currency in a feed](https://sortyra.com/knowledge-base/price-vat-currency-in-feed)
- [Images in feeds](https://sortyra.com/knowledge-base/images-in-product-feeds)
- [How often to update a feed](https://sortyra.com/knowledge-base/how-often-to-update-a-feed)
- [The most common feed errors and how to fix them](https://sortyra.com/knowledge-base/common-feed-errors-how-to-fix)

## Try it on your own feed

[Try it free](https://app.sortyra.com/registracia?lang=en) [Book a 15-min call](https://sortyra.com/contact)
