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.
- 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. - Go to WooCommerce > Pricepep > Product Pricing and click Add Rule.
- Set Method to Bulk pricing and add the ranges: 5-9 Percentage discount
10, 10 and up (To - No limit) Percentage discount20. - Under Conditions, click Add Condition: Coupons applied, at least one of selected, VIP.
- Click Save Changes.
- 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 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.
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.