Omnibus Directive - price tracking
The Lowest price (Omnibus) module in Polski for WooCommerce records every product and variation price change and, while a product is on sale, shows the lowest price from the last 30 days next to it. It is on by default, shows on the product page and in product lists, and hides the notice for products without price history.
The Omnibus Directive (EU 2019/2161) has been in effect in Poland since January 1, 2023. With every price reduction you must show the lowest price from the last 30 days.
How price tracking works
Section titled "How price tracking works"The plugin records every product price change (including variations) in the database. When a product is "on sale", the plugin calculates the lowest price from 30 days and shows it to customers.
Tracking starts after enabling the module. If a product has no price history yet, the no_history_text setting decides what shows; by default the notice is hidden.

Configuration
Section titled "Configuration"Go to Polski > Settings > Tax & Pricing and configure the available options.
Tracking period
Section titled "Tracking period"| Option | Description | Default value |
|---|---|---|
days |
Number of days back for calculating the lowest price. Below 30 the settings screen shows a warning: art. 6a(2) Directive 98/6/EC requires at least 30 days, a shorter period only where national law allows it | 30 |
prune_after_days |
After how many days to delete old history entries | 90 |
prune_after_days controls the size of the database table. A value of 90 means data older than 90 days is automatically deleted.
There is no tax option of its own. The Omnibus price is shown gross or net exactly as WooCommerce shows the price next to it (WooCommerce > Settings > Tax, shop and cart display).
Display locations
Section titled "Display locations"| Option | Description | Default value |
|---|---|---|
display_on_sale_only |
Display only for products on sale | true |
show_on_single |
Single product page | true |
show_on_loop |
Product list (category, shop) | true |
show_on_cart |
Cart | false |
The settings are stored in the polski_omnibus option.
Regular price
Section titled "Regular price"| Option | Description | Default value |
|---|---|---|
show_regular_price |
Also display the regular price alongside the Omnibus price | false |
Text template
Section titled "Text template"| Option | Description | Default value |
|---|---|---|
display_text |
Template for the displayed message | Lowest price in the last {days} days: {price} |
no_history_text |
What to show when there is no price history: hide the message, show the current price (labelled not compliant with art. 6a(2) Directive 98/6/EC) or a custom text | hide |
no_history_custom_text |
The custom text, used when no_history_text is custom |
No recorded price reduction in the last {days} days |
Available variables in the display_text template:
{price}- lowest price from the given period{days}- number of days (default 30){date}- date of the lowest price{regular_price}- regular product price (before promotion)
Template examples
Section titled "Template examples"Lowest price in the last {days} days: {price}Lowest price from the last {days} days: {price} (regular price: {regular_price})Omnibus: {price} (from {date})Price calculation method
Section titled "Price calculation method"| Option | Description | Default value |
|---|---|---|
price_count_from |
When to start counting 30 days | sale_start |
Available values:
sale_start- from the sale start date (recommended by UOKiK)today- from the current date (labelled not compliant with art. 6a(2) Directive 98/6/EC)
Variable products
Section titled "Variable products"Each variation has its own price history. A variable product counts as on sale when at least one of its variations has a sale price below its regular price.
Shortcode
Section titled "Shortcode"Use the shortcode [polski_omnibus_price] to display the lowest price information anywhere on the site.
Basic usage
Section titled "Basic usage"[polski_omnibus_price]Displays the Omnibus price for the current product.
With parameters
Section titled "With parameters"[polski_omnibus_price product="456"]Shortcode parameters
Section titled "Shortcode parameters"| Parameter | Description | Default value |
|---|---|---|
product |
Product ID | Current product |
The number of days always comes from the days setting.
Example usage in a PHP template
Section titled "Example usage in a PHP template"echo do_shortcode('[polski_omnibus_price product="' . $product_id . '"]');Developer hooks
Section titled "Developer hooks"| Hook | Type | Arguments |
|---|---|---|
polski/price/omnibus_html |
filter | string $html, the lowest price, WC_Product $product |
polski/omnibus/price_recorded |
action | product ID, regular price, sale price |
polski/omnibus/history_pruned |
action | number of deleted records |
Automatic history cleanup
Section titled "Automatic history cleanup"The daily WP-Cron event polski_daily_maintenance removes price history entries older than prune_after_days. The database table does not grow without limits.
To clean up by hand, use WP-CLI:
wp polski omnibus-prune --days=90Data imported from the iworks "Omnibus" plugin can be brought in with wp polski import-iworks. See WP-CLI commands.
Compliance with UOKiK guidelines
Section titled "Compliance with UOKiK guidelines"UOKiK guidelines:
- The lowest price information must be displayed with every discount announcement
- The reference period is 30 days before applying the discount
- For products sold for less than 30 days - provide the lowest price since the date of introduction to sale
- For perishable products - the period may be shortened
The plugin follows these guidelines by default. The price_count_from option set to sale_start counts from the sale start date, as recommended by UOKiK.
Troubleshooting
Section titled "Troubleshooting"Omnibus price does not display
Check that the product has a sale price set in WooCommerce. With display_on_sale_only enabled, the message appears only during an active promotion.
A no-history message displays Price tracking starts after enabling the module. Wait for a price change or save the product again to add the first history entry.
Omnibus price is the same as the sale price This is correct behavior if the product has not had a lower price in the last 30 days.
Where does the lowest price notice appear?
Section titled "Where does the lowest price notice appear?"On the single product page and in product lists by default, and only while the product is on sale. You can also turn it on in the cart (show_on_cart) or place it anywhere with [polski_omnibus_price].
What does the notice show for a new product without price history?
Section titled "What does the notice show for a new product without price history?"By default nothing (no_history_text = hide). You can switch to a custom text, or to the current price, which the settings label as not compliant with art. 6a(2) Directive 98/6/EC.
How long is price history kept?
Section titled "How long is price history kept?"90 days by default (prune_after_days). Older records are deleted by the daily maintenance cron.
Next steps
Section titled "Next steps"- Report issues: GitHub Issues
- Discussions and questions: GitHub Discussions