Features

Show a Coupon to Every Customer Until They Use It

Published

Show to every customer until they use it lists a coupon in every logged-in customer’s My Account > Available Coupons until that customer has redeemed it. After their first order with it, it disappears from their page and stays on everyone else’s. It suits a welcome code, a win-back code or a one-off thank-you discount.

Set it up

  1. Edit the coupon (or create one) under Marketing > Coupons.
  2. On the Usage limits tab, set Usage limit per user to 1.
  3. On the Usage restriction tab, tick Show to every customer until they use it.
  4. Click Update or Publish.
The five Super Speedy Coupons fields at the bottom of a coupon's Usage restriction tab, with Show to every customer until they use it ticked
The plugin’s fields sit at the bottom of the Usage restriction tab.
Common mistake

The setting decides who sees the coupon, not who can use it. Without Usage limit per user set to 1, a customer who remembers the code can type it in again after it has gone from their page.

How “used” is decided

WooCommerce records who used a coupon when an order with it is placed. The plugin reads that same record and hides the coupon from a customer whose user ID or account email is on it. A guest order placed with the customer’s email address therefore counts too.

A coupon taken off an order before checkout has not been used, so it stays on the customer’s page.

How it combines with the other settings

  • With Show in “Available Coupons” (all users) also ticked, the “until they use it” rule wins: the coupon is hidden once a customer has used it.
  • Restrict to billing countries, Allowed emails, the expiry date and the overall usage limit still apply. A customer outside the allowed countries never sees it.
  • Auto-apply this coupon can be ticked as well. The coupon is then added to the basket automatically for every customer it is valid for, and shown on the page until used.

Using it from code

A developer who would rather choose these coupons in code can return codes from the ssc_special_codes filter. Each code returned is shown to every customer until they use it, as if the box were ticked:

add_filter( 'ssc_special_codes', function ( $codes ) {
	$codes[] = 'WELCOME10';
	return $codes;
} );

Further reading

every way to list a coupon, and what hides one
the other coupon settings

Written for Super Speedy Coupons 1.5.4.

Comments