---
title: Discount activated by a coupon code
description: Turn on a Pricepep bulk price, BOGO deal or cart discount only when the customer enters a WooCommerce coupon code, using the Coupons applied condition.
url: "https://pricepep.com/docs/coupon-code-activated-discount/"
updated: "2026-12-02"
category: Examples
---

# Discount activated by a coupon code

To give a Pricepep discount only to customers with a code, create a WooCommerce coupon (it can be worth 0) and add the condition **Coupons applied**, **at least one of selected**, that coupon, to your pricing rule or cart discount. The rule applies while the coupon is in the cart.

## How do I set it up?

Example: the code VIP gives bulk prices: 10% off from 5 units, 20% off from 10.

1. In **Marketing > Coupons** (WooCommerce), add a coupon with the code `VIP`. Leave **Coupon amount** at 0. Set an expiry date or usage limits if you want them.
2. Go to **WooCommerce > Pricepep > Product Pricing** and click **Add Rule**.
3. Set **Method** to **Bulk pricing** and add the ranges: 5-9 **Percentage discount** `10`, 10 and up (**To - No limit**) **Percentage discount** `20`.
4. Under **Conditions**, click **Add Condition**: **Coupons applied**, **at least one of selected**, VIP.
5. Click **Save Changes**.
6. On **WooCommerce > Pricepep > Settings**, check that **Allow coupons when prices are changed** is on (default).

## What happens in the cart?

Product price $10:

| Cart | Without the code | With VIP |
| --- | --- | --- |
| 4 units | $40.00 | $40.00 |
| 6 units | $60.00 | $54.00 |
| 12 units | $120.00 | $96.00 |

The coupon line shows in the totals like any coupon; removing it removes the discount.

## Which settings must stay on?

All three are on by default; [cart discounts and coupons](/docs/cart-discounts-and-coupons/) explains them.

| Rule type | Setting (Settings tab) |
| --- | --- |
| Product pricing rule | **Allow coupons when prices are changed** |
| Cart discount | **Allow coupons with cart discounts** |
| Coupon marked **Individual use only** with a cart discount | **Apply with individual use coupons** |

If one of the first two is off, Pricepep refuses the coupon, the condition no longer matches, and the customer sees an error such as "Sorry, coupon "VIP" is not valid when cart item prices are changed." If the third is off, cart discounts step aside while an individual use coupon is in the cart. See [coupon not valid errors](/docs/coupon-not-valid-errors/).

## Coupon options to know

- **Usage limits and expiry:** WooCommerce enforces them, so the Pricepep rule inherits them. This is how you limit how often a Pricepep discount can be used.
- **Exclude sale items:** since 2.6, products discounted by Pricepep count as sale items for such coupons. A $0 switch coupon with this option ticked can be refused when the cart has discounted items, so leave it unticked here.
- **Several codes:** select several coupons in the condition, or use **at least one of any** for "any coupon".

## Frequently asked questions

### Does the coupon itself need a discount amount?

No. A coupon with amount 0 works as a switch. It keeps WooCommerce's coupon settings such as expiry and usage limits.

### Why does my coupon say it's not valid?

Allow coupons when prices are changed and Allow coupons with cart discounts must stay on for this setup, otherwise Pricepep refuses the coupon.

## Related articles

- [Using WooCommerce coupons with Pricepep discounts](https://pricepep.com/docs/cart-discounts-and-coupons/)
- [Coupon not valid errors with Pricepep](https://pricepep.com/docs/coupon-not-valid-errors/)
- [Can I limit how many times a discount is used?](https://pricepep.com/docs/can-i-limit-how-many-times-a-discount-is-used/)
- [Conditions in Pricepep: how they work and combine](https://pricepep.com/docs/conditions-overview/)

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