# Category discount

When it comes to category discounts, we may have these scenarios:

* If a customer adds $100 worth of **Accessories** category, their **whole cart** gets 5% off.
* If a customer adds $100 worth of **Accessories** category, their **subtotal cart value** of those products gets 5% off.
* If a customer adds $100 worth of **Accessories** category, they get a **free item** or another discounted product.

### Min spend on categories gets free item

Here's how to set up this promotion: **Spend $100, get 1 gift,** i.e. "If the customer spends a certain amount on specific categories, they automatically get a free item".

#### Step 1: Specify categories and gift item

Let's get started to offer a free t-shirt if an order contains products from the categories A, B, C, or D.

* Buy products: customers should buy products from these categories A, B, C, D.
* Get products: customers get a giveaway as a t-shirt.

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FIKDI33DI6h84hKoj06FZ%2Fmin%20spend%20on%20specific%20categories.png?alt=media&#x26;token=1926c2cf-671b-47b7-a721-6733721faddd" alt="Category products and giveaway product"><figcaption></figcaption></figure>

#### Step 2: Set the required minimum spend&#x20;

Go to **Conditions** tab and add your requirement. E.g. the monetary amount of those cart items from the categories A, B, C, or D is greater than or equal to $100.

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FxOfKnk4N4TXLr3v1khOs%2Fconditions%20of%20cart%20items.png?alt=media&#x26;token=779faf91-a7a3-4c1d-ba4a-ee1623e1dc36" alt="Minimum spend on these categories gets free item"><figcaption></figcaption></figure>

#### Step 3: Set up other additional settings and save changes.

On cart page, when the cart subtotal of those items from A, B, C, or D categories reaches $100, the t-shirt will be automatically added for free.

<figure><img src="https://2582339638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FagGARFBou99u1ioIn7vL%2Fuploads%2FyE5TCR4zeSyXtJmggcEn%2Fcategory%20discount%20with%20free%20item.png?alt=media&#x26;token=0d1eb2c2-22c9-4d4f-b362-9301fa721702" alt="WooCommerce dynamic discount on cart page"><figcaption></figcaption></figure>
