Skip to content

Export

Every report can be exported to CSV or PDF from the Export button in the page header. Exports run as background jobs via the standard Shopware messenger worker so big ranges don’t tie up the browser.

  1. Open the report and configure filters, date range, sort and view-mode as you want them exported.
  2. Click Export in the report header.
  3. Pick CSV or PDF.
  4. A progress modal appears with the row count being processed.
  5. When the job finishes, a download link appears in the modal and on the P2Lab Stats → Exports page.

The export captures the report exactly as you see it — filters, sort, view-mode and table-type are preserved.

  • UTF-8 with BOM (compatible with Excel)
  • Comma-separated, double-quoted strings
  • Number formatting respects the shop’s locale (decimal / thousand separator)
  • Date columns use ISO-8601 (YYYY-MM-DD)
  • Each KPI and the chart series are exported as separate sections in the same file when applicable
  • Page-formatted print layout: header with date range and filters, KPI cards block, chart image, full table
  • Page size matches the Shopware admin’s default print configuration
  • Multi-page output for large tables; KPIs and chart are on the cover page

Open P2Lab Stats → Exports to see every export job started by your user — running, finished or failed.

Each row shows:

  • Report key (e.g. sales.country)
  • Format (CSV / PDF)
  • Status (queued / processing / finished / failed)
  • Row count
  • Created at / finished at
  • Download link (until purged)

Failed jobs include an error message — typically a timeout or an out-of-memory condition. Re-run with a tighter filter to reduce the row count.

Completed export jobs are retained for the period configured in Settings → Plugins → P2Lab Stats → Advanced → Optimization → Export progress retention. After expiry, the download link is purged and the row disappears from the Exports page.