# Discount cheapest cart item

In this guide, you’ll learn how to set up:

* Apply a Discount (x% % or x$ $) to the Cheapest Cart Item

Set the rule as buy any 3 products and get a discount on the cheapest one. (You can set another rule with more products.)

Instead of giving the cheapest item for free, you can apply a specific discount. This could be:

* Percentage discount (e.g., 50% off the cheapest item)
* Fixed discount (e.g., $10 off the lowest-priced item)

#### Step 1: Add a New Dynamic Pricing Rule

* Go to YayPricing > Click Add Rule and select Buy X Get Y

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2F3R8QLmWAzhbU0Tyl4KIq%2FCreate%20a%20new%20Buy%20X%20Get%20Y%20rule.jpg?alt=media&#x26;token=7830eae3-c259-419c-9999-67217a2f66aa" alt=""><figcaption></figcaption></figure>

#### Step 2: Define the Pricing Rule for Buying 2 of 3 Products

In the Buy Product section:

Choose Cart Subtotal, Quantity, or Products in Cart depending on your campaign.

Example: Customer must buy at least 2 items.

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2Fi7KPo2qm5aa26PgHa0Q0%2FDefine%20Buy%20Products%20section.jpg?alt=media&#x26;token=72520c76-0c16-4fb8-ae62-33beac0eb261" alt=""><figcaption></figcaption></figure>

#### Step 3: Choose the Cheapest Item Target

In the “Get Products” section, choose the “Discount" option > the Cheapest one. Specify the discount type as a percentage discount and the discount value. Assign 3 similar products as above.&#x20;

Option A: Percentage Discount

In the Get Product section, choose:

* Type: Discount %
* Amount: 30%
* YayPricing will automatically apply the percentage to the cheapest item.

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FO1mptTtwJQvXC807MQ7K%2FSet%20the%20discount%20value%20for%20cheapest%20item.jpg?alt=media&#x26;token=9c8b1d5f-39df-4c83-b247-b97c5e906bf8" alt=""><figcaption></figcaption></figure>

Option B: Fixed Price Discount ($)

* Type: Discount amount
* Amount: $10
* YayPricing will subtract this amount from the lowest-priced product.

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FW0e1h29BVs4J2LkqhZXq%2FSet%20the%20fixed%20discount%20for%20cheapest%20one.jpg?alt=media&#x26;token=3b108a91-86da-434d-a267-9ab262c32c5c" alt=""><figcaption></figcaption></figure>

#### Step 4: Save the change and see how it works!

After setting up, let's see how this discount rule is applied on the checkout page.

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FXelkJzlEBIla6wxWIwRm%2FCheck%20the%20cart%20for%20discount%20the%20cheapest%20item.jpg?alt=media&#x26;token=868b96ae-ef3c-47be-b6d3-f484903a77b6" alt=""><figcaption></figcaption></figure>

Your discount will now apply automatically to the cheapest item in the cart.\
\ <br>

<br>
