Skip to content

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.

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.

Product page with Omnibus lowest price displayed

Go to Polski > Settings > Tax & Pricing and configure the available options.

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).

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.

Option Description Default value
show_regular_price Also display the regular price alongside the Omnibus price false
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)
Lowest price in the last {days} days: {price}
Lowest price from the last {days} days: {price} (regular price: {regular_price})
Omnibus: {price} (from {date})
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)

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.

Use the shortcode [polski_omnibus_price] to display the lowest price information anywhere on the site.

[polski_omnibus_price]

Displays the Omnibus price for the current product.

[polski_omnibus_price product="456"]
Parameter Description Default value
product Product ID Current product

The number of days always comes from the days setting.

echo do_shortcode('[polski_omnibus_price product="' . $product_id . '"]');
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

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:

Terminal window
wp polski omnibus-prune --days=90

Data imported from the iworks "Omnibus" plugin can be brought in with wp polski import-iworks. See WP-CLI commands.

UOKiK guidelines:

  1. The lowest price information must be displayed with every discount announcement
  2. The reference period is 30 days before applying the discount
  3. For products sold for less than 30 days - provide the lowest price since the date of introduction to sale
  4. 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.

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.

90 days by default (prune_after_days). Older records are deleted by the daily maintenance cron.

This page is for informational purposes only and does not constitute legal advice. Consult a lawyer before implementation. Polski for WooCommerce is open source software (GPLv2) provided without warranty.