In this article, we would share instructions on how to create a coupon code using WooCommerce (free eCommerce plugin) in WordPress without any programming knowledge.

Coupons are a great way to offer rewards and discounts to your customers and increase user engagement on your website. If you are ready to offer discounts and coupons to your customers lets create a coupon.

Before adding coupons, do add a few products to your store.

How to add coupon codes in Woocommerce?

Please follow these steps:

  • First enable coupons in WooCommerce>settings.
  • Navigate to coupons under WooCommerce.
  • Click Add Coupon button to enter a new coupon.
  • Enter coupon code and Description:
Please see below images that show the same steps being done:

Coupon Codes are unique!

A Coupon code is used by a customer to apply the coupon. Coupon code is used as a identifier so it should be unique. For example we are using a coupon code: FLAT20 , this is a unique coupon code and is different from another coupon code say DISCOUNT30

Description (optional) — You can specify the information about a coupon such as:

  • Promotion
  • Dates in effect
  • Compensation

What are the different options for Coupon codes in WooCommerce?

The Coupon data has three options on the left-hand side:

  1. General
  2. Usage restriction
  3. Usage limits

1. General Tab

Let’s start with the first tab, General.

The General tab lets you specify what type of discount you’re offering to customers.

Fields under general tab:

  • Discount type
  • Coupon amount
  • Allow free shipping
  • Coupon expiry date

WooCommerce supports three Discount types:

    • Percentage Discount– a percentage discount on all product/s.
    • Fixed Cart Discount– a fixed discount on your whole cart.
    • Fixed Product Discount– a fixed discount on a specific product/s.


Now specify the coupon amount that you would want the customer to avail.

I have given 20 as Coupon amount and Discount type as Percentage discount which means customers would get 20% off on all the products in the cart.

Further down, you can offer free shipping to the customers, simply by checking the Allow free shipping checkbox.

At the bottom, you can set coupon expiry date after which coupon would not be valid. When you leave this option blank coupon would last forever.

The expiry date is selected from a drop-down calendar.

2. Usage Restrictions

After General settings tab has been configured, let’s move onto Usage Restrictions.

Under Usage restriction you have the following options :

  • Minimum spend
  • Maximum spend
  • Individual use only
  • Exclude sale items
  • Products
  • Exclude products
  • Product categories
  • Exclude categories
  • Email restrictions

Lets discuss about minimum spend.

This specifies the minimum cart total to access the coupon.

For example when you set it to be $200, that means the customers can only avail the offer when the cart total is $200, otherwise the coupon would not be valid.

The same scenario is with the maximum spend, you can set the maximum value of cart to avail the coupon code. After it reaches that maximum value, the coupon would not be valid.

Individual use only means that this coupon can not be used in parallel with any other coupon. You can use this when you don’t want your customers to apply two different type of coupons to the same cart.

Click on checkbox Exclude sale items if you don’t want to apply the coupon code to sale items.

Next in Products you can enter the Products that the coupon would be applied to, and in Exclude products – enter the products on which the coupon would not be applied.
WooCommerce helps you find your products easily: You can either input the first three letters of your product name, or the product ID. So you can add Product Categories on which coupon would be valid and also Exclude categories on which coupon is not applied.
Email restrictions – Email address or addresses that can use a coupon. Verified against customer’s billing email when an order is placed.

3. Usage Limits

The final tab is called Usage Limits.

This tab lets you restrict how many times your coupon can be used – either per customer, or total uses.

3 fields under Usage limits:

  • Usage limit per coupon
  • Limit usage to X items
  • Usage limit per user

Lets discuss first field i.e. Usage limit per coupon

In the first field, you need to mention – how many times a coupon code can be used?

For example when you set Usage limit per coupon to be 2 then a customer can only use the coupon twice. When the customer would try to use the same coupon for a third time, the coupon code would not work.

Second field i.e. Limit usage to X items lets you enter the number of products on which coupon would be valid. For example When you set Limit usage to X items be 5 , so when customer add more than 5 products in cart coupon becomes invalid.

To apply coupon on all products leave this field blank.

Last field in Usage limits is Usage limit per user that allows you to set how many times a user can use a coupon.

This is generally used when a new user signs up and gets a discount coupon code as an incentive to sign up. So the user can use the coupon only once.

Now once your coupon is ready, click Publish to publish your first coupon.

Please see step by step screenshot instructions below on how to do it:

How to verify if a new coupon code that you created is working or not?

Please follow these steps:

  • First, click Visit site on the top left corner of the screen to go to your site.
  • Add a product by clicking button Add to cart below any product.
  • Now Click View cart to see item selected by you.
  • Add more products to the cart by clicking button add to cart.
  • You can see the list of selected products in cart.
  • Total cost of products selected by you is $161.
  • Apply the coupon code to get discount on products:
  • Use coupon code: FLAT20
  • Now after applying the coupon code the amount is reduced to $128.80 i.e. $32.20 less than the original price.


You can also display the coupon code on the homepage of your store so that customers can avail the discount during purchase. You can also inform your customers about special offer through email and social media.

So that’s how you can add a coupon code in WooCommerce without any knowledge of coding.


Would you please post your opinion or queries or feedback below.

Leave a Reply

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

Post comment