xpay✦ Commerce
Directory
WooCommerce plugins
WC Price History
WC Price History
What was the lowest price recently? Build customer trust through transparency! Track and display product price history in WooCommerce store.
5.0
(25 ratings)Will this break my store?
What the WordPress.org registry says about keeping WC Price History running.
Tested to 7.0.2
Tested against the WordPress branch in use today.18 days ago
At least 12.8 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.7.2
Your host must be running at least this version.5.8
woocommerce
These must be installed and active first.1
A single maintainer. Worth knowing if the plugin is load-bearing for your store.Maintenance & trust
Scored on how WC Price History is looked after — not on how many stores run it.
98
out of 100Maintenance
35 / 35WordPress compatibility
20 / 20Support responsiveness
Not enough dataMerchant satisfaction
14 / 15Listing transparency
10 / 10Ratings
5.0
25 ratingsWC 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.
Usage
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.
European 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):
- Go to
WooCommerce>Price Historyscreen - Set
Display ontoSingle product page - Set
Display minimal pricetoOnly when product is on sale - Set
Count minimal price fromtoDay before product went on sale - Set
Number of days to use when counting minimal price:to30 days - For each product being on sale, go to its edit screen and set
Sale price dates fromto 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.
Plugin details
Tags on WordPress.org
