# How to Create a Cart-Level Promotion: $20 Off When 5+ Items Are in Cart?🤔

<mark style="color:$success;background-color:$success;">**🎯 Objective: Automatically offer a $20 discount when a customer adds more than 5 items to their cart — no manual code entry required.**</mark>

### Step 1: Create a Cart-Based Discount Function

* Open your **Nexus dashboard.**
* Click **“Create Function”.**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWTS7TLaiRafEVQ4ZndzcDW1ZjpIejj6eytgaD1LhzMcHTgoGHK1NXxIlAqRVgAnvDYIztFxGPzkPp9q5cI6xw1jVfwBDyfCts-jx_pCiSQ8zy41a79F4L1GXbGE4xfySO6Mw32w?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

* Choose **“Discount Functions”** and select **“Amount Off Order”** as your discount type.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdxy_mOJG1Tsmpzzj7xVw2StJdmLiLi9bgmoS4hsuZdkKDPLaDlIOwnoqpVsBaDldsEpUGmKEDpdZp2fx-UEcPpjflcR9yPqiz2nO9pr_1UG-LZtTJP3zqdXcM8ea8k45jMOd0h0g?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

### Step 2: Set Campaign Type & Define Conditions

Apply the following logic to ensure the **discount triggers** correctly:

**Cart Qualifier**

* **Select: Cart/Item Quantity**
* **Behavior: Cart Total Quantity**
* **Condition: Greater than**
* **Value: 5**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXesgtzW8iq7EA4G5tyo_1_OMG3QU-0RIECh3XN44Ba5ekMQkdD3suIkvJq7aOrMtSDIWYWKsBCQpCm_oG2T3CrjMH-dVFL1wNTTUITCmy7AGt7es5RzNW7TGVFH3XqYq8TDdbc40w?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

### Step 3: Apply Discount & Save

* Set the **discount type as Percentage Discount** **($20 off).**
* Apply it to the **entire order.**
* Click **Save** to publish and **activate the promotion**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcI6h3ClKGzIHDCjXCR-GVy7QKAVpt010exZ8jwaZW1lMcZlnCXqNoqbxUJQdVZ4cvewqzbthMqjLxJWLK5lTA-1YMOoiHJoYKCwNDHmQP4BtcKkX-1AdblEqVNvjMAs1nvMM2I2Q?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

#### ✅ Your Discount is now active! Shoppers will automatically receive $20 off their cart total when they add more than 5 items — no coupon code required!

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe2gCqUbe22S-ribTG9t0Atyc7QPLiKyjA7iLTsE0NGwJoebTfP2q75fuNOWnsbIhZ-LzcE7pM2vgwlCL_gBHzWr-YV-h0nO-00mPjN_mKIlSUli_vpM0SHXVqk59Vd4fOiiSG0?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.youtube.com/watch?v=whGMRbpzO18>" %}

<br>


---

# 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://nexus-functions-creator-and-disc.gitbook.io/nexus-functions-creator-and-discounts/faqs/how-to-create-a-cart-level-promotion-usd20-off-when-5+-items-are-in-cart.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.
