Skip to content

The E-Commerce dashboard and where shop products come from

Describes E-commerce 0.11.0.

The E-Commerce module is the shop: a storefront, a cart and a checkout, with admin pages for products, categories, shipping and settings. Orders and payments are handled by the Billing module.

Where to find it

Open E-Commerce in the admin sidebar. Its first page is the Dashboard, at /admin/shop. You need the E-Commerce permission; each admin page also needs its own sub-permission: Manage catalog (products, categories, translations), Manage carts, Manage shop settings (settings, shipping), Run imports (CSV import, Shopify sync) and Manage orders. The module must be on in Modules, and it needs the Billing module for checkout.

The E-Commerce dashboard in PhoenixKit: 5 products, all active and physical, and quick actions for products, categories, carts, CSV import and settings The E-Commerce dashboard in PhoenixKit: 5 products, all active and physical, and quick actions for products, categories, carts, CSV import and settings

The E-Commerce dashboard.

The dashboard

“Manage your e-commerce store”. The cards count Total Products, Active Products, Draft Products, Categories, Physical Products (“Products requiring shipping”) and Digital Products (“Downloadable products”). Quick Actions lead to Products, Carts, CSV Import and Settings, and Add Product starts a product.

Where the shop’s products come from

The shop can read its products in one of two places:

  • Its own product and category tables. This is the default. Products and categories are edited on the shop’s Products and Categories pages.
  • A catalogue from the Catalogues module. The storefront then shows that catalogue’s items and categories. On the shop’s Products and Categories pages the add button becomes Manage in Catalogues, and the shop’s own product and category forms send you to the Catalogues module (“Products are managed in the Catalogues module now.”). CSV import and the shop’s own translations page are switched off under this source.

There is no admin page to choose the product source or the catalogue. Both are settings in the shop’s config that a developer has to write by hand: shop_product_source set to catalogue, and shop_catalogue set to the catalogue’s name. Without shop_catalogue, the shop has no catalogue to read.

What it doesn’t do

  • The shop has no orders page of its own. Orders placed at checkout appear under Billing, Orders.
  • Stock is not kept by the shop; it comes from the Warehouse module when stock tracking is on (see the settings guide).

For developers

Write both keys to phoenix_kit_shop_config (the shop’s config table), for example shop_product_source = "catalogue" and shop_catalogue = "Nordwind shop". The catalogue is looked up by name. The source switch is read at most once a second per process, so a change shows up without a restart.