Importing ingredients from CSV
Loading many ingredients at once, with a preview and errors before you confirm. Updating costs in bulk with a sheet.
Tá an treoir ar fáil i nGearmáinis agus i mBéarla: tá an leagan Béarla le feiceáil anseo.
If you already keep ingredients in a spreadsheet, import them from Ingredients › Import CSV.
Preparing the file
Start from Download the CSV template: it has the columns and an example row. One ingredient per row, with:
| Column | Content |
|---|---|
name |
Label text (required) |
internal_name |
Internal name |
code |
Code |
| nutrition values | Per 100 g, one column per nutrient, for example fat_g, salt_g |
allergens |
Allergen codes or names, separated by | |
A file can have up to 2,000 rows. Columns the program does not know are ignored, and it tells you which.
Preview and confirmation
After choosing the file you see a summary: how many rows will be imported and which have errors, with the reason (required field empty, invalid number, value above 100 g per 100 g, unknown allergen, duplicate row, an ingredient with the same code or name already existing). Rows with errors are skipped; fix the file and upload it again if you need them.
Import confirms: the ingredients are created with a manually entered "Main" nutrition profile.
Bulk costs
To update the costs of many ingredients at once, choose Costs on the Ingredients page:
- Download only those without a cost or Download all: the sheet has one row per ingredient with the cost per kg of the default profile.
- Enter the costs in the costo_eur_kg column with Excel or another spreadsheet. Empty cells change nothing; do not touch the id column.
- Upload the sheet again: the preview shows, row by row, the old and the new cost, and the rows with errors (invalid cost, ingredient not found, repeated ingredient), which are skipped.
- Update saves all the costs together and every change goes into the activity log.
Water is not in the sheet: it has no cost.