# Cart Discounts

This rule type allows you to set up product pricing campaign that affects only the Cart page and also allows you to **Show tooltip on cart discount, set Schedule, Usage limits** plus.

{% hint style="info" %}
**Requirements**: You need to enable the use of coupon codes beforehand to make cart discounts work.

From your admin dashboard, go to WooCommerce > Settings > Enable coupons, and check **Enable the use of coupon codes**.

<img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2F3XlpY8lGqIxiKgYZD3iE%2FEnable%20coupon%20codes.jpg?alt=media&#x26;token=003ba83e-c42a-4894-8e1d-d30a4cb254ae" alt="" data-size="original">
{% endhint %}

There are **3 types of pricing** methods in this rule.

* Fixed discount
* Percentage discount
* Fixed Discount per Individual Cart Item

![A screenshot showing different pricing methods available in Cart Discount Rule](https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FitdvZIxobSzvzYbDufFR%2F2023-06-02_10-45-35.png?alt=media\&token=9f7bbfc1-f509-4221-a5ba-8a814d32bdfb)

**(1).** This is a sub tab that will allow you to see the **3** methods of Cart Discount Pricing Rule.

**(2).** This sub tab will allow you to set the condition for the application of Cart Discount Rule, either to have it applied to All/Any of the set conditions.

![](https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FwyvUTvTB1mvYykIaIe0T%2F2023-06-02_10-50-34.png?alt=media\&token=fa595861-14ef-4666-a698-6caee8b36082)

**Show tooltip on cart discount:** You can use shortcodes in Variable list.

![](https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2F2v02xceFya8Udhmq2Bsq%2F2023-06-02_10-51-58.png?alt=media\&token=9f883956-406f-43d5-9af7-7de6a81ee1d4)

It will appear like this in **frontend**:

![](https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FCzKw6JJTL7fKl9qJYr27%2FScreenshot_116.png?alt=media\&token=b6b5bc6c-2d43-49cb-a0f5-9851e3b7775b)

**Percentage discount:** It means fixed discount based on set percentage.\
**Example:** If you set **Beanie** product discount to **20%**, and its basic cost is **$20,** and 2 items of **Album** which cost **$20**, the total discount is **$8** ( which is **20%** of both **1** **Beanie**, and **2** **Album**).

**Fixed Discount per Individual Cart Item:** It means fixed discount based on line item.\
**Example:** If you set discount to **$3**. If your cart has 1 item of **Beanie** and **2** items of **Album**, the total discount is **$9** ( **$3** of **Beanie**, and **$6** of **Album**).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yaycommerce.com/yaypricing/features/cart-discounts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
