> For the complete documentation index, see [llms.txt](https://help.spicegems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.spicegems.com/epa-easy-product-addons/apply-discount-on-the-add-ons/min-max-setting.md).

# Min-Max Setting

**The Min-Max setting allows you to apply either the maximum or minimum discount to an addon product, based on the selected configuration.**

You can configure the Min-Max settings according to your requirements

To illustrate how the Min-Max setting works, let's consider the following example:

* **Master product - A**
* **Master product - B**
* **Addon product - X**

In this case, different discounts are configured for Addon - X:

* A 20% discount is applied to Addon - X when paired with Master product A.
* A 25% discount is applied to Addon - X when paired with Master product B.

Here’s how the Min-Max setting works:

* **Min setting**: If Addon - X is added to the cart with both Master products A and B, the **minimum discount** (20%) will be applied to Addon - X, regardless of the higher discount on Master product B.
* **Max setting**: If Addon - X is added to the cart with both Master products A and B, the **maximum discount** (25%) will be applied to Addon - X, based on the discount from Master product B.

This allows you to control how discounts are applied based on the products in the cart.
