WPNest Price History for WooCommerce
WPNest Price History for WooCommerce gives WooCommerce stores automatic compliance with the EU Omnibus directive (Directive 2019/2161, in force across the EU since May 2022, in Poland from January 2023).
The plugin records every price change in your store with a timestamp and renders the legally required notice — “Najniższa cena z 30 dni przed obniżką: X” — under the price on every product page where a discount is announced.
Key features (Free)
- Automatic price capture — every change made via admin, REST API, WP-CLI, CSV import, or programmatic save is recorded with timestamp.
- Daily snapshot failsafe — a cron job ensures every published product has at least one history row per 24h, even when capture hooks miss.
- 30-day-low calculation — uses the legally correct “Omnibus” method (lookback from the moment the current sale started). A “Rolling” alternative is available for stores that prefer it.
- Configurable label — the notice text is fully customizable per language.
- Display options — single product page (required), shop loop, cart line items.
- Variable products — per-variation tracking with frontend handler that updates the notice when a variation is selected.
- Custom CSS — paste your own styles for the notice without editing files.
- Per-product mini-chart in the admin product edit screen.
- WP-CLI support —
snapshot,cleanup,backfill. - Backfill on activation — seeds the history table with current prices so the 30-day window is never empty.
- Cleanup cron — automatically removes entries older than the retention window (default 90 days).
- Cache — transient-based (12h TTL) with automatic invalidation on every price change.
- Compatible with HPOS (WooCommerce custom order tables).
Compliance basis
This plugin implements requirements from:
- EU Directive 2019/2161 (“Omnibus”) — applicable across all EU member states.
- Polish Ustawa o informowaniu o cenach towarów i usług, art. 4 ust. 2 — domestic transposition, in force since 1 January 2023.
UOKiK (the Polish Office of Competition and Consumer Protection) actively monitors compliance and may impose fines of up to 10% of annual revenue. The most commonly flagged violation is “price gymnastics” — artificially inflating the regular price shortly before a sale to make the discount appear larger.
Pro version
A Pro extension is available with additional features for shops that want to go beyond the legal minimum: public price history chart on product pages, Omnibus violation detector, compliance dashboard, webhooks (Slack/Discord), CSV export for audit, tamper-proof hash chain, white-label, and more. See https://wpnest.pl/sklep/prawo-i-formalnosci/wpnest-price-history-pro/ for details.
Third-Party Libraries
This plugin bundles the following libraries:
- Chart.js v4.5.1 — MIT License, https://www.chartjs.org/ — used to render the per-product price history chart in the admin product edit screen.
- chartjs-adapter-date-fns v3.0.0 (bundle including date-fns) — MIT License, https://github.com/chartjs/chartjs-adapter-date-fns — date adapter required by Chart.js v3+ for time-scale axes on the price history chart.