---
title: Coupon not valid errors with Pricepep
description: "What the coupon errors caused by Pricepep mean, such as \"not valid when cart item prices are changed\" or \"for sale items\", and how to allow the coupon."
url: "https://pricepep.com/docs/coupon-not-valid-errors/"
updated: "2026-12-02"
category: Troubleshooting
---

# Coupon not valid errors with Pricepep

Pricepep refuses or removes a coupon in three cases: you switched off coupons together with changed prices, you switched off coupons together with cart discounts, or the coupon excludes sale items and the cart has items discounted by Pricepep. Each error message tells you which.

## What does each message mean?

| Message | Cause | To allow the coupon |
| --- | --- | --- |
| Sorry, coupon "X" is not valid when cart item prices are changed. | **Allow coupons when prices are changed** is off, and a product pricing rule changes a price in the cart. | Turn the setting on (**Settings** tab, Product Pricing). |
| Sorry, coupon "X" is not valid when other discounts are applied to the cart. | **Allow coupons with cart discounts** is off, and a cart discount applies. Also shown when a coupon already in the cart is removed because a cart discount started to apply, or because a product pricing rule started to apply while **Allow coupons when prices are changed** is off. | Turn the setting on (**Settings** tab, Cart Discounts). When a product pricing rule removed the coupon, turn on **Allow coupons when prices are changed** (Product Pricing). |
| Sorry, coupon "X" is not valid for sale items. | A fixed cart coupon has **Exclude sale items** ticked, and the cart has items discounted by product pricing rules (since 2.6). | Untick **Exclude sale items** in the coupon. |

For percentage and fixed product coupons with **Exclude sale items**, items discounted by Pricepep are skipped by the coupon. If no item is left for the coupon, WooCommerce may refuse it with its own message.

## Which setup do I want?

| Goal | Setting |
| --- | --- |
| Coupons always work with Pricepep | Both **Allow coupons...** settings on (default) |
| Coupons or automatic discounts, not both | Turn the matching **Allow coupons...** setting off |
| Coupons only on full-price items | Tick **Exclude sale items** in the coupons |
| A special code beats automatic cart discounts | Mark the coupon **Individual use only** and turn **Apply with individual use coupons** off: cart discounts step aside while it's used |

More in [cart discounts and coupons](/docs/cart-discounts-and-coupons/) and [stop discounts from stacking](/docs/avoid-stacking-discounts/).

## My rule needs a coupon and the coupon is refused

A rule with the **Coupons applied** condition only works if the coupon stays valid. Keep the **Allow coupons...** settings on and don't tick **Exclude sale items** in that coupon. See [discount that needs a coupon code](/docs/coupon-code-activated-discount/).

## For developers

To keep coupons with **Exclude sale items** applying to Pricepep-discounted items as before 2.6, return false from the `rp_wcdpd_discounted_items_are_sale_items_for_coupons` filter. See the [filter reference](/docs/filter-reference/).

## Frequently asked questions

### How do I let customers use coupons together with Pricepep discounts?

Keep Allow coupons when prices are changed and Allow coupons with cart discounts switched on (the defaults) on the Settings tab.

### Why does a coupon with Exclude sale items no longer work since 2.6?

Since 2.6, products discounted by Pricepep product pricing rules count as sale items for such coupons, so the two discounts don't stack.

## Related articles

- [Using WooCommerce coupons with Pricepep discounts](https://pricepep.com/docs/cart-discounts-and-coupons/)
- [Discount activated by a coupon code](https://pricepep.com/docs/coupon-code-activated-discount/)
- [Stop discounts from stacking in WooCommerce](https://pricepep.com/docs/avoid-stacking-discounts/)
- [Pricepep discount not applied? A checklist](https://pricepep.com/docs/discounts-not-applied/)

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