Export data from PrestaShop
This type of file can then be used for various purposes, such as migrating the data to another database or system, modifying them in Excel to re-import them, doing one's accounting, distributing a newsletter, archiving a backup, selling on the market places...
The subject is therefore very vast, but we will try to go around it.
As an introduction below we're going to make a reminder of the prestashop native backup and export tools available for free in administration without requiring any additional module.
But you'll see that as very often with PrestaShop, these basic tools have their limits. Fortunately, there are alternatives in the form of additional export modules. This category therefore contains several posts presenting various solutions available to export all or part of the PrestaShop database.
Why and how to make a backup of the prestashop database
Not a week goes by without discussion with an e-merchant who wants to carry out complex mass operation on this data and is asked "do you have recent backup of your database", we got as an answer: "no I don't know how to do it but think my host makes backups"
Gloups! ok we have the right not to know how to do it, no worries, but just "believing" that someone else is doing it for you, without being sure, is suicidal. If this is the case for you, sorry, but we owe you a slap on the wrist. Because one day or another, you will have a crash of your database, or an attack of a hacker, or will make a false manipulation which will erase a part of your so precious data.
Stop everything you do, including reading this article, immediately make a phone call to your host to check that there is indeed a backup of your database made at least once a day, with a system of archiving backups over several days (being able to recall the data of last week for example).
If this is a chargeable billing option take it immediately, don't take any risk. And if your hosting provider does not offer this fundamental service run away
Do not confuse the two, the database does not contain the PrestaShop files and PrestaShop does not contain your data.
OK, this point is checked and corrected if necessary? your web host makes regular backups of the database and the files of your PrestaShop site? perfect... well almost.
Imagine that your web host goes bankrupt or becomes a hacker himself you get angry with him and change the creamery dishonestly he doesn t answer anymore when ask to send backups case already seen several times his backup system is failing very often this why it also necessary make either even from time say once month at least of base which will keep on pc in one straps belt
It's essential and it's very easy and quick to do. Let's see it in pictures...
How?!
- Go to the prestashop admin and scroll down advanced settings
- click on database


After a few seconds (depending on the size of the database), the backup is created and appears in the list. But it is stored on the server, which is not secure in case of a server crash. You have to download it to keep a copy at home. To do this, click on the icon representing an eye :

The download of the backup must start by itself, otherwise click "click here", then "OK"

Here you have now a complete backup of your database, in sql format, re-importable in case of big problems, with PHPMyAdmin. This step is irrelevant and we won't detail it here, there are already a lot of tutorials because this type of work is not specific to PrestaShop.
How to export data with PrestaShop ?
Depending on the type of data the method may vary slightly
For example to export products from the catalogue :
- Click on catalogue
- Click on products
- Click on the small gear in upper right corner context menu select either export or to sql manager

- If you have clicked on "Export", a CSV file is created under the name of your choice :

- So first bad surprise, it's CSV and nothing else. Neither xls, nor xlsx or xml,...>
- Second bad surprise, when you look at the content of the file, you quickly realise that most of the data is missing. There are neither summaries, nor descriptions, nor SEO fields, ... Basically this file cannot be used as a backup or as a source for re-importing :

- The second method, by choosing "Export to SQL Manager", is more powerful because it allows you to add the fields you want. But, have it sting, you have to know how to write SQL queries, which is not the case (nor the trade) of all sellers :

- If you just need to add a simple heading, like the purchase price, it's still playable, just add a line p.`wholesale_price` AS wsprice, in the query. But if for example you want your file to also contain the product features, I doubt that most of you know how to make the right join. It's just too technical and not suitable.
To export categories :
- It is exactly the same principle, with the same limitations :

For suppliers and brands :
- It will be necessary to make two more exports using the same method, so two more files.
For attributes and features :
- This is more complicated, there not even a simple export button, you have to go through the sql query manager :

- But the worst of the worst is that the pre-written query doesn't even work :

And the declinations how to export them also ?
- Simple answer, you can't, unless you know how to write even the right sql query, and believe us, it's not simple at all for a name specialized in MySQL or if you don't know on your fingertips the structure and subtleties of the PrestaShop database.
Conclusion :
- Let's stop there the massacre, you will have understood it, PrestaShop will have to review its copy for all the export part.
- While waiting for it to improve, you will have to use other tools, that is to say modules specialized in PrestaShop export. There are many of them, but most of them are incomplete and not very flexible to use.
- Either if you don't want to spend a fortune with the purchase of a lot of micro modules and choose intelligently to do everything with a single module, you can use once again Merlin Backoffice which natively integrates several import tools hyper easy to use and especially to customize according to your needs.
- We invite you to take a closer look at the generic video below then various more specific articles in this category and discover another world
Prestashop export with the merlin module
- This french only video and training covers a large part of the export tools of this module.
- It focuses in particular on the choice of the headings to be exported, in order to be able to migrate a catalogue between two versions of PrestaShop.
- It also presents the export tools for catalogues in PDF format.
- Other topics covered:
- Customisation of exports for market places
- Exporting categories with their hierarchical structure.
- Export of declinations.
- Exports of specific prices.
- Customisation of the content by customers group or countries
- Export with multiple languages and shops.
- Choice of various file formats depending on the destination