> 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/setting.md).

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