# 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FNmnuQgQsvuUO9Cvapu4j%2FKOR%20enable%20qty%20in%20cart%20limit.png?alt=media&#x26;token=bcdcd121-2bc3-4118-8169-1d8e6957ff7e" 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2Fowr74IIUnzkbG9ZvLDjw%2Fimage.png?alt=media&#x26;token=582e0156-c0d0-469d-9793-3a9c6f9ef2a1" 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FH4rTs77gp5wXCUVWDvdm%2Fimage.png?alt=media&#x26;token=b315c580-7540-4898-9ff0-602e4a6e833b" 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FUFDdlWrQf6SXpcOJUMVs%2Fimage.png?alt=media&#x26;token=94470908-1b41-4842-9920-5cc45fb0b487" 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FmpYVgI24YS5bIT2lWs8t%2FScreenshot_1.jpg?alt=media&#x26;token=94a3e124-cdf9-4abc-9d07-624038427039" alt=""><figcaption></figcaption></figure>

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FF7Usjmj5A91gM4tVI7CD%2FScreenshot_2.jpg?alt=media&#x26;token=03fcd620-72cf-4c0c-be2a-99d90a7f9aa9" alt=""><figcaption></figcaption></figure>


---

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