Features

Show Coupons in My Account

Published

Super Speedy Coupons adds an Available Coupons page to WooCommerce’s My Account. Each customer sees the coupons they can use right now, as coupon cards, and clicks one to apply it. This guide covers how to put a coupon on that page and who sees it.

The three ways to list a coupon

Edit the coupon, open the Usage restriction tab and scroll to the bottom. A coupon is listed when any one of these is set:

SettingWho sees the coupon
Show in “Available Coupons” (all users)Every logged-in customer
Show to every customer until they use itEvery logged-in customer who has not used it yet
Visible to specific usersOnly the customers you pick

A coupon with none of them set is not listed, and still works when a customer types its code at checkout.

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.

Show a coupon to chosen customers

Click in Visible to specific users and start typing. The search matches first name, last name, email address, username and display name, and needs at least two characters. Each result shows the customer’s name, email and username so you can tell two customers with the same name apart. Pick as many customers as you like, then click Update.

The Visible to specific users search showing two customers found by typing sam, each with name, email and username
Results show name, email and username, so two customers with similar names are easy to tell apart.

To search other customer fields too, such as a membership number or a Discord name, see Adding Fields to the User Search.

What the customer sees

The page is My Account > Available Coupons, between WooCommerce’s own menu items and Log out. Each card shows the code, the discount (a percentage or an amount in your currency), the coupon’s description, and its expiry date or “Never expires”.

My Account Available Coupons page showing three coupon cards: VIP15, GREECE20 and WELCOME10
What a customer sees: each card shows the code, the discount, the description and the expiry.

Clicking a card applies the coupon and opens the basket. WooCommerce checks the coupon in the usual way when it is applied, so a coupon the basket doesn’t qualify for (a minimum spend, say) shows WooCommerce’s normal message.

Coupons that are hidden

A listed coupon is left off a customer’s page when any of these is true:

  • it has expired;
  • its usage limit has been reached;
  • it is restricted to billing countries and the customer’s billing country is not one of them;
  • its Allowed emails restriction does not include the customer’s account or billing email;
  • it is set to Show to every customer until they use it and this customer has used it.

Drafts, pending and private coupons are never listed.

Did you know?

Hiding a coupon from the page does not change who can redeem it. A customer who knows a code can still type it at checkout, and WooCommerce’s own restrictions decide whether it applies.

Changing the card colours

The cards use three colours: the code strip and border, the text, and the background. A developer can change them with the ssc_card_colours filter, which receives the three colours as an array and the coupon:

add_filter( 'ssc_card_colours', function ( $colours, $coupon ) {
	return array( '#1d3557', '#f1faee', '#457b9d' );
}, 10, 2 );

The card sizes are fixed in pixels, so a theme that changes the root font size, as Hestia does, does not shrink the text on the cards.

Further reading

the welcome-code setting in detail
search customers by your own fields
when a coupon doesn’t appear

Written for Super Speedy Coupons 1.5.4.

Comments