The EU Omnibus Directive requires a shop that announces a price reduction to show the prior price: the lowest price in at least the 30 days before. Magento only knows today’s price. This module records a daily price history and gives the storefront the lowest price in the window, shown as “Lowest price in the last 30 days: €…”.
Prior-price disclosure under a discounted product price.
A daily cron job copies each product’s current price from Magento’s price index.
One row is kept per product, website, customer group and day, because each customer group can see a different price.
If the snapshot runs twice in a day, the lower price is kept, so a same-day markdown is not lost.
For configurable, bundle and grouped products, the “from” price shown on the storefront is recorded. Each variant also has its own history, so choosing a swatch updates the disclosure.
Old rows are removed automatically, so the history doesn’t keep growing.
Run the snapshot after the price reindex. It is only as fresh as the last price index. If the price indexer runs on a schedule, keep the snapshot after it (default 03:00).
Database size. About products × websites × customer groups × (window + 10 days) rows. It stays flat once the window is full.
The snapshot is skipped while the feature is off everywhere, so an unused install records nothing.
Stores > Configuration > Magenx > Price History (EU Omnibus)
General
Records a daily snapshot of each product's price and exposes the lowest price over the look-back window as the EU Omnibus "prior price" (the lowest price applied during at least the 30 days before a reduction, which must be shown whenever a reduction is announced). Needs the magenx_price_history_snapshot cron running; the window fills in over the first N days. When disabled the price_history product field resolves to null and the storefront shows no prior-price line.
ProductInterface.price_history resolves a whole grid in one query, so it is safe on category and search pages. It is null when the feature is off or no history exists yet.
Fields added to Magento types
Field
Type
Description
ProductInterface.price_history
PriceHistory
EU Omnibus prior price: the lowest price applied to this product over the configured look-back window (default 30 days), for the request's website + customer group. Null when the feature is disabled or no history has been captured yet. Resolved in a single batched query per request, so it is safe on listing grids.
StoreConfig.price_history_enabled
Boolean
Whether EU Omnibus prior-price tracking is enabled for the store.
Types
type PriceHistory - EU Omnibus (Art. 6a of Directive 98/6/EC) prior-price information: the lowest price applied over the look-back window, which must be shown alongside any announced price reduction.
Field
Type
Description
lowest_price
Float
The lowest price applied during the look-back window, in the store's display currency.
currency
String
Currency code of lowest_price.
days
Int
Length of the look-back window in days.
since
String
ISO-8601 date (YYYY-MM-DD) the window starts, i.e. today minus days.