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:
| Control | What it does |
|---|---|
| Saved profiles | Choose a saved profile to load it, or New profile to start from empty settings. |
| New profile | Clears the editor to create a new profile. |
| Save profile | Saves the profile. A profile must be saved before it can run on a schedule or use synchronisation. |
| Duplicate | Saves a copy of the loaded profile and loads it. Saved passwords are copied too. |
| Export profile | Prepares a portable JSON file of the profile. Press Download portable profile (without password) to save it. Passwords and keys are never included. |
| Import profile | Creates a new profile from a portable JSON file. Enter the passwords again before using a protected source. |
| Delete | Deletes the loaded profile. Its execution history is kept. |
Profiles belong to the shop selected in the back office.
Source & destination
| Setting | What it does |
|---|---|
| Profile name | A name to recognise the profile, from 1 to 128 characters. |
| Direction | Import 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 format | CSV, XLSX, XLS, ODS, JSON, Google Sheets or XML. |
| Upload a file | Import only. The file to import, up to 32 MiB. Its extension must match File format. |
| Or public feed URL | Import 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 delimiter | CSV only. The single character between columns. Default ;. |
| XML record path | XML import only. The path of the element that repeats once per product, default products/product. See XML supplier feeds. |
| Match products by | Import 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 products | Import only. Update mapped fields changes the mapped fields of matching products. Skip existing products leaves them untouched, to only add new ones. |
| New products | Import only. Create new products adds products that do not exist yet. Skip new products only updates existing ones. |
| Obtain columns | Reads 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.
| Setting | Formats | What it does |
|---|---|---|
| CSV input encoding | CSV import | UTF-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 names | CSV, XLSX, XLS, ODS | Enabled 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 / header | CSV, XLSX, XLS, ODS import | Number 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 CSV | CSV export | Enabled by default. Helps spreadsheet programs open accented characters correctly. |
| JSON record path (for example data>products) | JSON | Where 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, ODS | The 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:
| Setting | What it does |
|---|---|
| Feed authentication | None, HTTP Basic or HTTP Digest, as your supplier indicates. |
| Feed username / Feed password | The credentials. The password is stored encrypted and is never included in exported profiles. |
| Send User-Agent | Sends a browser identification with the request. Enabled by default. Some suppliers reject requests without it. |
| User-Agent | The identification sent. Change it only if your supplier asks for a specific one. |
| Request a fresh supplier response | Asks 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.
| Setting | What it does |
|---|---|
| Download the source from FTP / FTPS / SFTP | Import only. Reads the source file from the server instead of an upload or URL. |
| Send the completed export to FTP / FTPS / SFTP | Export only. Uploads the finished file to the server. |
| Transfer protocol | FTP, FTPS (TLS) or SFTP (SSH). Default FTPS (TLS). Prefer FTPS or SFTP: plain FTP sends the password unencrypted. |
| Remote hostname | The 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 password | The credentials. The password is stored encrypted and is never included in exported profiles. |
| Remote directory | The folder on the server, for example /feeds. |
| Remote filename including extension | For example products.csv. |
| Passive FTP mode | FTP 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
- In the Google Cloud console, create or choose a project and enable the Google Sheets API.
- Create a service account in that project and create a key of type JSON for it. Your browser downloads a
.jsonfile. - 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.
- 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
| Setting | What it does |
|---|---|
| Google spreadsheet ID | The long code in the spreadsheet address, between /d/ and /edit. |
| Google worksheet name | The tab to read or write. Default Products. |
| Google service account JSON key | The 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.
| Setting | What it does |
|---|---|
| Export combinations as individual rows | Enabled 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 by | Product ID, Reference, Name, Price, Created or Updated. |
| Sort direction | Ascending 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.