Setting up the Discount Code Rejection extension | PrettyDamnQuick's Help Center

Setting up the Discount Code Rejection extension

Offer shoppers an alternative discount when their coupon code is rejected at checkout

March 30, 2026


The Discount Code Rejection extension automatically offers shoppers a replacement discount when they enter an invalid coupon code at checkout. Instead of losing the sale, you catch the rejection and present an alternative offer — all in real time.

How to set it up

Go to Checkout Components in the left-side menu, then click Add Component and select Discount Code Rejection.

Step 1: Set up your coupon matching rules

Each configuration maps a rejected code (or pattern of codes) to a replacement offer. You can create multiple configurations to handle different scenarios.

Coupon Rules: Define which rejected codes should trigger this replacement. Options include exact match, prefix match, and regex patterns. For example, you can catch any code starting with "SUMMER" or match a specific code like "EXPIRED10".

Step 2: Choose your replacement discount

Pick how the replacement discount works:

If you choose Create Discount, you can also configure combination rules — whether the generated coupon can combine with order discounts, product discounts, or shipping discounts.

Step 3: Customize the widget

Choose how the replacement offer appears to shoppers:

Widget Type

Appearance — Set the background color (info, success, warning, or error), text color, button style, and button corner radius to match your store's look.

Auto-Apply — Toggle this on to skip the button entirely and apply the replacement discount automatically when the rejection is detected.

Step 4: Write your message

Customize the Title and Description that appear in the widget. Both fields support rich text and dynamic fields:

Example title: "That code didn't work — but here's {replacement_discount} just for you, {customer_name}!"

Good to know

That's it! And as always, don't hesitate to reach out to support@prettydamnquick.com if you have any questions.