Presta Sync : Prestashop connector for Dolibarr

PrestaSync, the e-commerce connector between Dolibarr & Prestashop.

PrestaSync seamlessly connects Prestashop with Dolibarr, syncing products, orders, customers, and stock. It automates order imports and bulk updates for prices and stock, ensuring efficient management for businesses of all sizes.

Automatise la saisie de vos commandes Prestashop vers Dolibarr !

Order import

  • Import the orders from different Prestashop sites, including multisite.
  • Importing an order also imports the customer and the associated addresses.
  • You retain control: import automatically based on Prestashop status or manually with bulk actions.
  • Change the status of a Prestashop order from Dolibarr

Managing a large product catalog while retaining control in the ERP

This is the philosophy of the PrestaSync module.

Import products from Prestashop to Dolibarr

Attribute management

For Prestashop products with attributes, the Dolibarr interface offers fast, ergonomic entry of part numbers, prices and weight of attributes directly in Dolibarr.

This overcomes the ergonomic shortcomings of Prestashop product file attribute management.

Tools to help you with attributes :

  • Instant, live modification of part numbers, prices and weights for Prestashop attributes.
  • Automatic calculation of price and weight impacts for attributes based on actual values entered (actual prices and actual weights).

Build for large product catalogs

The Prestasync module stands out for its performance in efficiently managing large product catalogs.  

Thanks to its bulk and automatic update system, it allows you to quickly synchronize your Prestashop store's prices and stock with data from Dolibarr.

Each update is based on a file automatically generated by Dolibarr, ensuring optimal integrity and fluidity of the process.

To give an idea of its performance: on standard configurations, the module can process up to 13,000 references in less than a minute on the Prestashop side (time measured on THERSANE servers). This speed naturally depends on your server's resources, but it demonstrates how Prestasync is designed to meet the needs of businesses with large catalogs.

Why aren't product prices and stocks updated online?

The decision not to update prices and stocks in real time from Dolibarr is based on technical and strategic reasons to guarantee good performance:

Server load management :

The Prestasync module can be used to connect one Dolibarr instance to dozens or even hundreds of e-commerce sites. An instant update for each stock or price modification on the Dolibarr side would generate a huge number of API calls. This could overload not only the Dolibarr server, but also the Prestashop servers of the connected stores, especially during massive updates.

Temporary error prevention:

By delaying updates to defined time slots, any input errors on the Dolibarr side (e.g. incorrect stock or price entries) do not have an immediate impact on all e-commerce sites. This gives you time to correct errors before they propagate, thus guaranteeing the consistency of synchronized data.

Intelligent load balancing:

Delayed synchronization distributes the load of updates between the various connected e-commerce sites. In this way, each Prestashop server can process updates at its own pace, while avoiding excessive load on the Dolibarr server, which is particularly critical for companies with large catalogs.

In short, this scheduled synchronization system guarantees both optimum performance and greater data reliability, while avoiding the inconvenience of errors or load peaks.

Creation and updating of products on Prestashop from Dolibarr

Creating products on Prestashop from Dolibarr is currently not supported. Only updates to stock, price, and weight are possible in this direction.

This choice is based on a functional reality: product management and their variations differ significantly between Dolibarr, Prestashop, and even between different connected Prestashop stores. (For example, one Prestashop store may manage products with variations while another store manages the same products without variations).
These differences make it complex to harmonize attributes and characteristics between systems or sites. The goal is not to overload Dolibarr with unnecessary synchronization data, so this limitation naturally applies.

Attempting to unify these logics would force compromises that could harm data integrity or the specifics of each platform. Therefore, we opted for a more consistent approach: let each software manage products in its own way while focusing on the essentials, namely reliable and fast synchronization of key information such as stock, price, and weight.

This choice is also based on feedback from solutions tested before the creation of PrestaSync, which led to undesirable automatic synchronizations that indiscriminately erased hours of hard work. A software should be an ally that makes our work easier, not an obstacle that complicates it.

From experience, if you plan to create products in bulk on Prestashop, it is better to opt for imports via CSV files, which, when carefully managed, allow you to control associated data, such as categories, tags, features, or attributes...

Télécharger le module : PrestaSync

Module disponible sur le Dolistore, la plaforme de vente officiel de Dolibarr

Download module

The module is available on the Dolistore product page.

Test the module live!

Try out the module in real-life conditions on our test environment!

Stay informed about Updates

Don't miss out on any enhancements or new features for your modules.

Subscribe to our newsletter and receive the latest news, update information and tips for optimizing your tools directly in your mailbox.

Why is the module not sold directly on the THERSANE e-store?

At THERSANE, we have chosen to offer our modules through Dolistore to actively contribute to the Dolibarr project. Indeed, each sale made on Dolistore helps to fund a commission for the Dolibarr association. This contribution supports the development and maintenance of the software, thereby benefiting the entire community that relies on it.

By purchasing through Dolistore, not only do you receive a high-quality module, but you also support the open-source project that is the backbone of Dolibarr.

Thank you for your trust and commitment alongside THERSANE and the Dolibarr community!

Installation via ZIP file and graphical interface

  1. If the module is provided as a ZIP file ready for deployment (named module_xxx-version.zip, for example, when downloaded from a marketplace like Dolistore), follow these steps:
    • Go to the menu Home > Configuration > Modules > Deploy an external module.
    • Upload the ZIP file of the module from your computer.
  2. Important note: If an error message indicates that there is no "custom" directory, ensure that your Dolibarr installation is properly configured and that the directory is accessible.
  3. You should now see the module you just uploaded in the list. Click "Activate" to start using the module.
  4. If the module requires it, configure it and assign rights to your user groups and/or users.

Module configuration : PrestaSync

And Prestashop settings

Important note on enabling Prestashop webServices

Warning: Enabling web services may not always work immediately upon activation. You may need to add the following lines to your Prestashop site's .htaccess file, right after RewriteEngine on:

RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule . - [E=HTTP_AUTHORIZATION:%1]

Watch out for maintenance mode!

If you are unable to connect from Dolibarr, it is possible that maintenance mode on your site is blocking access. Make sure to add all the IP addresses of your Dolibarr server.

Remember to install the Prestashop version of the module on your Prestashop.

Le module Prestasync se compose de deux modules portant le même nom : un pour Dolibarr et un pour Prestashop.

Bien que le module Prestashop ne soit pas indispensable, il permet la mise à jour des prix et des stocks, ainsi que le déclenchement automatique coté prestashop des commandes lors du changement de statut côté Prestashop.

⚠ Important Reminder: Before installing or updating any module, we strongly recommend testing it in a staging environment first. This helps prevent potential disruptions to your live store.

PrestaSync module configuration on the Prestashop side

Configuration of mass price and stock updates

To enable bulk price and stock updates in Prestashop, follow these steps:

  1. Activate the scheduled task for exporting prices and stock in Dolibarr (Product price and stock export).

    This task generates a file stored in Dolibarr’s documents directory:
    /prestasync/export-stock.csv

  2. Set up FTP access to the documents folder of your Dolibarr installation.

  3. Enter the FTP access credentials in the module configuration on the Prestashop side (see point 3 in the image).
    Tip: Although Dolibarr generates the file as export-stock.csv, you can use a different file. This allows you to create a custom file with your own stock or pricing modifications.

  4. Enable bulk price updates. (See point 1 in the image).

  5. Add a scheduled task to call the URL provided below the bulk price update activation button. (See point 2 in the image).

WebHook configuration

1. To configure the webhook, simply enter the url provided by Dolibarr in the prestashop Prestasync module. (See points 1 and 2 on images)

2. Add a serveur cron task or planned task to call the webhook script URL (see point 3)
the