Skip to content

Order KPI widget

P2Lab Stats embeds a KPI widget directly above the standard Shopware order list (Orders → Overview). The widget shows four cards with a value, percentage change versus the previous period and a sparkline plotting both periods — without leaving the order list page.

Eight order KPIs are available; you pick which four are visible.

Above the order list, before the filter bar, the widget renders:

  • A date-range picker matching the one used in reports (9 presets + custom calendar).
  • Four KPI cards with the current value, Δ % versus the previous period and a small dual-period sparkline.
  • An exclude-today toggle so a partial day doesn’t skew the comparison.
  • An order states filter limiting the calculation to specific order states (e.g. only paid + completed).

The widget shares its picker / filter state with the order list only when you choose — by default it operates independently so the underlying list isn’t filtered by your KPI choices.

The widget can display any 4 of these 8 metrics:

MetricDefinition
OrdersCount of orders placed in the range
Items orderedSum of line-item quantities
Orders doneCount of orders that reached the “completed” / “done” state
Orders done in timeSubset of done orders that completed within the configured SLA
RevenueSum of amountTotal (or amountNet, configurable)
AOVAverage order value — revenue / orders
Cancelled ordersCount of orders that reached the cancelled state in the range
Refunded ordersCount of orders with a refund transaction in the range

The full definitions are in KPI list → Orders.

Settings live under Settings → Plugins → P2Lab Stats → Widgets → Orders.

SettingWhat it controls
EnabledShow or hide the widget
Default periodPreset used on first page load (e.g. last 30 days)
Exclude todayWhen on, the range ends yesterday so a partial day doesn’t skew the comparison
Default order statesLimit the calculation to specific states
Visible metricsPick 4 of the 8 metrics — the order you pick is the display order

Users can change the date range and exclude-today toggle per session; their choice is remembered locally. The visible-metrics list and default period are global per shop.