Skip to content

E-commerce 0.1.7: Form errors next to the field, orders in Russian and Estonian

E-commerce 0.1.7 makes the product and category forms show their errors next to the field that has the problem, and translates the customer’s order pages and the shop’s error messages into Russian and Estonian.

Errors where they belong

The product and category forms now build their plain fields, such as status, type, vendor, prices, position and the parent, featured product and category selects, from the core PhoenixKit form components. A value that fails validation is marked on the field itself while you type, instead of only when saving. The select fields show their errors with PhoenixKit 1.7.131 or later. The translatable fields and the product options keep their own editors.

Translations

The shop’s texts now come from the module’s own translation files, with Russian and Estonian included. Over seventy texts are covered: the My Orders list and the order details page, order statuses, counts with the correct plural forms, and the error messages for carts, checkout and imports. Generic buttons such as Edit, Delete and Next keep the translations from PhoenixKit core.

Full release notes: E-commerce 0.1.7

0.1.7 · 5 June 2026

Changed

  • Migrate the category and product admin forms to core form components. Non-translatable scalar fields (status, product_type, vendor, price/compare_at/cost, position) and the changeset-backed selects (parent_uuid, featured_product_uuid, category_uuid) now render through core <.input>/<.select>. An assign_form/2 helper keeps :changeset (consumed by the multilang TranslationTabs fields) and :form = to_form(changeset) in sync, so inline validation errors render on validate. Translatable fields, dynamic-option selects, and the option/media machinery are intentionally left as-is.
  • Route web body strings through the module’s own PhoenixKitEcommerce.Gettext backend (was the parent app’s PhoenixKitWeb.Gettext). Generic UI-chrome strings are still resolved against core to keep its vetted translations; shop-domain strings resolve in-module and ship et/ru catalogues (correct 2-form/3-form plurals).

Fixed

  • Inline validation errors now render on the migrated <.select> fields, via the phoenix_kit 1.7.131 core Select component (it now maps field.errors like <.input> does).

Dependencies

  • Bump phoenix_kit 1.7.130 → 1.7.131 (core <.select> surfaces field.errors) and etcher 0.5.5 → 0.6.5.

E-commerce 0.1.7. Install or update: {:phoenix_kit_ecommerce, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.