> For the complete documentation index, see [llms.txt](https://magecomp.gitbook.io/shopify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://magecomp.gitbook.io/shopify/apps/vox-limit-orders-per-day/total-quantity-limit.md).

# Total Quantity Limit

The **Total Quantity Limit** allows you to set a **maximum combined quantity** that customers can purchase from the selected products during the defined date range.

When multiple products are selected, the limit is applied to the **sum of quantities of all selected products**, not to each product individually.

#### How It Works

* Customers can add any combination of the selected products to their cart.
* The system continuously calculates the **total quantity** of all selected products.
* Once the combined quantity reaches the configured limit, the customer **cannot add more units of any selected product**.

<figure><img src="/files/9R4uLhOudEJkVX2esgue" alt=""><figcaption></figcaption></figure>

#### Example

**Selected products:**

* Lady Scarf
* Blue Tie
* Black Tie

**Total Quantity Limit set to:** 4\
**Restriction period:** January 21, 2026 to January 23, 2026

If a customer adds:

* Lady Scarf × 1
* Blue Tie × 2
* Black Tie × 1

**Total quantity = 4**

Since the total quantity limit has been reached, the customer will **not be able to add any additional quantity** of Lady Scarf, Blue Tie, or Black Tie to the cart **during the date range from January 21, 2026, to January 23, 2026**.

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

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

Now, if you want to set limits based on **order amount**, the **Total Order Amount** option allows you to define a maximum **combined purchase value** for the selected products within the specified date range.

When multiple products are selected, the system calculates the **total price of all selected products in the cart**. Once the total order amount reaches the limit you set, customers will **not be able to add any more of the selected products** during the active date range.

#### Example

**Selected products:**

* Lady Scarf
* Blue Tie
* Black Tie

**Total Order Amount set to:** $200\
**Restriction period:** January 21, 2026 to January 23, 2026

If a customer adds:

* Lady Scarf – $60
* Blue Tie – $80
* Black Tie – $60

**Total order amount = $200**

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

Since the total order amount limit has been reached, the customer will **not be able to add any additional quantity** of Lady Scarf, Blue Tie, or Black Tie to the cart **during the date range from January 21, 2026, to January 23, 2026**.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://magecomp.gitbook.io/shopify/apps/vox-limit-orders-per-day/total-quantity-limit.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
