Skip to content

Catalogue 0.46.0: Goods or service items and more measurement units

Catalogue 0.46.0 lets the PhoenixKit product catalogue hold services next to goods: items get a type, goods or service, and the unit list grows from the goods basics to fifteen units, including ones for pricing work.

Goods or service

Catalogues get a Default item type, and items an Item type: Goods or Service. The type is separate from whether a catalogue prices items or fees. An item can name its own type or leave it blank and follow its catalogue; the form then shows “As in catalogue” with the catalogue’s type.

The type shows on the catalogue form, the item form, the product card and the items table. Search, the item lists and the item selector can keep to one type. Copies, imports and exports carry it.

More units

Services can now be priced per hour, service, visit or kilometre. Goods gain pack, roll, kilogram, litre and cubic metre, next to the units already there. The item form’s unit field shows all fifteen in two groups, Units for goods and Units for services.

Imports understand the new units. A unit column with one of the new codes, such as hour or pack, or the short form the tables show, in English, Estonian, Russian, German or French, is no longer stored as pieces. A catalogue exported to JSON and imported back keeps its units.

Upgrading

Run mix phoenix_kit.update: migration V4 adds the item type columns. Existing catalogues read as goods, and existing items follow their catalogue, so nothing changes on a live site until you set a type. No change in requirements.

The line under each page title now only shows when an admin turns on page descriptions under Settings → General in PhoenixKit.

Full release notes: Catalogue 0.46.0

0.46.0 · 26 September 2026

Reviews: dev_docs/pull_requests/2026/140-item-units/, 141-item-type/.

Built against phoenix_kit 2.40.1 and phoenix_kit_ai 0.24.1; the requirements are unchanged. The line under a page title (the page description) now shows only when an admin turns on “show page descriptions” under Settings → General. The pages still send it.

Added

  • More measurement units (#140). Services can be priced per hour, service, visit or kilometre, and goods gain pack, roll, kilogram, litre and cubic metre, alongside the units already there. The item form’s unit field offers all fifteen, in two groups.
  • An item type, goods or service (#141), independent of whether a catalogue prices items or fees. The catalogue carries the default; an item may name its own or leave it blank and follow the catalogue. Migration V4 adds the columns (existing catalogues read as goods, existing items follow their catalogue). Search, the item lists and the item selector can keep to one type. The catalogue form, the item form, the product card and the items table show it, and a copy, an import or an export carries it.

Fixed

  • Importing a unit column that uses one of the new codes (hour, service, pack, …) or the abbreviation the tables show for it — in English, Estonian, Russian, German or French — no longer stores the item as pieces. A catalogue exported to JSON and imported back keeps its units.
  • list_items_for_catalogue/2 and list_items_for_category/2 honour an item_types filter, as the paged listings and the counts already did.
  • Saving an item and staying on the form re-reads “As in catalogue (…)”. It names the catalogue’s type as it is after the save.

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