Automatic Price History and EU Omnibus Price Disclosure
OmnibusDirective connects nopCommerce's product price changes to an automatic price-history record, then displays the lowest price of the preceding 30 days on the storefront product page to support EU Omnibus Directive price-reduction disclosure. It captures every admin price update, keeps a rolling 30-day history, and lets merchants customize the widget zone and message per store.
What It Does
- Automatic price capture — overrides the product repository to write a PriceHistoryItem whenever an admin saves a new price greater than zero.
- Storefront lowest-price message — shows the lowest price of the last 30 days under the price of a reduced product (Old price or discount), via a configurable %PRODUCT_PRICE% template.
- Widget zone selector — places the message in any zone read from WidgetZones.xml, defaulting to productdetails_inside_overview_buttons_before.
- Tax and currency aware — the price passes through ITaxService and IPriceFormatter, converted to the customer's working currency.
- Grouped product support — each associated product of a grouped product gets its own lowest-price line under its own price.
- Admin price history card — shows date, previous price and the customer who changed it on the product edit page.
- Paged price history grid — a per-row delete action and a collapsible card state remembered per admin user.
- Scheduled cleanup task — the "Omnibus Directive" task runs every 86400 seconds, deleting PriceHistoryItem rows older than 30 days.
- Per-store overrides — Enabled, the widget zone and the message template can each be set independently per store.
- Cached minimum price — cached under a static cache key prefix, invalidated automatically whenever a PriceHistoryItem changes.
- Debug logging — a toggle with download and clear actions for the plugin log file.
- Repository conflict detection — the configuration page warns when another plugin has replaced IRepository<Product>.
How It Works
- Admin enables the plugin and sets the widget zone and message template, per store if needed.
- A merchant updates a product price in admin; the plugin records the previous price automatically.
- The storefront product page shows the lowest price from the last 30 days, tax and currency converted.
- Admin reviews or deletes entries in the price history grid on the product edit page.
- A daily scheduled task removes history rows older than 30 days and clears the cache.
Specs & Requirements
- nopCommerce — 5.00, 4.90, 4.80, 4.70, 4.60, 4.40
- Plugin type — Misc; a miscellaneous plugin with a storefront widget (IMiscPlugin, IWidgetPlugin)
- Store setup — the MANAGE_SETTINGS permission is required for the configuration page and admin menu entry