Menu

How to design better coupon error messages at checkout
📰

How to design better coupon error messages at checkout

DEV Community: frontend·Marius B·about 7 hours ago
#8vbXwuAD
#devtofrontend#devto#dev#code#shopper
Long article (407 words) — no AI summary yet.
Reading 0:00
15s threshold

A shopper enters SAVE15 and clicks Apply. The checkout says “Invalid coupon.” They try again, then remove an item, then wonder whether the code expired. A single error message has left them guessing about three different problems.

Coupon feedback is a small part of checkout, but it’s a good place to practice a useful rule for form design. When the system knows what happened, tell the shopper what they can do next.

Give different outcomes different messages

Here’s an example for a fictional store. Each message appears beside the coupon field.

Outcome What the shopper sees

The code has expired “This code has expired. Try another code.”

The eligible subtotal is 80 lei and the minimum is 100 lei “Add 20 lei in eligible items to use this code.”

The store can’t check the code right now “We couldn’t check your code. Try again in a moment.”

The discount is applied “SAVE15 applied. You saved 15 lei.”

Show the amount still needed only when checkout knows which items count toward the minimum.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.