By default, WooCommerce coupons work together with Pricepep's pricing rules and cart discounts. Three settings on WooCommerce > Pricepep > Settings change that, a coupon's Exclude sale items option keeps it off products Pricepep discounted, and the Coupons applied condition lets a coupon switch Pricepep rules on. The short answer is in can customers use coupons with Pricepep discounts?.
Which settings control coupons?
| Setting (Settings tab) | Section | Default | When it is off |
|---|---|---|---|
| Allow coupons when prices are changed | Product Pricing | On | Regular coupons are refused, and removed, while a product pricing rule changes a cart item price. |
| Allow coupons with cart discounts | Cart Discounts | On | Regular coupons are refused, and removed, while a cart discount applies. |
| Apply with individual use coupons | Cart Discounts | On | Cart discounts are not applied while a coupon marked Individual use only is in the cart. |
"Regular coupons" are the coupons you create in WooCommerce. Pricepep's own cart discounts don't count as coupons for these settings.
What do the coupon error messages mean?
| Message | Cause |
|---|---|
| Sorry, coupon "CODE" is not valid when cart item prices are changed. | Allow coupons when prices are changed is off and a pricing rule applies. |
| Sorry, coupon "CODE" is not valid when other discounts are applied to the cart. | Allow coupons with cart discounts is off and a cart discount applies, or a coupon already in the cart was removed because a pricing rule started to apply while Allow coupons when prices are changed is off. |
| Sorry, coupon "CODE" is not valid for sale items. | WooCommerce's message for a cart coupon with Exclude sale items while a cart item has a lower price from a pricing rule. |
How do I keep coupons off products Pricepep already discounted?
Tick Exclude sale items in the coupon (Marketing > Coupons, Usage restriction). Since Pricepep 2.6, products whose price a product pricing rule lowered count as sale items for such coupons:
- Product coupons (percentage or fixed per product) skip those items and discount the rest.
- Cart coupons (fixed cart) are refused while such an item is in the cart, as WooCommerce does with sale items.
Developers can turn this off with the rp_wcdpd_discounted_items_are_sale_items_for_coupons filter (see the filter reference).
How do I make a discount that needs a coupon code?
Add the condition Coupons applied (group Cart) to a pricing rule or cart discount, choose at least one of selected and pick the coupon. The coupon can be a $0 coupon whose only job is to switch the rule on, and it keeps WooCommerce's usage limits. Product pricing rules also have Coupons applied under Products. Example: coupon code activated discount.
Should customers get a coupon and a cart discount together?
Your call. Examples:
- "No coupons on top of automatic discounts": turn off Allow coupons with cart discounts.
- "Influencer codes beat everything": set the coupon to Individual use only and turn off Apply with individual use coupons, so cart discounts step aside while the code is used.
- "Coupons only for full-price products": tick Exclude sale items in the coupons.
Frequently asked questions
Can customers use a coupon together with Pricepep discounts?
Yes, by default. Two settings can block regular coupons: Allow coupons when prices are changed and Allow coupons with cart discounts.
How do I stop a coupon from discounting products that already have a Pricepep discount?
Tick Exclude sale items in the coupon. Since Pricepep 2.6, products discounted by product pricing rules count as sale items for such coupons.