---
title: Can I discount customers who bought a product before?
description: "Yes. Pricepep's Purchased - Products condition checks a customer's paid orders: refill, upgrade or repeat-purchase prices for past buyers."
url: "https://pricepep.com/docs/can-i-discount-customers-who-bought-a-product-before/"
updated: "2026-12-02"
category: FAQ
---

# Can I discount customers who bought a product before?

Yes. Add the condition **Purchased - Products** to a rule and choose the product the customer must have bought. Example: customers who bought the "Espresso machine" get 20% off coffee beans: a $25.00 bag costs $20.00 for them and $25.00 for everyone else.

## How do I set it up?

1. Go to **WooCommerce > Pricepep > Product Pricing** and click **Add Rule**.
2. Set **Method** to **Simple adjustment**, and under **Adjustment** choose **Percentage discount** and type `20`.
3. Under **Products**, click **Add Product** and choose **Product category** **in list** Coffee beans.
4. Under **Conditions**, click **Add Condition** and choose **Purchased - Products**. Set the period to **all time**, the option to **at least one of selected**, and pick "Espresso machine".
5. Click **Save Changes**.

## Which purchases count?

- **Paid orders only:** WooCommerce's paid statuses, Processing and Completed by default.
- **The period you choose:** all time; the current or last day, week, month or year; 1 to 6 days; 1 to 4 weeks; 1 to 12 months; 2 to 10 years.
- **Variations:** choosing a variable product matches any of its variations bought. Use **Purchased - Variations** for one variation.
- **Logged-in customers:** their orders, plus guest orders placed with their billing email.
- **Guests:** recognised by the billing email they type at checkout, in the classic checkout and the Checkout block, so they see the price only from then on.

## Variations

| Offer | Condition |
| --- | --- |
| Upgrade price for owners of version 1 | **Fixed price** on "Version 2" with **Purchased - Products** "Version 1" |
| Thank-you after 10 bags | **Quantity purchased - Categories** "Coffee beans" **at least** 10 (all paid orders) |
| Big spenders on a category | **Value purchased - Categories** "Coffee" **at least** 200 |
| First purchase of a product | **Purchased - Products** **none of selected** with that product |
| Bought recently | **Purchased - Products** with the period **1 month** (since this date last month) or **last month** (only the previous calendar month) |

Other order history conditions (order count, amount spent, last order) are in the [loyalty discount example](/docs/loyalty-discount-by-order-history/); the full reference is [purchase history conditions](/docs/purchase-history-conditions/).

## Frequently asked questions

### Do cancelled or failed orders count?

No. Only paid orders count: WooCommerce's paid statuses, Processing and Completed by default.

### Can I count only purchases from the last 12 months?

Yes. Set the period of Purchased - Products to 12 months instead of all time.

### Does it work for guests?

Yes, once they type their billing email at checkout: their earlier guest orders with that email count. Before that a guest has no purchase history.

## Related articles

- [Loyalty discount based on order history](https://pricepep.com/docs/loyalty-discount-by-order-history/)
- [Purchase history conditions: discounts for past buyers](https://pricepep.com/docs/purchase-history-conditions/)
- [Can I discount customers who haven't ordered in a while?](https://pricepep.com/docs/can-i-discount-customers-who-havent-ordered-in-a-while/)

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