# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.spicegems.com/epa-easy-product-addons/apply-discount-on-the-add-ons/min-max-setting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
