> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarlabs-ultimate-discounts/unified-discount-engine-v2/targets.md).

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

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%2Fgit-blob-aad85e0a0d4a3f6eda943abce06f329e2e190f26%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***

## How to limit the discounts given to the user

1. Limit discount by Qty of items
2. Limit discount based on lines
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%2Fgit-blob-b2b268aad9c9ceada39e450127fc1e4bc362d9d8%2Fimage.png?alt=media" 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.
{% endhint %}

***

### Limit discount to only X line items

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%2Fgit-blob-37e6500473ac2017538feb155b848556f20300ba%2Fimage.png?alt=media" 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%2Fgit-blob-08cc2d1221530774433423a8872dd7edafd51c91%2Fimage.png?alt=media" 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%2Fgit-blob-08c28c6f45f044c2538a0b8c50f013e3e2f75d44%2Fimage.png?alt=media" 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%2Fgit-blob-c61d1010be0693397c59c5d772f3f4eee285b339%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***
