Skip to content
PrestaShop · User manual

Import & Export Pro for PrestaShop

Version 0.9.2 Product page
Chapter 5

Profiles and sources

How to manage profiles and configure step 1, Source & destination: direction, file formats, supplier URLs, remote servers and Google Sheets.

Managing profiles

A profile stores everything about one import or export: source, mapping, filters, conditions, category mapping and automation. The toolbar at the top of the Profiles tab manages them:

ControlWhat it does
Saved profilesChoose a saved profile to load it, or New profile to start from empty settings.
New profileClears the editor to create a new profile.
Save profileSaves the profile. A profile must be saved before it can run on a schedule or use synchronisation.
DuplicateSaves a copy of the loaded profile and loads it. Saved passwords are copied too.
Export profilePrepares a portable JSON file of the profile. Press Download portable profile (without password) to save it. Passwords and keys are never included.
Import profileCreates a new profile from a portable JSON file. Enter the passwords again before using a protected source.
DeleteDeletes the loaded profile. Its execution history is kept.

Profiles belong to the shop selected in the back office.

Source & destination

SettingWhat it does
Profile nameA name to recognise the profile, from 1 to 128 characters.
DirectionImport into PrestaShop reads a file and writes products. Export from PrestaShop reads your catalogue and writes a file. The rest of the editor adapts to the direction.
File formatCSV, XLSX, XLS, ODS, JSON, Google Sheets or XML.
Upload a fileImport only. The file to import, up to 32 MiB. Its extension must match File format.
Or public feed URLImport only. The address of a supplier feed, starting with http:// or https://, for example https://supplier.example/products.xml. Scheduled imports need a URL, a remote server or a Google spreadsheet, because there is nobody to upload a file.
CSV delimiterCSV only. The single character between columns. Default ;.
XML record pathXML import only. The path of the element that repeats once per product, default products/product. See XML supplier feeds.
Match products byImport only. How a row is matched to an existing product: Reference / SKU, EAN13, UPC, ISBN, MPN or Product ID (update only). The matching field must be mapped.
Existing productsImport only. Update mapped fields changes the mapped fields of matching products. Skip existing products leaves them untouched, to only add new ones.
New productsImport only. Create new products adds products that do not exist yet. Skip new products only updates existing ones.
Obtain columnsReads the source, lists its columns for mapping and shows a Source preview of the first rows.

The note under the fields summarises the value formats: categories as Home > Clothing | Home > Sale, features as Material=Cotton|Origin=Spain, combinations as Size=M|Color=Blue. Prices exclude tax, and combination prices are adjustments to the base price. See Column mapping.

After you change the format, the file, the URL or the delimiter, press Obtain columns again.

Supplier feed options

This section shows the options of the selected format.

SettingFormatsWhat it does
CSV input encodingCSV importUTF-8, Windows-1252, Windows-1251 or ISO-8859-1. Choose the encoding of your supplier's file if accents look wrong in the preview.
First data line contains column namesCSV, XLSX, XLS, ODSEnabled by default. Disable it for files without a header: the columns are then called 1, 2, 3 and so on.
Lines to skip before data / headerCSV, XLSX, XLS, ODS importNumber of lines to ignore at the top of the file, for example a title line. From 0 to 10000.
Include UTF-8 BOM in exported CSVCSV exportEnabled by default. Helps spreadsheet programs open accented characters correctly.
JSON record path (for example data>products)JSONWhere the list of products is in the JSON document, with names separated by >. Leave it empty if the document is the list itself.
Worksheet name (empty: first sheet)XLSX, XLS, ODSThe worksheet to read or write.

Spreadsheets are read as values: formulas are not calculated. If a file contains formula cells, save it with calculated values first. For very large catalogues, CSV, JSON or XML is lighter than a spreadsheet.

Password-protected supplier URLs

If your supplier's URL needs a user name and password, open the Advanced & CRON step and fill in Feed access & automation:

SettingWhat it does
Feed authenticationNone, HTTP Basic or HTTP Digest, as your supplier indicates.
Feed username / Feed passwordThe credentials. The password is stored encrypted and is never included in exported profiles.
Send User-AgentSends a browser identification with the request. Enabled by default. Some suppliers reject requests without it.
User-AgentThe identification sent. Change it only if your supplier asks for a specific one.
Request a fresh supplier responseAsks intermediate caches for a new copy of the feed instead of a stored one.

Never write the credentials inside the URL itself; the module rejects URLs that contain them. For security the module only connects to public internet addresses.

Remote file transfer

Use this section to download the source from an FTP, FTPS or SFTP server when importing, or to send the finished file to one when exporting.

SettingWhat it does
Download the source from FTP / FTPS / SFTPImport only. Reads the source file from the server instead of an upload or URL.
Send the completed export to FTP / FTPS / SFTPExport only. Uploads the finished file to the server.
Transfer protocolFTP, FTPS (TLS) or SFTP (SSH). Default FTPS (TLS). Prefer FTPS or SFTP: plain FTP sends the password unencrypted.
Remote hostnameThe server name, for example ftp.supplier.example, without ftp:// and without credentials.
Remote port (SFTP: 22; FTP/FTPS: 21)Changes automatically when you switch between SFTP and FTP.
Remote username / Remote passwordThe credentials. The password is stored encrypted and is never included in exported profiles.
Remote directoryThe folder on the server, for example /feeds.
Remote filename including extensionFor example products.csv.
Passive FTP modeFTP and FTPS only. Enabled by default. Active FTPS needs libcurl 8.0 or later on your server.
SFTP server public host key (algorithm and base64)SFTP only. The server's public host key, for example a line starting with ssh-ed25519, so the module can verify it connects to the right server. Ask the server administrator for it.

Google Sheets

With Google Sheets as the format, the profile reads from or writes to a Google spreadsheet through a Google service account.

Prepare a service account

  1. In the Google Cloud console, create or choose a project and enable the Google Sheets API.
  2. Create a service account in that project and create a key of type JSON for it. Your browser downloads a .json file.
  3. In the module, under Google service account JSON key, choose that file with the upload button. The module checks it and shows Share the Google spreadsheet with: followed by the service account's email address.
  4. In Google Sheets, share your spreadsheet with that email address. Give it edit access if you export to it.

The key is stored encrypted for this shop and is never included in exported profiles.

Settings

SettingWhat it does
Google spreadsheet IDThe long code in the spreadsheet address, between /d/ and /edit.
Google worksheet nameThe tab to read or write. Default Products.
Google service account JSON keyThe key of the service account, uploaded as described above.

When you export to Google Sheets, the module prepares all values first and then replaces the values of the worksheet in one step. The worksheet's formatting and the references from other tabs are kept. The result shows Open Google spreadsheet and Download export copy.

Export selection

These settings appear for export profiles.

SettingWhat it does
Export combinations as individual rowsEnabled by default: each combination gets its own row with its combination fields. Disable it for one row per product.
Categories (multiple selection)Only products in the selected categories. None selected: all.
Brands (multiple selection)Only products of the selected brands. None selected: all.
Sort products byProduct ID, Reference, Name, Price, Created or Updated.
Sort directionAscending or Descending.
First exported row (starts at 1) / Last exported row (empty: all)Exports a range of rows, counted after filters. Use it to split a large catalogue into several files.

Export profiles can also read product_url, category_ids, manufacturer_id, supplier_id, date_add, date_upd and id_product_attribute, besides every importable field.

Still need help?

Open a support ticket from your account and our team will look at your store with you.