# Create limit rules

* Go to "**Limit rules**" from admin menu. Click the "**Create limit**" button.

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

1. **Select limit type**

* We have 4 options:
  * &#x20;Limit by quantity
  * Limit by value
  * Limit by weight (grams)
  * Restrict by product (example: block adding  product A if product B is in the cart)

2. **Setup limit rule**

* Enter the desired **minimum, maximum** and **multiple** purchase limits for the product.
* If no maximum purchase limit is required, leave the field blank or enter "0".

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

* To set the maximum purchase limit equal to the product's available inventory, check the **"Set the maximum equal to the inventory"** option.

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

2. **Select Products or Product Groups to Apply Limits**

Choose from 5 options to apply the limit rules:

* **All products:** Apply the limit rules to all products in your store
* **Specific collections:** Apply the limit rules to the selected collections.

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

* **Group products**: Apply the limit rules to products that match specific conditions (e.g., tags, titles, or vendors).

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

* **Specific products:** Apply the limit rules to the selected individual products.

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

* **Specific product variants**: Apply the limit rules to the selected product variants.

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

3. **Set quantity condition**

Define how to calculate limit condition. There are 4 options:

* **Total quantity of all products:** Add the total quantity of products belonging to the selected collections and compare min/max
* **Total quantity of each collection:** Add the total quantity of products in each selected collection and compare min/max
* **Total quantity of each products:** Sum the quantities of each product to compare min/max
* **Total quantity of each variant:** the quantity of each variant to compare min/max

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

4. **Apply to markets**&#x20;

* Allows merchants to set personalized limit rules for each market or country, tailoring restrictions to regional needs.

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

* Search and choose the countries/regions where you want the rule to apply.

5. **Target customer**

Select the customer segment to apply the limit rules. There are 5 options:

* **All visitors:** Apply the limit rules to all customers visiting your store.
* **Logged-in customers:** Apply the limit rules to all logged-in customers.
* **Logged-in customers with tag:** Apply the limit rules to logged-in customers with the selected tag.

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

* **Customers without tag:** Apply the limit rules to customers who do not have the selected tag.

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

* **Visitors with IP**: Apply the limit rules to visitors with the specified IP addresses from the list you selected.

<figure><img src="/files/4YZS7WRj1IRAKEoZ6Vl1" alt=""><figcaption></figcaption></figure>

5. **Schedule**

* You can set start and end times for limit rules, and the system will automatically follow the schedule, saving management time.

<figure><img src="/files/shMnfPSmGLjHpTH1qdYM" 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://pareto-1.gitbook.io/pareto-docs/create-limit-rules.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.
