E-commerce 0.1.1: The PhoenixKit shop as its own package
E-commerce 0.1.1 is the first release of the PhoenixKit shop as a separate package. It gives a Phoenix site a product catalog, carts, checkout through the Billing module, shipping methods and CSV product imports, managed from the admin.
What a site gets
In the admin, the E-Commerce section has a Dashboard and pages for Products, Categories, Shipping, Carts and CSV Import, plus shop settings under /admin/shop/settings.
- Products are physical or digital, with a price, images, SEO fields and a status of draft, active or archived. Options can change the price by a fixed amount or a percentage, set for the whole shop or per category.
- Categories can be nested, and names and slugs can differ per language, as product titles and descriptions can.
- Carts work for guests and for signed-in users. A guest’s cart is kept when they sign in.
- Checkout turns a cart into an order through the Billing module, which the shop needs to be turned on.
- Shipping methods can be limited by weight, order value and country, and can be free above an amount.
- CSV import recognises Shopify and Prom.ua exports, filters rows by keywords and puts products into categories by rules. Imports and image downloads run as background jobs.
Visitors browse the catalog at /shop, with category and product pages, a cart at /cart and checkout at /checkout. Signed-in users have an order history.
Upgrading
The shop used to live inside PhoenixKit core as PhoenixKit.Modules.Shop. Its modules are now named PhoenixKitEcommerce, so code that calls the shop directly needs the new names. Add phoenix_kit_ecommerce to your dependencies, run mix phoenix_kit.update, add the shop_imports queue to your Oban config for imports, and turn the module on in the admin Modules page.
Full release notes: E-commerce 0.1.1
0.1.1 · 29 March 2026
Changed
- Restructure from
lib/phoenix_kit/modules/shop/tolib/phoenix_kit_ecommerce/matching standard extracted-repo convention - Rename all modules from
PhoenixKit.Modules.Shop.*toPhoenixKitEcommerce.* - Update billing references from
PhoenixKit.Modules.Billing.*toPhoenixKitBilling.* - Move mix tasks to
lib/phoenix_kit_ecommerce/mix_tasks/ - Add
:mixto dialyzer PLT apps for clean dialyzer runs
Fixed
- Fix 33 nesting depth violations (max depth 2) by extracting helper functions and using
withchains - Fix 11 cyclomatic complexity violations (max 9) by splitting large functions into multi-clause helpers
- Fix 25 alias ordering issues across all modules
- Fix dead code in
get_mapped_image/4where|| current_imagecould never trigger - Add
elixirc_paths/1,aliases/0(quality/precommit) to mix.exs matching sibling conventions
Added
- Comprehensive README with features, installation, usage examples, architecture, and troubleshooting
- AGENTS.md for AI agent guidance
- CHANGELOG.md for release tracking
- MIT LICENSE file
E-commerce 0.1.1. Install or update: {:phoenix_kit_ecommerce, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.