# Targets

This is where you define which items in the user's cart receive a discount when the rules are met. The default is set to \`All\` meaning that all items in the cart would get the discount.&#x20;

But you can choose between any of the cart groups that you've defined earlier.

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2FIXf7UZYhnQYy4zzoDskd%2Fimage.png?alt=media&#x26;token=7febc301-3f61-4fbe-abca-2d3855ae43bb" alt=""><figcaption></figcaption></figure>

***

## How to limit the discounts given to the user&#x20;

1. Limit discount by Qty of items&#x20;
2. Limit discount based on lines&#x20;
3. Limit discount based on amount :hourglass: (Q3 - 2025)

***

### Limit discount to only X quantity of items in a group

Yes - we support offering complex conditions like 10% off on 5 items from "Toys" collection, for example. This is supported via a feature called "Maximum Quantity" which you can set up through this dropdown.

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2FcdqUmrR6bEKX0Ky1zlZT%2Fimage.png?alt=media&#x26;token=bea8eb1c-b9e0-47b6-a778-22178483b70d" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
You can also setup negative quantity limits to build rules like all items from X group except N gets the discount.&#x20;
{% endhint %}

***

### Limit discount to only X line items&#x20;

We also support setting a limit on the number of line items that get the discount if eligible. This setting can be configured both on a per discount config level or across the entire function as well, acting as a safety net.

You can enable by heading to the setting icon in the discount config > Line limit.

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2FH5g7rOVx73xZqwkYpt2G%2Fimage.png?alt=media&#x26;token=78b30d52-dfad-48db-bf28-c64b00ca1a9f" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fyq9yjfzTIv9A2opzAIcv%2Fimage.png?alt=media&#x26;token=948ea195-3194-4d97-af65-7231331a1969" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2FoKDBAaK3bEQs8pHRJL5l%2Fimage.png?alt=media&#x26;token=af5c122e-d913-466e-b84b-462fd4961526" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

You can also set up a global line limit to set a line limit for the entire function, as a safety net.

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2FKj8wBVrTs2SIIXpOflP2%2Fimage.png?alt=media&#x26;token=68e51ac8-afd7-432f-8ee9-6c9c33545e5f" alt=""><figcaption></figcaption></figure>

***
