Skip to content

Installation

P2Lab Stats is a regular Shopware 6 plugin. You install it the same way you install any other plugin — via the admin Extensions page or via Composer / the CLI.

  • Shopware 6.6 or 6.7 — separate plugin builds are distributed for each major. The 6.6 build constrains shopware/core to >=6.6 <6.7; the 6.7 build to ~6.7.0. Pick the ZIP matching your Shopware version.
  • The standard Shopware async message worker running (used by CSV / PDF exports and cache warming)
  1. Download the plugin ZIP (P2LabStats_vX.Y.Z.zip) from your distribution source.
  2. In the Shopware admin go to Extensions → My extensions → Upload extension and pick the ZIP.
  3. After upload, click Install next to the plugin entry.
  4. Click Activate.
  5. Open the Orders menu — you should now see a P2Lab Stats entry.

If you have shell access to the Shopware host, copy the plugin into custom/plugins/P2LabStats and run:

Terminal window
bin/console plugin:refresh
bin/console plugin:install --activate P2LabStats
bin/console cache:clear
  1. Open the Shopware admin.
  2. Go to Orders → P2Lab Stats — you should land on the Sales → Summary report.
  3. Go to Orders → Overview — a KPI widget with 4 order metrics should appear above the order list.
  4. Go to Customers → Overview — a KPI widget with 4 customer metrics should appear above the customer list.

If anything is missing, check:

  • The plugin is activated (Extensions → My extensions)
  • The admin cache has been cleared
  • Your user role has access to the plugin

Out of the box the plugin works with sensible defaults. Two things are worth setting up early:

  • Stock thresholds — the low-stock / approaching / overstock thresholds affect the stock report colour-coding and the low-stock urgency tiers.
  • Cache warming — heavy reports load instantly when warmed. Enable it as soon as you start using the module daily.

Both are covered in Configuration.

LocationWhat you’ll see
Orders → P2Lab StatsThe full module with sales, customer and product reports
Orders → OverviewKPI widget above the order list (8 metrics, 4 visible)
Customers → OverviewKPI widget above the customer list (8 metrics, 4 visible)
Settings → Plugins → P2Lab StatsAll plugin configuration

Continue to Configuration to set stock thresholds, choose which KPIs appear in the widgets and enable cache warming.