Thuy Nguyen June 21st, 2023

How to Create WooCommerce Cart Discount

Are you wondering how to create a WooCommerce cart discount without breaking the bank? Great, you’ve reached the right place!

In this WooCommerce guide for beginners, we will explore what WooCommerce cart discounts are, how to set it up, and how it works on your WooCommerce checkout.

Before we move on, please note that WooCommerce provides 3 classes of discounts based on the stage of an order flow. These are product discounts, cart discounts, and checkout discounts/shipping discounts.

Unlike product discounts, which can happen on WooCommerce product page, cart discounts will be visible only when the cart requirements are met. The applied discount can be shown on mini-cart, cart drawer, and cart page. In cart stage, the price reduction can be set to affect the whole order amount or just specific category cart items.

Use cases of WooCommerce cart discount

Considering that WooCommerce cart discount happens on cart page, here are a few use cases for you:

  • Add 5 or more items to cart and get 20% off whole cart.
  • Get 10% off discount if cart total reaches $100.
  • Apply discount only if cart conditions meet certain user roles.
  • $10 off first order discount for new customers.
  • Fixed discount per individual cart item.
  • Cart discount based on shipping region or payment method, and so on.

You will be able to create all these types of WooCommerce cart discounts if you use a versatile plugin like YayPricing – WooCommerce Dynamic Pricing & Discounts.

Steps to creating WooCommerce cart discounts

In this tutorial, let’s explore how to set up Apply 20% off whole cart if the customer buys 5 or more items.

Install and activate YayPricing 

As a free WooCommerce dynamic pricing plugin, YayPricing can be downloaded from the WordPress repository.

You can also install and activate it directly from your WordPress Plugins screen. Once activated, you don’t need to enter a license key. Just start creating the promotion campaigns you have in mind.

Create a rule for the promotion

Go to YayPricing > Cart Discount and click Add Rule.

Configure the rule to offer a percentage discount  

The rule appears as a collapsible card. When expanded, it shows all built-in settings. Please open it and set it to Percentage Discount with value as 20%.

(Optional) Set up additional conditions 

Next to Discount tab, you will see Conditions tab. If you don’t add any condition, it means the rule will be always applied as long as it’s active. 

To add restrictions for the promotion, please go ahead and add a condition. In this condition, you can specify it as Cart quantity is greater than 4.

That’s how you can configure the rule to apply a 20% off cart total to the customer's cart based on the product count in their cart.

By following the above mentioned steps, you can quickly create a promotion with an automatic discount that will apply to the customer's cart automatically.

How to show discount in cart

On WooCommerce cart drawer or cart page, you can enable a message on cart subtotal message to help customers understand on which terms they are getting this discount.

This would be very helpful when you run multiple discounts at the same time, eg,. Black Friday store-wide sale, and a conditional WooCommerce cart discount.

By using this tooltip, you will add an icon next to the cart discount with a custom message.

Show upselling notice on WooCommerce store

And how to let your customers know how many they need to buy in order to enjoy the discount?

YayPricing – WooCommerce Dynamic Pricing & Discounts provides this option, too! Just go to the settings and enable Upselling notice. 

It will dynamically display a message at the bottom of product page or cart page. For example, if the cart contains only 4 items and it almost reaches your requirement, the notice will be displayed as Get 20% off cart total if you add 1 more item.

Pretty cool, isn’t it?

Please note that not every plugin will provide this dynamic function. By testing a variety of WooCommerce extensions, we have to say that YayPricing is by far one of the best solutions to encourage customers with these custom messages.

Best WooCommerce cart discount plugins

With all the features required for a successful promotional campaign, here are the best WooCommerce cart discount plugins that we have curated.

1. YayPricing – WooCommerce Dynamic Pricing & Discounts

YayPricing comes with the most generous set of WooCommerce cart discount features that are available for free.

With the premium version of YayPricing, you can create unlimited WooCommerce pricing rules that apply to specific products, categories, cart subtotal, and shipping discounts. It allows you to add sophisticated conditions, allowing you to offer discounts based on quantity, user role, purchase history, shipping regions, and much more.

2. Advanced Dynamic Pricing for WooCommerce

This plugin allows you to create automatic discounts based on cart contents, allowing you to offer discounts based on the number of items in the cart or the total value of the cart.

3. Dynamic Pricing With Discount Rules for WooCommerce

This Dynamic Pricing With Discount Rules for WooCommerce plugin allows you to create advanced discounts and fees based on a wide range of conditions, including product attributes, user roles, and cart contents.

4. First Order Discount Woocommerce

QuanticEdge plugin allows you to create a variety of coupons and discounts, including free products, free shipping, and percentage off cart value deals to apply to new customers.


That’s it. Now you may already become a master in WooCommerce cart discounts! 

In this article, we have discussed how to configure the rule to apply a discount to the customer's cart based on the products in their cart. 

With YayPricing, it’s easy to specify the amount of the discount as Fixed Cart Discount or Percentage Cart Discount.

Moreover, under the Conditions tab, you can specify additional conditions that need to be met before the automatic discount is applied. For example, you can set a required order amount, limit the discount to specific user roles, or exclude certain products from the promotion.

Featured Image by YayCommerce

Thuy Nguyen

Thuy Nguyen is a product marketing manager and professional blogger. When not creating content for e-commerce merchants, she can most often be found at some cafe in town, reading Graphic Guides, or enjoying a good laugh with The Big Bang Theory.

Leave a Reply

Your email address will not be published. Required fields are marked *