# 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FN6y8i7sKwk4cuk9gO0wP%2FScreenshot_48.jpg?alt=media&#x26;token=22c2e7dd-0263-45a2-ab96-8e4cecae4641" alt=""><figcaption></figcaption></figure>

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FLXsseaSjZ3cFezVyBpv9%2FScreenshot_49.jpg?alt=media&#x26;token=6c392780-084c-45ca-9740-8fe8a7cf4bc3" 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FtXBluvzQx08F0MEnFTwj%2FScreenshot_50.jpg?alt=media&#x26;token=f96f7c2c-9793-44f6-884e-5efe8f6d2ca3" 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="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FVfQ8koBJGOLlPKvHHoDH%2FScreenshot_51.jpg?alt=media&#x26;token=d7769417-5bb1-45f5-bee9-507500f3931b" alt=""><figcaption></figcaption></figure>

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