Profiles
A profile stores everything about one import or export job. This chapter covers creating profiles, file formats, and where files come from and go to.
Create, edit and delete
Profiles are managed in the section Create or edit Import/Export profile, at the bottom of the Export - Import tab.
| Control | What it does |
|---|---|
| Edit profile | Loads a saved profile into the form. Each profile is listed with its type (Import or Export), its ID and its name. |
| Delete profile selected | Deletes the profile loaded in the form, after a confirmation. |
| Download selected profile | Saves the configuration of the profile as a file, to keep a copy or to move it to another store. |
| Upload a profile | Loads a profile file downloaded before. |
| Create profile | Press Import or Export to start a new profile of that kind. |
To save, type a Profile name and press Save import profile or Save export profile.
Elements
Elements sets the kind of data the profile handles. The list is in the Overview. The rest of the form changes with this choice.
Format file
| Format | Notes |
|---|---|
.xlsx | Each kind of data goes in its own sheet. A cell holds 32,767 characters at most. |
.xls | Older Excel format. |
.csv | Options below. |
.json | Options below. |
.xml | Options below. |
.ods | OpenDocument spreadsheet. |
| Google Spreadsheet | Reads from or writes to a Google Sheets document. |
CSV options
- CSV delimiter: the character that separates columns. Leave it blank for a comma.
- File without columns: switch it on when the file has no header row. In an import, type the position of each column (1, 2, 3...) in Column name in file.
- Remove BOM (export): writes the file without the byte order mark at the start.
JSON options
- JSON Main node (import): if the list of elements is not at the top level of the file, type the path to it, for example
data>products.
XML options
- XML Item node: the path to the node that repeats once per element. It is a list of tags separated by
>, case sensitive and without spaces, for exampleyml_catalog>shop>offers>offer. - Get Main Nodes (import): analyses a sample file and offers the nodes it finds, so you can pick one instead of typing it.
How to map XML tags and attributes to columns is explained in Column mapping.
Force UTF8 encode
Import only. If texts arrive empty or with strange characters, the file is not in UTF-8. Choose From windows-1251 (normally Russian) or From windows-1252 (other languages). Leave No encode when the import already works, or you will get errors.
Google Spreadsheet
- Press IMPORTANT: Click to configure Google Sheets API and follow its video to create a Google Cloud project, enable the API and download the JSON key.
- Upload the JSON key file in step 2 of that window. The page reloads.
- Create the Google Sheets document in the root of your Google Drive and share it with the Service account ID shown in step 3 of the window.
- Copy the ID of the document from its URL into Google Sheet ID.
Where an import file comes from
I will get file from has three options.
I will upload it manually
You upload the file each time you launch the profile. Not usable with CRON jobs.
From URL
| Setting | What it does |
|---|---|
| Url | Address of the file. |
| Add User-Agent header | Sends a browser User-Agent with the request. On by default. Switch it off only if the server of the feed rejects requests that include this header. |
| Force refresh cache | Adds a random parameter to the address so an intermediate cache cannot return an old copy of the file. |
| HTTP Authentication | None, Basic or Digest, for protected feeds. |
| Username, Password | Credentials for the authentication chosen. |
These settings are also used when the file is analysed (Get Main Nodes, Obtain Columns, Obtain Categories) and in CRON imports.
From external Server
| Setting | What it does |
|---|---|
| Passive mode | Switch it on if the download fails with an error such as ftp_get(): Opening data channel for file download. |
| SFTP | Connects by SFTP instead of FTP. The server of your store needs the PHP library ssh2. |
| FTP - Host, FTP - Username, FTP - Password | Connection data. |
| FTP - Port | 21 by default. |
| FTP - Path to file | Folder of the file, for example /httpdocs/myfiles/. |
| FTP - File name | Name of the file without its extension. |
Where an export file goes
The file will be has three options.
- Downloaded from my web browser: not usable with CRON jobs.
- Saved to my server: the file is written to a folder of your server.
- Saved into external server: the file is uploaded by FTP or SFTP, with the connection fields above.
For Saved to my server:
| Setting | What it does |
|---|---|
| File path | Folder where the file is saved. The link next to it shows the root path of your store and examples. Missing folders are created. |
| File name | Name without extension: products, not products.xlsx. |
| File sufix | No sufix replaces the file on each export. Date export adds the date (-2019-01-31.xlsx). Date and time export adds date and time (-2019-01-31-1035.xlsx). |
Sort order to export
Export profiles have the block Sort order to export (optional): choose the Sort order field and the Sort order mode (ascending or descending). For text fields in several languages you also choose the Language.
Still need help?
Open a support ticket from your account and our team will look at your store with you.