4,000+
July 15, 2026
December 28, 2022
WC Price History plugin allows you to track WooCommerce© Products prior prices history and display the lowest price in the last 30 days. This plugin allows your WC shop to be compliant with European law which specifies price reduction announcement policy.
The plugin works out of the box: install and activate and your discounted products will be compatible with Omnibus directive!
Plugin is configurable via WooCommerce > Price History screen. You can configure:
↪ Where to display the price history information:
» on the single product page
» upsell and related products
» main shop page
» product category pages
» product tag pages
↪ When to display minimal price (always or only when the product is on sale)
↪ How to count minimal price (the minimal from the moment product went on sale to 30 days before that moment or the minimal price from today to 30 days ago)
↪ How many days take into account when calculating minimal price (30 days by default)
↪ How to display the price history information
↪ What to do if the price didn’t change in the last N days (hide price information / display current price / display custom text)
At the configuration screen you will find additional information how to configure the plugin to be compliant with Omnibus directive (European Commission Directive 98/6/EC Article 6a) and link to legal acts.
wp-content/pluginswp-admin > Plugins and activate the pluginEuropean Commission Directive 98/6/EC Article 6a – in short Omnibus directive – specifies price reduction announcement policy.
You don’t have to do anything special, the default settings are compliant with Omnibus directive!
However, in case you misconfigured the plugin, here are steps to take to make it compliant again (please note similar suggestions hints you will see on Settings screen):
WooCommerce > Price History screenDisplay on to Single product pageDisplay minimal price to Only when product is on saleCount minimal price from to Day before product went on saleNumber of days to use when counting minimal price: to 30 daysSale price dates from to the date when the product went on sale.Yes, the plugin is compatible with product taxes and variable products (it tracks minimal price for each variation individually).
That depends on the addon. Some addons may not work with the plugin, some may work. For time being we recommend using the plugin with the following addon:
https://wordpress.org/plugins/woo-discount-rules/
This one was confirmed to work well with the plugin. If you know of other addons which work with the plugin, please let me know on the forum! I will add it to the list.
If you want to display the lowest products price in other place than default, you can use shortcode wc_price_history. A few examples:
Display the lowest price on single product page (without passing product ID as argument), currency symbol attached:
This product low is [wc_price_history]
Display the lowest price of the other product, currency symbol attached:
The product with ID 3 had the lowest price [wc_price_history id=3]
Display without currency symbol:
The product with ID 3 had the lowest price [wc_price_history id=3 show_currency=0]
Available filters are:
wc_price_history_is_correct_place (defined in PriorPrice\Prices::is_correct_place)
Allows to display price history on custom screens, not listed in plugins settings. Return true to make price history visible.
wc_price_history_is_not_correct_when (defined in `PriorPrice\Prices::is_not_correct_when`)
Allows to stop displaying price history for your own custom conditions. Return true to prevent displaying price history.
This is because you have not set Sale price dates from for these products. Go to the product edit screen and set Sale price dates from to the date when the product went on sale.
Tip: All the products which are On sale but does not have Sale price dates from set will be logged to WooCommerce logs. Go to WooCommerce > Status > Logs to see the list of products (in right top corner preselect log which name starts with wc-price-history).
Yes, you can use filter wc_price_history_lowest_price_html_raw_value_taxed:
`
add_filter( ‘wc_price_history_lowest_price_html_raw_value_taxed’, function( $price, $wc_product ) {
// do something with $price
return $price;
}, 10, 2 );
`
Yes, on the plugin configuration screen click the button ‘Clean history’. This will remove all the history storage for all products. Make sure you know what you are doing (in general, use this option only if you are going to remove plugin completely).
Please submit the GitHub issue.
Yes, I am available for hire. Please contact me at LinkedIn.
wc_price_history.lowest and wc_price_history.history (settings under WooCommerce Price History, off by default). (#202)wc_price_history_variations_add_history_lowest_price to filter the lowest price for variations. (#167)wc_price_history_is_correct_place to make it possible to display price history info in custom location.wc_price_history_is_not_correct_when to stop displaying price history for your own conditions.| Version | Download | Type |
|---|---|---|
| 3.2.5 | Download | Stable |
| 3.2.4 | Download | Stable |
| 3.2.3 | Download | Stable |
| 3.2.2 | Download | Stable |
| 3.2.1 | Download | Stable |
| 3.2.0 | Download | Stable |
| 3.1.0 | Download | Stable |
| 3.0.1 | Download | Stable |
| 3.0.0 | Download | Stable |
| 2.2.3 | Download | Stable |
| 2.2.2 | Download | Stable |
| 2.2.1 | Download | Stable |
| 2.2.0 | Download | Stable |
| 2.1.9 | Download | Stable |
| 2.1.8 | Download | Stable |
| 2.1.7 | Download | Stable |
| 2.1.6 | Download | Stable |
| 2.1.5 | Download | Stable |
| 2.1.4 | Download | Stable |
| 2.1.3 | Download | Stable |
| 2.1.2 | Download | Stable |
| 2.1.1 | Download | Stable |
| 2.1 | Download | Stable |
| 2.0.0 | Download | Stable |
| 1.9.0 | Download | Stable |
| 1.8.1 | Download | Stable |
| 1.8.0 | Download | Stable |
| 1.7.4 | Download | Stable |
| 1.7.3 | Download | Stable |
| 1.7.2 | Download | Stable |
| 1.7.1 | Download | Stable |
| 1.7 | Download | Stable |
| 1.6.6 | Download | Stable |
| 1.6.5 | Download | Stable |
| 1.6.4 | Download | Stable |
| 1.6.3 | Download | Stable |
| 1.6.2 | Download | Stable |
| 1.6.1 | Download | Stable |
| 1.6 | Download | Stable |
| 1.5 | Download | Stable |
| 1.4 | Download | Stable |
| 1.3 | Download | Stable |
| 1.2 | Download | Stable |
| 1.1 | Download | Stable |
| 1.0 | Download | Stable |
| Development | Download | Trunk |