# Synchronize products and images

## Example of using the MyCyberOffice and CyberOffice modules to synchronize products and images on Prestashop and Dolibarr ERP / CRM <a href="#example-of-using-the-mycyberoffice-and-cyberoffice-modules-to-synchronize-products-and-images-on-pre" id="example-of-using-the-mycyberoffice-and-cyberoffice-modules-to-synchronize-products-and-images-on-pre"></a>

### What do we want to do in this customer case ? <a href="#what-do-we-want-to-do-in-this-customer-case" id="what-do-we-want-to-do-in-this-customer-case"></a>

1- Transfer products without Dolibarr image to Prestashop by synchronization (Using MyCyberOffice)

2- Add images on Prestashop products (import CSV Reference - Images)

3- Transfer images from Prestashop to Dolibarr by synchronization (Using CyberOffice)

### Dolibarr ERP/CRM <a href="#dolibarr-erpcrm" id="dolibarr-erpcrm"></a>

A company owns a functional Dolibarr with over 1700 \ \* products without image. The first step is to synchronize all Dolibarr products to Prestashop using the MyCyberOffice module. [MyCyberOffice](https://addons.prestashop.com/en/third-party-data-integrations-crm-erp/25807-dolibarr-erp-crm-synchronization-to-prestashop.html) requires the installation of [CyberOffice](https://addons.prestashop.com/en/third-party-data-integrations-crm-erp/18571-prestashop-synchronization-to-dolibarr-erp-crm.html) to work in both directions.

> If no product exists in Dolibarr, it will be necessary to import them via the Dolibarr import wizard.

#### How to proceed ? <a href="#how-to-proceed" id="how-to-proceed"></a>

* Synchronize the categories of Prestashop on Dolibarr ERP / CRM by using the category script of the CyberOffice module on Prestashop.&#x20;

![](/files/-MOabVAvyYmY7wcZB0VX)

* The category tree is now identical on both platforms (Prestashop and Dolibarr).

![](/files/-MOa86RIeSrEVHC18IfW)

* To synchronize the Dolibarr products to Prestashop, you must now use the "product initialization" script of the MyCyberOffice module by choosing the starting category of Dolibarr and the arrival category on Prestashop.

![](/files/-MObTeuwLRWqLl1PXFIh)

> All products without images are now synced to Prestashop.

### Prestashop

The 1700 products are now on Prestashop,&#x20;

![](/files/-MObDmjcuRCwQI4MESRn)

### How to add Images on Prestashop ?

#### **Recover the CSV file**

* You have to export the table products (ps\_product) in PHPMyAdmin to get the references.

![](/files/-MObUex5v2qclihTO0gY)

* Export the product table in csv

![](/files/-MObVEqU-rzPhEuB1J9i)

![](/files/-M4UiKxCqPeLLMeeDZ31)

* Add in the csv file the name of the image corresponding to the reference. Naming images is essential. The easiest way is to use the reference.jpg
* Place all the images in the directory of your choice on the Prestashop server (directory img).

![](/files/-MOb1XTTbneBrxRtsZSa)

**Import the CVS file into Prestashop**

* In the Prestashop back office go to Configure / Advanced Settings / import
* Choose to import Product and choose the created CSV file

![](/files/-MOb2qzalrtDFwK9raYz)

* Once the CSV file is on the server, use it.
* Ignore all CSV columns except : References and Images

![](/files/-MObYAAFnPSw545uQIf4)

* Click on Import and all the images will be added to the products
* The images are now present on Prestashop, it remains a last step synchronize them on Dolibarr.

![](/files/-MOaoU--7zJBQfW_lISN)

**Synchronize images on Dolibarr**

Just use the synchronization script of the CyberOffice module which will create on Dolibarr the directory with its image on each product.

* CyberOffice synchronization script on Prestashop

![](/files/-MOb704_zfqHIwgtSONK)

* The images are now on Dolibarr

![](/files/-MOb_mG1UaAzl_8MtFWD)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lvs-1-fo.gitbook.io/mycyberoffice/en/synchronize-products-and-images.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
