E-commerce 0.2.0: PhoenixKit 2, AI product translation and cart notifications
E-commerce 0.2.0 moves the PhoenixKit shop to core 2.0 and adds AI translation of products, notifications about cart activity, and more control over when a buyer picks shipping.
AI translation of products
With the optional AI module installed, the product form gets a Translate with AI button. It translates the title, description, body and SEO fields from a chosen source language. Slugs are never taken from the AI: they are made locally from the translated title, and only for a language that has none, so a published address does not change. Each language’s slug is now made by that language’s own rules, so German expands ö and ß while Estonian folds them; stored slugs are not rewritten.
Cart activity notifications
A Storefront notifications card in the shop settings can tell shop staff when the first item goes into a cart, when any item is added, and when a buyer goes to checkout. Each signal has its own switch, and Recipients picks who gets them; leaving all unchecked notifies every shop administrator. Notifications go through each recipient’s own channels, and someone who loses shop access stops receiving them.
Shipping requirement and selection step
A Shipping requirement card decides what happens when no shipping method covers the buyer’s country: require a method, let the order through and contact the buyer afterwards, or never ask for one. A second setting moves the shipping choice from the cart page to a checkout step after billing, where methods are filtered by the real country. Orders that skip shipping carry no shipping charge.
Search engines
Catalog, category and product pages now carry canonical, link preview and alternate-language data. An address in a language the product is translated into now goes to that language’s slug.
Upgrading
E-commerce 0.2 needs PhoenixKit core 2.0 and Billing 0.7; AI, if used, needs 0.18. Core 2.0 refuses to migrate a database below its V135 baseline, so run mix phoenix_kit.status first. A database below V135 must first be brought up with phoenix_kit 1.7.236 before moving to 2.0.
Full release notes: E-commerce 0.2.0
0.2.0 · 10 August 2026
Changed
-
⚠️ Requires
phoenix_kit ~> 2.0. The core pin moved to~> 2.0, so this release no longer resolves against core 1.7.Core 2.0.0 squashes the migration chain into a single
V135baseline and makes V135 the chain’s floor:mix ecto.migratenow refuses on a database below it rather than migrating. Checkmix phoenix_kit.statusbefore upgrading. A host below V135 must installphoenix_kit 1.7.236— the migration bridge, the last release carrying the full pre-squash chain — migrate until the reported version is at least V135, and only then move to 2.0.This package does not call migration internals, so the change is the pin itself.
-
Sibling pins raised in step, each to that package’s first release requiring core 2.0:
phoenix_kit_billing→~> 0.7,phoenix_kit_ai(optional) →~> 0.18.
Removed
PhoenixKitEcommerce.Slugifyis deleted (PR #19). It existed to apply a German expansion table (ö→oe,ß→ss) before handing off to core, because core’s slug rule could not express a locale. Core 2.0.0 removes that reason:PhoenixKit.Utils.Slugdelegates to thelocale_slugpackage and:localeis first-class, soSlug.slugify(text, locale: lang)subsumes the local table. There is now one slug implementation for the whole ecosystem.
Changed
- Each language’s slug is generated as that language (PR #19). Product and
category slugs pass the record’s language through as
locale:, so a German title expandsö/ßwhile an Estonian one folds them — one table could not do both, which is why the local copy existed. Stored slugs are not rewritten; only newly generated ones change.
E-commerce 0.2.0. Install or update: {:phoenix_kit_ecommerce, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.