Skip to content

Track Woocommerce Products prices history and display the lowest price in the last 30 days. This plugin allows your WC shop to be compliant with European Commision Directive 98/6/EC Article 6a which specyfies price reduction annoucment policy.

License

Notifications You must be signed in to change notification settings

kkarpieszuk/wc-price-history

Repository files navigation

wc-price-history

Track WooCommerce© Products prices history and display the lowest price in the last 30 days. This plugin allows your WC shop to be compliant with European Commission Directive 98/6/EC Article 6a which specifies price reduction announcement policy.

Installation

Standard installation (from WP repository)

This plugin is available in WordPress repository for free, so you can find it there.

Alternatively, you can find it in your current WordPress installation (wp-admin » Plugins » Add new » Search ).

Development version (from GitHub)

Clone this repository and run composer and npm:

git clone git@github.com:kkarpieszuk/wc-price-history.git
cd wc-price-history
composer install
npm install

How does it work?

This plugin logs prior prices in custom field _wc_price_history. Every time you update your product the prior price will be stored in the log (if it differs from the last stored price).

On the front-end on a single product page and product listings page, just under the product price, your visitors will see a 30-day low price:

Single Product Page screenshot

The plugin has configurable settings:

Settings screenshot

Shortcode

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]

About

Track Woocommerce Products prices history and display the lowest price in the last 30 days. This plugin allows your WC shop to be compliant with European Commision Directive 98/6/EC Article 6a which specyfies price reduction annoucment policy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published