# Setting

The **Settings** section allows you to control how limits are calculated, applied, and prioritized across your store. These options help ensure accurate limit enforcement based on your business rules.

#### 1. Order Calculation Settings

* **Consider Including Cancelled Orders**\
  Enable this option if you want cancelled orders to be included when calculating limits.\
  If disabled, cancelled orders will be excluded from limit calculations.
* **Consider including the discount amount**\
  Enable this option to include discount amounts when calculating total order or amount-based limits.\
  If disabled, limits will be calculated based on the original order amount without discounts.

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

<figure><img src="/files/73p4k2wK1cFEnXjTLanG" alt=""><figcaption></figcaption></figure>

#### 2. Publish App

* **Publish App**\
  Click this button to **publish or Unpublish** all configured limits.
  * When published, all active limits are enforced on the storefront.
  * When unpublished, no limits will be applied.

<figure><img src="/files/6Ng6UiXmp4Q6Uf7BdGmn" alt=""><figcaption></figcaption></figure>

#### 3. Limit Priority

When multiple limits apply at the same time, the system follows a **priority order** to determine which limit is enforced first.

* **Limit Priority**\
  Drag and drop the limit types to define the order in which limits should be applied.

Available limit types:

* Products Day Limit
* Date Limit
* Global Limit Day
* Global Limit Date
* Customer Tag Limit
* Total Order Limit
* Total Amount Limit

The limit placed higher in the list will take precedence over the others.

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

Once configured and published, the **Settings** ensure all limits are applied consistently and according to your defined business logic.


---

# 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/vox-limit-orders-per-day/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.
