Coupon Management

Coupon Management

 

To use coupons with WooCommerce.

 

  1. Go to: WooCommerce > Settings > General > Enable coupons
  2. Check the box to enable the use of coupon codes.
  3. Save the changes.

 

 

Add a coupon

To add a coupon:

  • Go to: WooCommerce > Coupons.
  • A new WooCommerce installation, where no coupons have been created, will show you an initial screen that allows you to create your first coupon or get more information.

 

 

  • Existing stores begin on the Coupons screen.

 

  • Create a new coupon by selecting Add coupon. Or hover over an existing one to edit it.
  • Enter or generate a coupon code. The code is what the customer will use to apply the coupon and the associated discount. It must be unique, as it is used as an identifier.

  • Your code: Enter any alphanumeric code you wish.
  • Any code: Select the Generate a coupon code button if you want WooCommerce to automatically create a random coupon code using an algorithm.

 

  • Enter Description (optional): information about the coupon, for internal use. For example: promotion or event name, valid dates, compensation, ticket number, customer name. This will not be visible to customers in the store.

 

In Coupon Details, there are three sections you can use to add restrictions and limits for the coupon: General, Usage Restriction, and Usage Limits.

 

General

 

  • Discount type:
  • Percentage discount: A percentage discount only for selected products. For example, if the cart contains three (3) t-shirts at $20 each = $60, a 10% discount coupon applies a discount of $6.
  • Fixed cart discount: A fixed total discount for the entire cart. For example, if the cart contains three (3) t-shirts at $20 each = $60, a $10 discount coupon offers a $10 discount.
  • Fixed product discount: A fixed total discount applied only to selected products. The customer receives a set discount amount per item. For example, three (3) T-shirts at $20 each with a $10 discount coupon apply a discount of $30 ($10 per item).
  • Coupon amount: fixed value or percentage, depending on the discount type you choose. Enter without a currency unit or percentage sign, which will be added automatically; for example, enter “10” for £10 or 10%.
  • Enable free shipping: Eliminates shipping costs when the coupon is used. Requires free shipping to be enabled.
  • Coupon expiration date: The date the coupon expires and can no longer be used. Expiration occurs at 12:00 AM or 00:00 on the chosen date. If you want a coupon to be valid until Christmas Day but not valid after Christmas ends, set the expiration date to YYYY-12-26, as it will expire at YYYY-12-26 00:00. Your site's time zone setting, found in Settings > General > Time Zone, is used.

Use restriction

  • Minimum spend: Allows you to set the minimum subtotal required to use the coupon. Note: The sum of the cart subtotal + taxes is used to determine the minimum amount.
  • Maximum spend: allows you to set the maximum subtotal allowed to use the coupon.
  • Individual use: tick the box if you do not want this coupon to be used in combination with other coupons.
  • Exclude sale items: Check the box if you do not want this coupon to apply to sale items. Coupons applied to the cart total will not work if a sale item is added later.
  • Products: products to which the coupon will be applied or that must be in the cart for the fixed or percentage discount to be applied.
  • Excluded products: products to which the coupon will not apply or that cannot be in the cart for the "fixed discount in the cart" to be applied.
  • Product categories: categories of products to which the coupon will be applied or that must be in the cart for the fixed or percentage discount to be applied.
  • Exclude categories: Product categories to which the coupon will not apply, or which cannot be in the cart for the "fixed cart discount" to apply.
  • Allowed emails: The email address(es) that can use a coupon. Verified against the customer's billing email. WooCommerce 3.4+ also allows you to include a wildcard character (*) to match multiple email addresses; for example, *@gmail.com would make the coupon work with any Gmail address.

Leaving “Products” and “Exclude Products” blank allows the coupon to be applied to the entire store.

Limits of use

  • Coupon usage limit: how many times the coupon can be used in total, by any customer, before it becomes invalid.
  • Limit usage to X items: How many items the coupon can be applied to before it becomes invalid. This field is only displayed if there are one or more products the coupon can be used on and it is set to Usage Restriction.
  • Usage limit per user: how many times a coupon can be used by a customer before it becomes invalid for that customer.

 

Once you have configured all the settings, select Publish and your coupon will be ready to use.

 

Send a coupon

Once the coupons are published, you can make them available to customers: copy the title and send it. It can be distributed via email, social media, or banners.

 

Apply a coupon

From WooCommerce 3.2 onwards, you can add or remove coupons from orders on the Edit Order screen. Orders must be pending payment, and you must know the coupon code you wish to apply.

 

FAQs

How do coupons affect tax calculations?

Coupons are applied to the product price before taxes are calculated. To ensure taxes are calculated correctly due to rounding, we must divide the discount among all items in the cart, rather than removing a quantity or product from the total.

When a discount is split in the cart, naturally, fractional values ​​can occur which in turn can cause rounding problems once everything is added up.

To help prevent this, we only use cent values. Once the discount has been distributed among the items, any remaining balance is applied to each line item, one by one, until the balance is exhausted. The final total will match the total discount applied. This is especially important for fixed discounts in the shopping cart.

Can I customize the Generate a coupon code function?

Note: According to our support policy, we cannot provide assistance with customizations. If you are unfamiliar with code, templates, and troubleshooting, you can contact a WooExpert for help.

Yes, if you're a developer, you can customize the coupon code generation function, which is handled by JavaScript, by specifying the code length and adding a prefix and/or suffix. The development team intentionally excluded characters that could be ambiguous or difficult to read.