Discounts and coupons on WooCommerce: setting the right rules

Discounts and promo codes on WooCommerce: creating the right rules

WooCommerce handles two kinds of discount without a plugin: a sale price on a product and coupons entered in the cart. For automatic promotions (3 for 2, buy one get one free, discounts by quantity, customer role or cart total), you need a pricing rules plugin. Here are both, and the rules to follow in France when you show a strikethrough price.

In short

  • Built in: a sale price per product, with dates, and configurable coupons.
  • With a plugin: automatic discounts, with no code to enter, based on the cart or the customer.
  • A strikethrough price must be the lowest price charged in the 30 days before the discount.
  • The fewer steps customers need to take to benefit from an offer, the better it works.
Three ways to give a discount on WooCommerce: the sale price on the product page, the promo code entered in the basket and the automatic rule applied with no action from the customer

What WooCommerce does without a plugin

The sale price

In the General tab of each product, a “Sale price” field sits next to the regular price. The regular price shows struck through, and the sale price becomes the price paid. The “Schedule” link sets a start and end date.

Coupons

In Marketing, then Coupons, you create as many coupons as you like. For each one, you decide:

  • the code to enter;
  • the discount type: percentage, fixed cart discount or fixed product discount;
  • whether shipping is free or not;
  • the expiry date;
  • the restrictions: minimum or maximum spend, products and categories included or excluded, allowed e-mail addresses;
  • the limits: number of uses in total and per customer.
Promo code creation screen in WooCommerce with the code NOEL15, the discount type, its value, free delivery and the expiry date
Creating a coupon: discount type, amount, free shipping, expiry date.

Coupons are perfect for an e-mail campaign, a goodwill gesture or a partial refund. Their limit: customers have to know the code and remember to enter it. For a promotion everyone should see, that is one step too many.

Automatic promotions with a plugin

A pricing rules plugin applies the discount by itself as soon as the conditions are met. We use YITH WooCommerce Dynamic Pricing and Discounts, which offers ready-made templates. There is also a serious free alternative on WordPress.org: Discount Rules for WooCommerce.

Choosing a rule template in YITH Dynamic Pricing: 3 for 2, buy one get one free, 2 for 1, 50% off the second, Black Friday, discount by quantity, by role, free gift, basket discount, free delivery and last chance
The rule templates offered by the YITH plugin.

3 for 2, 2 for 1 and 50% off the second item

These three promotions rest on the same rule: “if the customer buys X items, they get Y items at Z% off”.

  • 3 for 2: 3 items bought, 100% off one of them;
  • 2 for 1: 2 items bought, the second one free;
  • 50% off the second: the same rule, with 50% instead of 100%.

You choose the products or categories concerned, and the discount applies automatically in the cart.

Buy one, get one free (BOGO)

For each product bought, the customer gets a second one free. You will often see it shortened to BOGO, for “Buy One Get One”. All you do is choose the products concerned.

Event promotions

Black Friday, sales, clearance: rather than a code to enter, which many customers forget, apply the discount straight to the catalog. Choose the products or categories and the percentage, then schedule the rule with a start and end date and time.

Quantity discounts

Essential for wholesale or trade sales: the discount grows with the quantity of the same product in the cart. For example:

  • 10% from 1 to 10 items;
  • 15% from 11 to 20 items;
  • 20% from 21 to 30 items.

Discounts by customer role

A discount reserved for a user role: VIP customers, club members, trade accounts. Handy to encourage sign-ups, or for a subscription that gives access to reduced prices. To go further, read our guide to creating trade accounts on WooCommerce.

The free product

Two variants:

  • buy X, get Y free: buying a specific product unlocks another one, for example an item that cannot be bought on its own or a product you want to clear;
  • gift based on the order: a free product above a certain amount, such as a calendar at the end of the year.

Discounts on the cart total

A percentage or a fixed amount off the cart, like a coupon, but applied automatically. The rule can depend on the cart total (for example between €100 and €150), the customer, their number of orders, the total they have already spent, the products in the cart or the payment method chosen.

Free shipping

Offering free shipping above a threshold is one of the most effective levers on average order value: set the threshold a little above your current average. WooCommerce already does it natively, with the “Free shipping” method and a minimum amount. The YITH plugin lets you combine this condition with other rules.

The last chance offer

An offer shown at the moment of payment, on a chosen product, to make the most of the sense of urgency. Use it honestly: fake urgency shows, and damages trust.

Strikethrough prices: what French law says

Showing an inflated regular price to suggest a discount is prohibited. Since 28 May 2022, Article L112-1-1 of the French Consumer Code (Code de la consommation) requires every announced price reduction to state the previous price, which is the lowest price charged in the 30 days before the reduction. Successive reductions are calculated from the price before the first reduction, and perishable goods with a short shelf life are an exception.

In practice, before you enter a struck-through regular price in WooCommerce, check that it really is your lowest price of the last 30 days, and keep proof of it. The fact sheet from the DGCCRF (the French consumer protection authority) covers the special cases.

Good practice

  • Work out your margin: a discount is a powerful tool, not a reflex.
  • Make the most of key dates: Black Friday, sales, holidays. Spread the word on the site, by e-mail and on social media: a discount only works if customers see it.
  • Look at where carts are abandoned: if it happens at the shipping costs, free shipping above a threshold can unblock things.
  • Automate: keep coupons for e-mails and targeted campaigns, and apply public promotions automatically.
  • Keep your promises: a discount announced for three days must last three days.

Want pricing rules tailored to your shop, or discount logic that plugins cannot handle? We build custom rules, or let’s talk about your shop.

Contents
Read next

More articles that may help you

Illustration au trait : un casque audio, une onde sonore, un stockage de fichiers et le symbole d’un flux RSS

Self-hosted podcast: moving a podcast to WordPress and Cloudflare R2

Read the article →
Illustration au trait : une patinoire vue de dessus, des sapins et un écran d’état avec deux pastilles

Ice rink and skating trail: a municipality’s custom WordPress plugin

Read the article →
WooCommerce e-invoicing: how to make your shop compliant

WooCommerce e-invoicing: how to bring your shop into compliance

Read the article →

A project, a question?

Free quote · Refundable deposit · Balance only if satisfied · No commitment