Custom fields
The Custom fields add-on lets profiles read and write database fields that other extensions added to your store.
What it is
Other extensions often add their own fields to products, categories, customers or orders. With the Custom fields add-on you declare those fields once and they become columns in your import and export profiles.
- It is an optional add-on with its own licence. You can get it from the product page.
- The Custom fields tab is available on OpenCart 1.5.x to 3.x.
- Until the add-on is licensed for your domain, the tab shows how to get it and a form to validate its licence.
Installing the add-on
Download Export Import PRO Custom Fields V.X.X.X.zip from the download centre and unzip it.
| OpenCart | What to do |
|---|---|
| 2.3.x to 3.x | In Extensions → Installer, upload 2.3.X-to-3.x-export-import-pro-custom-fields.ocmod.zip. |
| 2.0.x to 2.2.x | In Extensions → Extension Installer, upload 1.5.X-to-2.2.0.0-export-import-pro-custom-fields.ocmod.zip. |
| 1.5.x | Extract 1.5.X-to-2.2.0.0-export-import-pro-custom-fields.ocmod.zip and upload everything inside its upload folder to the root of your store by FTP. Check that all files were uploaded. |
Then open System → Import / Export Pro, go to the Custom fields tab and validate the licence ID of the add-on. A licence of the add-on is linked to one domain, like the main licence.
Declaring a field
Each row of the table declares one field.
| Column | What to enter |
|---|---|
| Column name | The name the column will have in your profiles and files. |
| Category (import/export) | The kind of profile where the column appears: products, categories, manufacturers, customers, orders and so on. |
| Table | The database table that holds the field. Only the tables that belong to the chosen category are offered, for example product and product_description for products. |
| Field | The exact name of the field in that table. |
Press Save configuration. Every row needs its four values; the extension tells you the row number if one is missing.
If you do not know the table and field names, ask the developer of the extension that created the field.
Using the field
- Open or create a profile of the category you chose.
- In Columns mapping, find the new column by its Column name, enable it and, if you need to, change its Column name in file.
- Save the profile and launch it as usual.
Custom fields also work in profiles launched by CRON.
Still need help?
Open a support ticket from your account and our team will look at your store with you.