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.
What you see
Section titled “What you see”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.
Available metrics
Section titled “Available metrics”The widget can display any 4 of these 8 metrics:
| Metric | Definition |
|---|---|
| Orders | Count of orders placed in the range |
| Items ordered | Sum of line-item quantities |
| Orders done | Count of orders that reached the “completed” / “done” state |
| Orders done in time | Subset of done orders that completed within the configured SLA |
| Revenue | Sum of amountTotal (or amountNet, configurable) |
| AOV | Average order value — revenue / orders |
| Cancelled orders | Count of orders that reached the cancelled state in the range |
| Refunded orders | Count of orders with a refund transaction in the range |
The full definitions are in KPI list → Orders.
Configuration
Section titled “Configuration”Settings live under Settings → Plugins → P2Lab Stats → Widgets → Orders.
| Setting | What it controls |
|---|---|
| Enabled | Show or hide the widget |
| Default period | Preset used on first page load (e.g. last 30 days) |
| Exclude today | When on, the range ends yesterday so a partial day doesn’t skew the comparison |
| Default order states | Limit the calculation to specific states |
| Visible metrics | Pick 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.
Tips & gotchas
Section titled “Tips & gotchas”Related
Section titled “Related”- Customer KPI widget — the same widget for the customer list
- KPI list — every metric, defined
- Configuration → Widgets — full settings reference