The Discount type setting helps you to choose how you want to calculate the coupon code. It gives you three options to choose from.
Percentage discount: This can be used when you want to give a certain percentage of the total cart value discount.
Fixed cart discount: This can be used when you want to give a fixed amount discount to the entire cart.
Fixed product discount: This is used when you want to give a fixed amount discount to only specific items. You can choose the products you would like to give a discount on the next step
In our case, we want to give 10% off to the total cart value.
So, the option that we should choose is the Percentage discount.
The second setting in the General tab allows you to set the discount amount.
In our case, we want to give 10% off. So, we type 10.
Please note that you don’t need to specify the percentage or currency with the discount value. WooCommerce will automatically decide it based on your discount type.
Allow free shipping
This setting allows you to choose if you want to give a Free shipping offer along with the discount. You can enable this option if you want.
However, enabling this option alone won’t add the free shipping offer to the coupon. You also need to enable Free shipping for the shipping zone and enable “Require a valid free shipping coupon” in the Shipping settings.
In our case, we don’t want to enable the free shipping option. So, we keep it unchecked.
Coupon expiry date
The fourth setting in the General tab enables you to set an expiry date for the coupon code.
Most flash sales are run for a small period and after that, we want to deactivate that coupon. The expiry date setting helps you to deactivate the coupon after a particular date so you don’t need to do it manually.
In our case, we want to run the flash sale for one week and after that, we want to disable the coupon code. So, we can set the expiry date.
Step 4: Fill coupon data: Usage Restriction
Once you complete the General settings, click on Usage restrictions to go to the Usage restrictions settings page.
The Usage restrictions settings are divided into two sections. In the first section, you can define the conditions for the coupon code whereas the second section enables you to exclude and include products from the discount.
In most cases, businesses offer discounts for purchases over a particular amount. Setting this minimum amount is useful to increase order value and keep a margin.
In our case, we want to give the discount only if the order is above $100.
The Maximum spend setting lets you choose a threshold above which the coupon won’t be applied. It helps you to limit the maximum discount amount.
In our case, we don’t want to set any maximum limit.
Individual use only
This setting helps you to prevent the customers from using the coupon code in conjunction with other coupons. In our case, we don’t want the customer to use multiple coupons on one order. So, we check this checkbox.
Exclude sale items
This helps you to control if the coupon can be applied to products that are already on sale. In most cases, small businesses may not want to apply the discount coupons for products on sale because it will significantly affect the profit margin.
So, we can exclude items on sale for this coupon.
Please note that the coupon will not be applied if the cart contains at least one item that is on sale because our coupon is applied to the entire cart.
If you have chosen the Fixed product discount as the Discount type in the General settings, a 10% discount will be applied to all items in cart except the items on sale.
The second section of the Usage restriction settings allows you to exclude or include the products the coupon will be applied to.
You can add products and product categories in the respective fields to include or exclude them from the offer.
The Allowed emails field helps you to create a whitelist of emails and the coupon code will be applied to only those who use an email from this list as their billing email.
Instead of exactly specifying the emails, you can use match email notation to select emails that include particular words. Here is how to use it.
You can offer a special discount for Vodafone employees, by entering @vodafone.com in the field. This will ensure that the coupon will be applied only if the customer uses an email address that contains @vodafone.com.
In our case, we don’t want to use any kind of product filtering for the coupon. We want to apply the coupon for all products that are not already on sale, so we leave these columns blank.
Step 5: Fill coupon data: Usage Limits
Once you have defined the usage restrictions for the coupon, click on the Usage limit tab to open the Usage limits settings page.
Here you can set the total number of times the coupon can be used in your store, the maximum number of items in cart the coupon will be applied to, and the maximum number of times a user can use this coupon.
In our case, we don’t want to put any usage limits. So, the coupon can be used an infinite number of times until we deactivate the coupon or reach the expiry date.
Moreover, the same customer can use the coupon multiple times if they want 10% off on their orders.
Step 6: Publish coupon
Click on the Publish button on the right sidebar to create and the coupon code.
You can see our new coupon in the list of coupons in the Coupons page.
Now that the coupon code is successfully created, let’s go to the store and check if the coupon actually works.
I have added a product in the cart and used the ANNIVERSARY10 coupon code on the cart page. As you can see, it gives 10% off which means our coupon works.
Discount coupons are an integral part of promotions in online stores. Fortunately, WooCommerce makes it very easy and straightforward to create and configure coupon codes in the online store. In this blog, we have covered everything you should know to create coupon codes in WooCommerce. If you have any doubt, feel free to comment below.