# Quantity in Cart

Shopify merchants can apply the limits to product quantity to the customer's shopping cart instead of applying the purchase limits to any specific product or collection.

#### <mark style="color:blue;">Step #1</mark>

Go to **Cart Limit**.

**Enable** the field if it is not enabled.

<figure><img src="/files/U4YK8GKrVIWmXOfhI0fG" alt=""><figcaption></figcaption></figure>

#### <mark style="color:blue;">Step #2</mark>

Fill in the **Min Limit** & **Max Limit** under the **Set limits for quantity in cart** section & save.

<figure><img src="/files/WZybXjqjQczhT0PYTKdW" alt=""><figcaption></figcaption></figure>

Suppose you've set the following limits.

| Min Limit | Max Limit |
| :-------: | :-------: |
|     2     |     20    |

If there is only **1 product in the cart**, the purchase <mark style="color:red;">**will not be completed**</mark> because **Min Limit = 2**.

If there are **27 products in the cart**, the purchase <mark style="color:red;">**will not be completed**</mark> because **Max Limit = 20**.

This app also provides you with the functionality to display a message to your customers if the min and max purchase criteria are not fulfilled during the checkout procedure.

You can also **Set Limit Alert Messages** for your customers to notify them about the limits set on your store.

<figure><img src="/files/vGSLVdwP8CGeK5XUv1If" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*Here, you can **customize** your limit alert message that will be displayed to your customers whenever they have not fulfilled the minimum and maximum purchase limit criteria*.
{% endhint %}

**Cart Preview**

This is how the alert notification will be displayed for your customers.

<figure><img src="/files/ASEmYmetRw2JsiLxjgPB" alt=""><figcaption></figcaption></figure>

In addition to the existing cart quantity limit, you can now **configure minimum and maximum cart quantity rules per market**.

This enhancement allows you to apply **different quantity limits based on the selected market**, giving you greater control over regional purchasing behavior without changing your global cart rules.

#### How it works

* The global cart quantity limit continues to function as usual
* When market-specific rules are enabled, the app applies the **configured limits for the selected market**
* Each market can have its **own minimum and maximum quantity settings**

#### How to configure

1. Navigate to **Quantity in Cart Settings**
2. Click on the **Switch Market** button
3. Select a **Market**
4. Define the **Minimum** and **Maximum** cart quantity
5. Save the settings

<figure><img src="/files/qFTZmgqZloIbvYf49QSx" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/xWwiwBwUhTeT98xh5NkR" alt=""><figcaption></figcaption></figure>

### Future Cart Quantity Limit

Now you can also add the Future Cart Quantity Limit that allows merchants to restrict customers from purchasing more than a specified total quantity of configured products within a defined time period.

Merchants can configure:

* **Future Limit** – Maximum quantity a customer can purchase
* **Future Limit Duration** – Time period for the restriction
* **Future Limit Alert Message** – Custom alert message displayed when the limit is exceeded

<figure><img src="/files/FDb83zRn8qdmyGAIzg9m" alt=""><figcaption></figcaption></figure>

#### Example Configuration

* Min Limit: **2**
* Max Limit: **20**
* Future Limit: **10**
* Future Limit Duration: **10 Days**

#### Example Scenario

Customer A purchases:

* 4 quantities on Day 1
* 3 quantities on Day 3
* 3 quantities on Day 5

Result:

* The customer has now purchased a total of **10 items within 10 days**.
* If the customer tries to purchase additional quantities before the 10-day duration expires, the app will restrict the purchase and display the configured future limit alert message.

#### Frontend Alert Example

“You can only order up to 10 items within the allowed time period.”

Merchants can fully customize the alert message according to their store requirements by using the Future Limit Alert Message setting.

<figure><img src="/files/Xew2tqeVl6IMS9eGqEDP" alt=""><figcaption></figcaption></figure>

#### Use Cases

* Prevent repeated bulk purchases
* Restrict limited-stock product orders
* Control promotional product purchases
* Manage inventory distribution efficiently


---

# 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://magecomp.gitbook.io/shopify/apps/kor-order-limit-quantity/cart-limit/quantity-in-cart.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.
