=== Plugin Name ===
Contributors: josk79
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5T9XQBCS2QHRY&lc=NL&item_name=Jos%20Koenis&item_number=wordpress%2dplugin&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
Tags: woocommerce, pricing, discount
Requires at least: 4.0.0
Tested up to: 4.3.1
Stable tag: 1.0.3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easily create bulk prices or discounts in WooCommerce.

== Description ==

"Pricing Rules for WooCommerce" allows you to set bulk pricing rules to products. For example 5% off if customer buys 6 or more. 10% off if customer buys 12 or more.

The prices will be presented to the customer on the product page in the form of a table.

Features:

Create pricing rules the easy way!

* Per-product bulk pricing
* Automatically presents a table with the available prices
* (PRO) Bulk pricing rules for multiple products
* (PRO) Bulk pricing rules for certain categories
* (PRO) Bulk pricing rules for combinations of products
* (PRO) Pricing rules based on customer roles
* (PRO) Automatically presents a custom message to inform the customer about offers

More information on [www.soft79.nl](http://www.soft79.nl).

== Installation ==

1. Upload the plugin in the `/wp-content/plugins/` directory, or automatically install it through the 'New Plugin' menu in WordPress
2. Activate the plugin through the 'Plugins' menu in WordPress

== Frequently Asked Questions ==

= Is the plugin translatable? =

Yes, all string values are translatable through the supplied POT/PO/MO files. In WPML translatable items appear in the context `soft79-wc-pricing-rules` in "String Translations".

This plugin is fully compatible with qTranslate-X.

This plugin can be used in combination with WPML, but filtering rules by product or category will not work (yet!).

= Can I change the way the discounted price is displayed? =

You can use the filter `'soft79_wcpr_min_max_price_html' ( $new_price_html, $original_price_html, $product, $min_price, $max_price, $is_singular )`

The following will display 'From $ x.xx' on the catalog page (Notice that the setting Show min-max price range on category page must be checked):

```
add_filter ('soft79_wcpr_min_max_price_html', 'soft79_wcpr_min_max_price_html', 10, 6);
function soft79_wcpr_min_max_price_html( $new_price_html, $original_price_html, $product, $min_price, $max_price, $is_singular ) {
	if ( ! $is_singular ) {
		return sprintf( __('From %s', 'your-text-domain'), wc_price( $product->get_display_price( $min_price ) ) );
	}
}
```


== Screenshots ==

1. Integrated to the edit product page
2. Optionally displays the from-to price range on the category page.
3. Optionally presents a table with available prices/discounts to the customer.

== Changelog ==

= 1.1.0-b2 =
* PERFORMANCE: Use cached query when retrieving product categories.
* FEATURE: Bulk pricing table for product variations (FUNCTIONAL BUT INCOMPLETE; FIX HTML / CSS)

= 1.0.4 =
* FEATURE: filter 'soft79_wcpr_min_max_price_html' to allow customization of the displayed min-max price range
* FIX: Compatibility with PHP versions prior to 5.5
* FIX: Variable product support

= 1.0.3.0 =
* FEATURE: Auto update price information when switching between product variants
* FIX: Removed some notices/warnings

= 1.0.2.4 =
* FIX: If multiple variants of the same product exist in the cart, the same price would be applied to all variants

= 1.0.2.3 =
* FIX: Fatal error if WooCommerce was disabled
* FIX: Respect 'woocommerce_tax_display_shop' and 'woocommerce_tax_display_cart'
* FIX: Respect price suffix and excl / incl tax message in cart subtotal

= 1.0.2.1 =
* FIX: Removed auto update code

= 1.0.2 =
* FIX: Some PHP warnings were displayed on fresh installations.
* FIX: Tax calculation

= 1.0.0 =
* First public release
