Skip to content

Catalogue 0.1.5: Import items from Excel and CSV files

Catalogue 0.1.5 adds an Import page that turns an Excel or CSV file into catalogue items, so a supplier’s price list need not be typed in.

The import wizard

Import sits under Catalogue in the admin menu. It takes one .xlsx or .csv file of up to 10 MB and goes through Upload, Map, Confirm and Import. Pick the Target Catalogue and the Import Language the file is written in, and a sheet when the workbook has several. The wizard suggests which column holds the name, description, article code, price and unit. Items can go into an existing category, into no category, or into categories made from a column. Unit values such as tk, kmpl or leht are matched to the module’s units. Rows with errors are skipped, and duplicates, in the file or already in the catalogue, can be imported or skipped.

Other changes

  • New units: set, pair and sheet.
  • Items can share a SKU.
  • Search also looks in an item’s stored translations.
  • An item imported in another language asks for its primary translation on the edit form.

Upgrading

The package now depends on xlsx_reader; mix deps.get fetches it.

Full release notes: Catalogue 0.1.5

0.1.5 · 8 April 2026

Added

  • Dynamic file import — upload XLSX or CSV files, auto-detect column mappings, map columns to item fields via drag-down UI
  • Import language support — select which language the file data is in, stored in multilang JSONB
  • Import category support — import into existing category, create categories from column values, or import without category
  • Unit mapping — auto-detect and map file unit values (TK, KMPL, LEHT, PAAR) to system units (piece, set, pair, sheet, m2, running_meter)
  • Duplicate detection — detect identical rows within file and items already in catalogue, with skip/import choice
  • New unit types — added set, pair, sheet to allowed item units
  • Multilang search — search now matches translated content in JSONB data field across all languages

Changed

  • Removed unique constraint on item SKU field to allow duplicate article codes
  • Item edit form now detects imported items with non-primary language and shows rekey warning

Fixed

  • Search across translated content in data JSONB field

Catalogue 0.1.5. Install or update: {:phoenix_kit_catalogue, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.