---
title: Free gift with purchase (added to the cart automatically)
description: Give a free gift with a product in WooCommerce and add it to the cart automatically with Pricepep. Requirements, examples, and gifts for bigger carts.
url: "https://pricepep.com/docs/free-gift-with-purchase/"
updated: "2026-12-02"
category: Examples
---

# Free gift with purchase (added to the cart automatically)

To give a free gift with a product and put it in the cart automatically, create a **Buy x get y** rule with the gift as the only **Products - Get** item at **Percentage discount** 100, and turn on **Automatically add free product to cart** on the Settings tab. When a customer adds the product, the gift is added for free.

## How do I set up a free gift?

1. Go to **WooCommerce > Pricepep > Settings** and tick **Automatically add free product to cart** (section Product Pricing). Click **Save Changes**.
2. Go to the **Product Pricing** tab and click **Add Rule**.
3. Set **Method** to **Buy x get y** (or **Buy x get y - Repeating** for one gift per set).
4. Under **Quantities & Discount**: **Buy - At Full Price** `1`, **Get - Discounted** `1`, **Discount** **Percentage discount** `100`.
5. Under **Products - Buy**, choose what must be bought, for example **Product** in list "Espresso machine".
6. Under **Products - Get**, add exactly one row: **Product** (or **Product variation**) in list with one item, the gift, for example "Milk jug".
7. Add a **Description - Public** like "Free milk jug with every espresso machine". Click **Save Changes**.

## What does the customer see?

Espresso machine $400, milk jug $25:

| Customer action | Cart |
| --- | --- |
| Adds 1 espresso machine | Machine $400 + milk jug added at $0 |
| Adds 2 machines in one go (Repeating rule) | 2 machines + 2 milk jugs at $0 |
| Adds a milk jug first, then the machine | Jug becomes $0, no second jug is added |
| Removes the machine | The jug stays and costs $25 again |

## When is the gift added automatically?

All of these must be true:

- **Automatically add free product to cart** is on.
- The rule is **Buy x get y** or **Buy x get y - Repeating**.
- **Discount** is **Percentage discount** `100` or **Fixed price** `0`.
- **Products - Get** has one row, **Product** or **Product variation**, with exactly one item: a simple product or a variation with all attributes chosen. Categories or tags can't be added automatically.
- The gift isn't in the cart yet.
- One add-to-cart adds at least the **Buy - At Full Price** quantity.

Pricepep adds the gift once and doesn't change its quantity or remove it later. To cap the gifts of a repeating rule, for example at most 2 milk jugs per order however many machines, set **Maximum repetitions** `2` in the rule (since 2.6.0); the automatic add and the discount both stop there. If the gift isn't added, see [free product not added automatically](/docs/free-product-not-added-automatically/).

## How do I give a gift when the cart is over an amount?

Product pricing rules can't use the cart subtotal, and only those rules add gifts automatically. For "free tote bag on orders over $100", let customers add the gift and make it free with a cart discount:

1. Go to **WooCommerce > Pricepep > Cart Discounts** and click **Add Rule**.
2. **Title - Public**: "Free tote bag".
3. **Discount**: **Fixed discount per cart line**, the gift's price, for example `15`. That makes one unit free.
4. **Items**: **Product** in list "Tote bag".
5. **Conditions**: **Cart subtotal** **at least** `115`. The subtotal includes the gift itself, so add its price to your threshold.
6. Click **Save Changes**, and tell customers about the gift on the product page or in a banner.

More on this limit in [can product pricing rules use the cart subtotal](/docs/can-product-pricing-rules-use-the-cart-subtotal/).

## Frequently asked questions

### Is the free gift removed when the customer removes the product?

No. Pricepep doesn't remove or change the gift later. Without the bought product, the gift goes back to its normal price.

### Can I give two different gifts?

Use one rule per gift. If the same added product qualifies for several gift rules, only the first rule in the list adds its gift automatically; the customer can add the other gift, and it's free while its rule applies.

### Can the gift depend on the cart total?

Not with a product pricing rule. Use a cart discount for the gift item with a Cart subtotal condition; it isn't added automatically.

## Related articles

- [Buy x get y: discount another product in WooCommerce](https://pricepep.com/docs/buy-x-get-y/)
- [Free product isn't added to the cart automatically](https://pricepep.com/docs/free-product-not-added-automatically/)
- [Can product pricing rules use the cart subtotal?](https://pricepep.com/docs/can-product-pricing-rules-use-the-cart-subtotal/)
- [Buy X get Y configuration: worked example](https://pricepep.com/docs/buy-x-get-y-configuration/)

All articles in [Examples](https://pricepep.com/docs-category/examples/)
