Combinations in PrestaShop: when to use them, when not to and how to keep them under control

Combinations in PrestaShop

Sizes, colours, dimensions, capacities. Combinations are PrestaShop’s way of selling the same product in several versions, each with its own stock, reference and, if needed, price. They work very well until they get out of hand: products with hundreds of combinations that are slow to load, product pages where the customer picks a size that does not exist, stock split across duplicate combinations and Google seeing the same product page at several addresses. The problem is almost never the feature, but how the catalogue was planned.

Below you will find how combinations work, when to use them and when it is better to create separate products, how to keep them under control and what to bear in mind for Google and Merchant Center.

How they work

PrestaShop distinguishes between two things, according to its attributes documentation:

  • Attributes: what varies between versions of the same product and the customer chooses, such as size or colour. Combinations are created from them.
  • Features: fixed data shown in a table, such as material or country of manufacture. They are not used for choosing.

Each product’s combination generator creates one combination for every crossing of values. That is where things get out of hand: the number of combinations is the values multiplied together. Five colours by eight sizes is 40 combinations. Add a third attribute with four options and it is 160. And each one has its own stock, reference, barcode and, sometimes, price and photos.

How PrestaShop combinations multiply
Values multiplied together.

Combinations or separate products

The key question is whether the versions are the same product or different products for the customer:

Use combinations when Use separate products when
The customer looks for the product and then chooses the version The customer searches for each version by name
The versions share almost identical descriptions and photos Each version has its own description, use or audience
The difference is size, colour or capacity The difference is model, range or power
The price changes little or not at all The price changes a lot between versions

Example: a T-shirt in five colours and six sizes is a product with combinations. A water pump in three power ratings that people search for as different models, with different uses, usually works better as three products, each with its own page, linked to each other.

When they get out of hand

The signs that combinations have got out of control:

  1. Product pages that are slow to load or a back office that slows down when opening certain products.
  2. Combinations that do not exist in reality, because the generator created every crossing and nobody deleted the ones that are not made.
  3. Duplicate combinations, usually after an import. Size M appears twice, each with its own stock. We explain it in importing products into PrestaShop.
  4. Stock that does not add up, because it is managed on the product instead of on each combination. We look at it in PrestaShop stock not updating.
  5. Combinations without a reference or barcode, which later cause problems with the warehouse, the ERP or Merchant Center.
Signs that PrestaShop combinations are out of control
What to look for.

Want to know whether this affects your shop?

Leave us your URL. We review it and tell you what we find and what it is costing you, with no commitment.

We reply within 24 working hours.

How to keep them under control

  1. Design the attributes before creating products. A single “Size” attribute with ordered values, not “Size”, “Sizes” and “Clothing size” with the same values.
  2. Generate only the crossings that exist. After using the generator, delete the combinations that are not made.
  3. A unique reference per combination, different from the product’s and from the others, and its barcode if it has one.
  4. A default combination that has stock, so the page does not open on a sold-out version.
  5. Photos linked to each colour, so the image changes when the colour is chosen.
  6. Stock per combination, never on the product.
  7. If a product goes over a hundred combinations, check whether it is really one product or several.

What Google sees

Depending on the version and configuration, PrestaShop can generate different addresses for each combination, usually by adding its identifier and the chosen attributes. What matters is that the canonical for all of them points to the main product page, unless you have decided that a version deserves its own page because people search for it separately. Otherwise, Google may see many URLs with the same content. We explain it in duplicate URLs in PrestaShop.

Also:

  • Attributes used by the search filter, such as colour, can generate filter URLs in categories. You have to decide which ones get indexed. We look at it in faceted search and SEO in PrestaShop.
  • In Merchant Center, each combination is sent as a product, with its price, stock, reference and barcode, grouped with an item group identifier. If the feed module only sends the base product, rejections appear. We cover it in products rejected in Merchant Center.

An example of a tidy catalogue

A sportswear shop with T-shirts, leggings and trainers could organise its attributes like this:

Attribute Values Type on the page
Clothing size XS, S, M, L, XL, XXL Buttons
Shoe size 36 to 46 Drop-down
Colour Black, white, blue, red, green Colour swatches with names
Length Short, long Buttons

And features, which do not generate combinations, would go separately: material, technical fabric, gender, sport. With this structure:

  • A T-shirt in three colours and six sizes has 18 combinations, all real.
  • Trainers use “Shoe size”, not the clothing one, and values do not get mixed.
  • The colour has a name in text as well as the swatch, which helps accessibility and filters.

How to clean up combinations in a large catalogue

If the catalogue already has excess or duplicate combinations, it is cleaned up in stages:

  1. Export the products with their combinations and stock to a spreadsheet.
  2. Mark those that do not exist in reality and those repeated with the same size and colour.
  3. Check whether they have orders or stock before deleting them. Those with order history are best disabled rather than deleted.
  4. Merge duplicate attributes: move products to the right attribute and remove the repeated one.
  5. Make the change by category, starting with the best seller, and check the product pages after each one.
  6. Rebuild the search index and the filter index when you finish.

With thousands of products, this work is better done with database queries or a script than by hand, always with a backup and testing first on a copy of the shop.

What changes when they are well planned

PrestaShop combinations out of control or well planned
What changes.

Product pages load fast, the customer can only choose what exists, the stock of each size and colour is real, and Google and Merchant Center receive clean information for each version. And adding a new size or colour is a few minutes’ change, not a problem.

The order of work

The order of work for PrestaShop combinations
From the attributes to the feed.

What breaks if you get it wrong

  • Generating every crossing and leaving them even though they do not exist.
  • Duplicate attributes with the same values.
  • Combinations without their own reference.
  • Managing stock on the product instead of on each combination.
  • Putting into a single product versions people search for as different models.
  • Re-importing combinations without the reference as the key: they get duplicated.

In short

  1. Attributes for what the customer chooses; features for fixed data.
  2. The number of combinations is the values multiplied: only generate the crossings that exist.
  3. Combinations if the customer looks for the product and then chooses; separate products if they search for each version.
  4. Reference, barcode, stock and photos per combination, with a default combination that has stock.
  5. The canonical points to the main product page and the feed sends each combination grouped.

When you cannot do this yourself

Reviewing attributes, deleting combinations that do not exist and adding unique references is something you can do. Reorganising the attributes of a large catalogue, splitting products without losing rankings, cleaning up combinations duplicated by imports, and adjusting canonicals and the Merchant Center feed needs someone who knows PrestaShop inside out. That is what we do as a PrestaShop agency.

Want to know whether this affects your shop?

Leave us your URL. We review it and tell you what we find and what it is costing you, with no commitment.

We reply within 24 working hours.

Frequently asked questions

What is the difference between attributes and features in PrestaShop?

Attributes are what varies between versions of a product and the customer chooses, such as size or colour, and combinations are created from them. Features are fixed data shown in a table and are not used for choosing.

How many combinations can a product have in PrestaShop?

There is no fixed practical limit, but the more combinations, the heavier the product page and the back office. If a product goes over a hundred combinations, check whether it is really a single product.

Why do combinations get duplicated in PrestaShop?

Usually because of repeated imports without a unique reference per combination, or because of duplicate attributes with the same values.

Do combinations create duplicate content on Google?

They can create several URLs for the same product page. What matters is that the canonical for all of them points to the main product page, unless a version has its own page because people search for it separately.