=== Tiermint Volume Pricing for WooCommerce ===
Contributors: juliocolas, freemius
Tags: woocommerce, tiered pricing, quantity discount, bulk discount, volume pricing
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.1.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Quantity-based tier pricing for WooCommerce: tiers by product, category or catalogue, shown on the product page, cart and checkout.

== Description ==

Tiermint Volume Pricing lowers the unit price when customers buy more. You create rules with quantity tiers, choose which products they cover, and the plugin prices the cart and shows the tiers to your customers.

= Rules =

* Cover selected products (and their variations), selected categories (subcategories included) or the whole catalogue.
* Tiers as a percentage discount, a fixed discount per item or a fixed price per item.
* Count quantities per cart line, per product (variations of a product add up) or across the whole rule (different products add up).
* Priority between rules: the rule with the highest priority wins, then the most specific one.
* Optional start and end dates, in the store time zone.
* Choose what happens with products on sale: charge the lower price, apply the tier on top of the sale price, or skip products on sale.
* Duplicate rules from the rules list.

= In the store =

* A tier table on the product page, also with the Add to Cart Form and Add to Cart with Options blocks and with the `[volume_pricing_table]` shortcode.
* A "save up to" note next to the product price.
* Savings on each cart line, and how many more items reach the next tier, in the classic cart, the Cart and Checkout blocks and the mini-carts.
* The regular price crossed out in the classic cart.

= Store settings =

* Default behaviour for products on sale.
* Whether coupons apply on top of volume prices or skip items that have one.
* Which messages to show.
* Whether uninstalling deletes the rules and settings (off by default).

= Compatibility =

* Works with High-Performance Order Storage (HPOS) and the Cart and Checkout blocks.
* Translation-ready, including right-to-left languages.

= Tiermint Volume Pricing Pro =

We are preparing a Pro version with minimum quantities and multiples, tiers for selected customer roles, a coupon policy per rule and CSV import and export. If you are interested, write to juliocolasdeveloper@gmail.com and we will tell you when it is available.


== Installation ==

1. Install and activate WooCommerce.
2. Install Tiermint Volume Pricing from Plugins > Add New, or upload the zip from Plugins > Add New > Upload Plugin, and activate it.
3. Go to WooCommerce > Volume pricing and add your first rule.
4. Review the store settings in WooCommerce > Volume pricing settings.


== Frequently Asked Questions ==

= Which rule applies when several cover a product? =

The rule with the highest priority (the lowest number). If two have the same priority, the most specific one wins: a variation rule beats a product rule, which beats a category rule, which beats a catalogue rule. If the winning rule does not reach any tier for the quantity in the cart, no discount applies.

= Does it work with the Cart and Checkout blocks? =

Yes. Prices, savings and the next-tier message appear in the classic cart and checkout, in the Cart and Checkout blocks and in the mini-carts.

= Can prices go below zero or above the regular price? =

No. A tier never raises the current price and never takes it below zero.

= Do fixed amounts include tax? =

They follow your WooCommerce setting "Prices entered with tax": if your product prices include tax, fixed tier amounts include tax too.

= Does it change existing orders? =

No. It prices the cart. Each order item keeps the rule and tier that were applied, in hidden order item data.

= My page cache shows an old tier table. =

Page caches store the product page as it was rendered. After changing a rule, clear the page cache.

= How do I remove all the plugin data? =

Enable "Delete all rules and settings when the plugin is uninstalled" in the store settings, then deactivate and delete the plugin. With WP-CLI, run the deactivation and the uninstall as an administrator (with `--user`), otherwise the data is kept. While another edition of the plugin is installed, nothing is deleted. Order item data is never deleted.

== Screenshots ==

1. The tier table and the "save up to" note on the product page.
2. The Cart block: the savings on each line and how many more items reach the next tier.
3. The rule editor: which products the rule covers, how quantities are counted and the tiers.
4. The store settings.

== External services ==

This plugin includes the SDK of [Freemius](https://freemius.com/), the platform chosen to sell and license the Pro version. Freemius [Terms of Service](https://freemius.com/terms/) and [Privacy Policy](https://freemius.com/privacy/).

In the free version the SDK runs in anonymous mode: it shows no opt-in screen, does not register your site with Freemius and does not check Freemius for updates. The free version does not ask you to share any data.


== Privacy ==

The plugin does not collect personal data. Order items store the ID of the applied rule and the tier quantity.

== Licence ==

The plugin's own code is licensed under the GPL, version 2 or later. It includes the Freemius SDK, licensed under GPLv3 only, so the plugin as a whole is distributed under GPLv3.

== Changelog ==

= 0.1.0 =
* First release.
