Skip to content

Billing 0.22.0: My Orders and Billing Profiles in the avatar menu

Billing 0.22.0 adds the customer’s My Orders and Billing Profiles pages to the avatar menu on PhoenixKit sites that run a shop, so a buyer finds their orders from any page.

Two entries in the avatar menu

Both pages were already tabs on the user dashboard. They now also appear in the dropdown under the user’s avatar, but only while the shop module is installed and enabled. A site that uses billing without a shop has no orders for visitors to look at, so the entries stay out of its menu. When the shop is switched off, they leave the menu again.

Upgrading

No migration and no configuration. Update the dependency. The entries need a PhoenixKit core that supports avatar-menu entries for tabs; an older core ignores them, and the pages stay on the dashboard as before.

Full release notes: Billing 0.22.0

0.22.0 · 13 October 2026

The avatar dropdown lists “My Orders” and “Billing Profiles” beside a shop (PR #52).

Added

  • Avatar-menu entries for the user tabs. Both user-dashboard tabs carry the core user_menu: option, gated by PhoenixKitBilling.user_menu_with_shop?/1: they appear in the dropdown only while the shop module (key "shop", duck-typed) is installed and enabled. A core without the option ignores it, so the dependency floor is unchanged.

Tests

  • The shop gate is now covered on its positive path too: a stand-in "shop" module registered in ModuleRegistry proves the tabs reach the dropdown while it is enabled and leave it when it is switched off.

Billing 0.22.0. Install or update: {:phoenix_kit_billing, "~> 0.22"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.