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?
- Go to WooCommerce > Pricepep > Product Pricing and click Add Rule.
- Set Method to Simple adjustment, and under Adjustment choose Percentage discount and type
20. - Under Products, click Add Product and choose Product category in list Coffee beans.
- 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".
- 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; the full reference is 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.