The method Exclude products from all rules removes matching products from every product pricing rule. Use it for products that must never be discounted, such as gift cards. Cart discounts and checkout fees are not affected. To leave a category out of one rule only, see discount everything except one category.
How do I exclude products?
- Go to WooCommerce > Pricepep > Product Pricing and click Add Rule.
- Set Method to Exclude products from all rules.
- Under Products, choose the products to exclude, for example Product category in list "Gift cards".
- Optional: add Conditions to exclude them only sometimes, for example only for a user role.
- Click Save Changes.
The rule works wherever it is in the list. It has no select field in its header, so it can't be set to Disabled; delete it to stop excluding (export your settings first if you might want it back). Setting the tab's Rule selection method to All rules disabled turns exclude rules off too, together with every other product pricing rule.
What exactly is excluded?
- Matching cart items get no product pricing adjustments.
- They don't count towards quantities of other rules (bulk ranges, buy/get, groups).
- With Change display prices in shop on, their shop prices aren't changed either, and the Volume Pricing Table doesn't show for them.
How do I leave wholesale customers out of all discounts?
- Add a rule with Method Exclude products from all rules, leave Products empty (all products), and under Conditions add User role in list Wholesale customer. No product pricing rule then changes prices for customers with that role.
- Exclude rules don't reach cart discounts and checkout fees: add User role not in list Wholesale customer to each of those rules. A developer can instead switch them all off for the role with the
rp_wcdpd_process_cart_discountsandrp_wcdpd_process_checkout_feesfilters (see the filter reference).
The exclude rule also stops a Pricepep rule that sets the wholesale prices themselves. If your wholesale prices come from Pricepep, add User role not in list Wholesale customer to the other product pricing rules instead; see wholesale prices by user role.
How do I keep sale items out of discounts?
If "excluded" means "already on sale", you don't need a rule: set Base price for products on sale to Exclude products already on sale on the Settings tab. To exclude sale items from one rule only, add Product is on sale with no to that rule's Products.
How do I exclude products from a cart discount?
Choose a "per cart item" method in the cart discount and select the discounted items under Items. See discount only some categories. To stop customers buying products instead of excluding them from discounts, see restrict purchase.
Frequently asked questions
Does an exclude rule also exclude products from cart discounts?
No. It only affects product pricing rules. In a cart discount, choose the discounted items with a per cart item method and Items.
Do excluded products still count towards quantity discounts?
No. Excluded items are removed before other rules count quantities.
How do I leave wholesale customers out of all discounts?
Add an Exclude products from all rules rule with no Products and the condition User role in list Wholesale customer. For cart discounts and checkout fees, add User role not in list Wholesale customer to each rule.