> 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="/files/m80AvNSGPuP4e2VgD4GJ" 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="/files/yfxyynUeABmBj3wJtgkH" 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="/files/5kzqoa5spM0H9UX4h1kM" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

<figure><img src="/files/JwjKbUpWt79bGwDIpxki" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

<figure><img src="/files/dcZisvgKtTUMuNN9rjCx" 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="/files/iGP2A5HfucDV9HMBZT8L" alt=""><figcaption></figcaption></figure>

***
