> 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/discount-engine-v1/examples-v1/product-discount-examples-v1/give-product-for-free-if-the-cart-value-is-above-usdx.md).

# Give product for free if the cart value is above $X

We have covered a slightly more elaborate set of examples on the video to better illustrate some concepts.&#x20;

{% embed url="<https://drive.google.com/file/d/1fq6lM9Ork_iMZfEKNl9bNCjkJ9DYPBhM/view?usp=sharing>" %}

Let's assume the case where you would want to give a product in the user's cart for free when the total value of the cart is above a certain threshold. Here's how you would build that using the Dollar Discounts rule builder.

<figure><img src="/files/RXWvsObYVdjR36trXiRF" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Notice how we have set the then condition to check for the line quantity = 1, this is to ensure that the discount is only applied to that particular vairant only if it has a single quantity in the cart. \
\
This way you can limit discount abuse and prevent your discount from being exploited. You can also leverage discount / line application strategies to add further limits.
{% endhint %}
