Importing products into PrestaShop: why it fails and how to do it without duplicates

Importing products into PrestaShop

Importing products by CSV looks like the quick way to upload a catalogue or update prices. And it is, until the import stops halfway, creates every product twice, multiplies the combinations or leaves all the photos blank. The problem is almost never the file: it is the order in which things are imported and two or three options on the import screen that nobody reads and that decide whether PrestaShop updates what you already have or creates it again.

Below you will find the right order, what each option does, why duplicates appear and when manual importing stops being enough.

The order matters

PrestaShop imports each type of data separately: categories, products, combinations, customers, addresses, brands, suppliers, aliases and store contacts (import, PrestaShop 8). And some depend on others. Products refer to categories that must already exist, and combinations to products that must already exist. That is why the documentation itself asks you to import categories first.

Order What Why in that order
1 Categories Products need them
2 Brands and suppliers Products name them
3 Products Combinations need them
4 Combinations They hang from a product that already exists
5 Customers Addresses need them
6 Addresses They hang from a customer that already exists
The order for importing data into PrestaShop
Categories first.

What each option on the import screen does

They are in Advanced Parameters > Import. There are few, and two of them can wreck a shop in one click:

Option What it does When to tick it
Delete all records before import Deletes all the products, categories or whatever you are importing before starting Almost never in a shop with orders. Only in an empty shop
Use product reference as key Looks up each product by its reference and updates it instead of creating it Whenever you update products. The file must include every product’s reference
Skip thumbnails regeneration Does not generate the images in every size In large imports, to regenerate them afterwards in one go
Force all ID numbers Uses the IDs in the file instead of numbering Only if you know exactly which ID each item has. Otherwise it overwrites products
Send notification email Tells you when it finishes In large imports
What each option on the PrestaShop import screen does
Two of them can wreck a shop.

The documentation adds other warnings that explain many failures: the file in UTF-8, one language per import (with the language already installed), complete image URLs, prices in the shop’s default currency and the semicolon as field separator.

Why products get duplicated

If you import a file without ticking “use reference as key” and without an ID column, PrestaShop does not know those products already exist, and creates a new one for every row. It happens above all the second time someone imports “to update prices”.

The consequences are not just a long list: two products with the same name and two different URLs compete with each other on Google. We explain it in duplicate URLs in PrestaShop.

Why combinations multiply

Combinations are the most delicate thing to import. If you import the same sizes and colours for a product again, PrestaShop may create them again instead of updating them, and the product ends up with size M twice, each with its own stock. The three rules:

  1. Each combination with its own reference, different from the product’s and from the others.
  2. Import combinations after products, with the parent product’s reference.
  3. Before importing combinations again, test with a single product and check on its page that they have not been duplicated.

And if stock does not add up after an import, see stock mismatches in PrestaShop.

When the import stops halfway

If the file is large, the import can stop halfway without warning: the server cuts the process off when it reaches its maximum execution time. You notice because the first rows are imported and the rest are not.

  • Split the file into parts of a few hundred rows.
  • Skip thumbnail regeneration and regenerate them at the end, from the images screen in the Design menu.
  • Import outside traffic hours.
  • If it still stops, the limit is the server’s, and it has to be increased with the hosting.
Common PrestaShop import errors
Duplicates, combinations and cut-offs.

Before importing into the live shop

  1. A database backup. A bad import has no undo button.
  2. Test with five rows and check those five products in the shop: price, taxes, categories, photos and combinations.
  3. Save the file and the settings you used, to repeat it the same way next time.

When manual importing stops being enough

If you import a supplier’s catalogue every week or update prices and stock daily, CSV by hand becomes a permanent job and a source of errors. Besides, the supplier’s texts are the same ones every other shop has, which has its own problem on Google, explained in supplier descriptions in PrestaShop.

From that point on, what you need is an automatic connection with the supplier or your management software, updating only what changes, without duplicating and without touching what you have worked on by hand.

What changes when importing into PrestaShop is done properly
No duplicates and no surprises.

An example file for updating prices and stock

The most common case is not uploading a whole catalogue, but updating prices or stock for products that already exist. For that, the file should only include what is needed:

Reference;Price tax excl.;Quantity
CAM-001-AZ;24,79;35
CAM-001-RO;24,79;12
PAN-014-NE;41,32;0

And on the import screen:

  1. Entity: products (or combinations, if the references are for sizes or colours).
  2. Tick use product reference as key.
  3. Do not tick delete all records.
  4. In the field matching step, assign each column to its field and leave unused ones unassigned.
  5. Test with five rows, check those products in the shop and then import the rest.

A detail that causes many problems: if you update products with a file that has empty columns, for example the description, depending on how they are assigned you can leave those fields blank. That is why, for updating, the file contains only the columns you want to change.

The most common format errors

Many imports fail because of how the file was saved, not because of the data:

Symptom Usual cause
Accents and special characters turned into strange symbols The file is not in UTF-8
Everything in a single column The separator is not the semicolon, or the spreadsheet changed it when saving
Prices multiplied or without decimals Decimal commas and points mixed up
References that lose leading zeros The spreadsheet turned them into numbers
Photos that do not load Incomplete image URLs or ones that require access
New categories you did not expect The category name is not exactly the same as in the shop

If you work with Excel, save as CSV in UTF-8 and open the file with a text editor before importing it to check the separator and the accents.

What breaks if you get it wrong

  • Ticking “delete all before import” in a shop that sells. Products with orders disappear, and their URLs return errors.
  • Forcing IDs without knowing which ones exist. A new product overwrites one that already existed.
  • Importing several languages at once. It cannot be done: one language per import.
  • Updating prices without the reference as key. You find your catalogue duplicated.
  • Not making a backup. There is no going back.

In short

  1. Import in order: categories, brands, products, combinations, customers and addresses.
  2. To update, always the reference as key and never delete before importing.
  3. Each combination with its own reference; test with one product first.
  4. Files in UTF-8, with semicolons and only the columns that will change.
  5. A database backup and a five-row test before the real import.

When you cannot do this yourself

Preparing the file, testing with five rows and importing in order is something you can do. Fixing an already duplicated catalogue without breaking orders or URLs, importing complex combinations or connecting the shop to the supplier or management software so it updates on its own needs someone technical. It is part of PrestaShop maintenance, and we build custom connections as a PrestaShop agency (in Spanish).

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

Why do products get duplicated when importing into PrestaShop?

Because the file does not include an identifier PrestaShop recognises. If the option to use the reference as key is not ticked and there is no ID column, a new product is created for every row.

Can an import be undone in PrestaShop?

There is no undo button. That is why, before importing into the live shop, you need to back up the database and test with a few rows.

How do I update only prices in PrestaShop by CSV?

With a file containing the reference and the price, importing products or combinations with the reference as key and without the delete records option. Test first with five rows.

Which separator does PrestaShop use to import CSV?

The semicolon is the default field separator, and the file has to be in UTF-8. If another separator is used, it has to be specified on the import screen.