On this page
What this issue is
You promote a code such as SPRING20 in an ad, a site banner, a popup or an email. A shopper types it at checkout and gets a message like "Enter a valid discount code" or "Code not found". The code the shopper was told to use has no matching discount in your store.
- The campaign went live before the discount was created
- A typo or different wording between the creative and the store (SPRING20 vs SPRING-20)
- The letter O used instead of the digit 0, or the reverse
- The code was deleted or renamed during a clean-up
- The code was created in a different store, region or environment than the live one
- A trailing space or hidden character when the code was copied into the store
Why it costs you leads or sales
- Ad or email shows codeSPRING20 promoted
- Shopper adds to cartIntent is high
- Enters code at checkoutCode not found
- Completes paymentMany leave instead
The break happens at the discount field, after the shopper has already been promised a deal.
Example: illustrative numbers only, not measured data.
How to check if your site has it
List every code you promote
Collect codes from live ads, email templates, banners, popups, social posts, affiliate pages and landing pages.
Compare with your store's discount list
Open the discounts or coupons section of your store and check each code is there, with the same spelling.
Copy the code from the ad, not from the store
Copy the text from the live creative and paste it at checkout. This catches hidden characters and look-alike letters.
Test in a clean browser
Use a private window with a product in the cart. Confirm the discount line appears and the total changes.
Check the active dates
Make sure the start date has passed, so the code is live rather than scheduled.
How to fix it
Decide which side is wrong. If the offer is meant to run, create or correct the code in the store. If the creative is wrong, update the creative. Where the fix lives depends on your platform.
Open Discounts
In the admin go to Discounts and search for the code.
Create or edit
If missing, choose Create discount, then Discount code, and enter the exact advertised text. Set the value, eligibility and active dates.
Save and test
Make sure the status shows Active, then test at checkout.
Open coupons
For WooCommerce go to Marketing, then Coupons. Search for the code.
Create or fix
Add coupon with the advertised text. WooCommerce stores codes in lowercase, so matching is not case sensitive, but spelling must match.
Check restrictions
Review the expiry date, usage limits and product restrictions, then publish.
Open Coupons
In the dashboard open Marketing and find Coupons.
Create the coupon
Create a coupon with the exact advertised code and set the start date to now or earlier.
Open Discounts
Go to Commerce, then Discounts, and check the code exists.
Add or correct
Add the discount with the exact code, and confirm its dates and status.
Check the source of truth
Find where codes are stored (database table, payment provider coupons or an API) and confirm the advertised code is there in the live environment.
Match the code lookup
Trim whitespace and normalise case before looking the code up, so harmless differences do not cause a failure.
If the creative is wrong, edit the ad, email template or banner so it carries the exact code. Pausing an ad that promotes a dead code is better than leaving it running.
Before
- Ad says SPRING20, store only has SPRING-20
- Checkout shows an invalid code message
- Shoppers leave or look for other codes
After
- Advertised text and store code match exactly
- Discount line appears and total drops
- Shopper completes the purchase
How to confirm it's fixed
- Paste the code from the live ad into checkout in a private window
- The discount line shows and the total changes
- The code works on mobile as well as desktop
- The code works for a logged-out visitor
- The status in the store shows Active, not Scheduled or Expired
- Every other creative promoting the code carries the same spelling
How to prevent it happening again
Create the code first
Make the discount in the store and test it before the campaign is scheduled.
Keep one list of codes
Store each code, its campaign and its end date in a shared sheet, and use it as the only source for creative.
Avoid look-alike characters
Skip codes that mix O and 0 or I and l.
Do not delete live codes
Before removing a discount, check whether any ad, email or banner still promotes it.
Re-test on a schedule
Test promoted codes regularly, not only at launch.
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor runs your checkout journey on a schedule, fills in the advertised promo code in the discount field and asserts that the code is accepted, meaning the discount appears. If the store answers that the code is invalid or not found, the check fails.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. The robot stops before payment unless your store's test mode is set up, and it never enters real card details. You tell it which code to test, so it checks the codes you list, not every code you might have promoted. The Free plan covers 1 site and 2 journeys with daily checks and no card.
Questions people ask
Why does my promo code say invalid at checkout?
The most common reasons are that the code was never created in the store, it is spelled differently from the advertised text, or it is not yet active or has expired. Compare the code in your ad with the discounts list in your store, then paste it at checkout to test.
How do I check that an advertised discount code works?
Add a product to the cart in a private browser window, paste the code exactly as shown in the live ad or email, and confirm a discount line appears and the total changes. Repeat on mobile. You can also schedule this check with a tool like FunnelGuard.
Why does my coupon work for me but not for customers?
You may be logged in, testing with different products, or using a copy of the code from the store rather than the ad. Hidden characters, usage limits, customer eligibility and scheduled start dates can also differ for customers. Test as a logged-out visitor with text pasted from the ad.
What should I do if an ad is running with a code that doesn't exist?
Create the code in your store with the exact advertised text if the offer is still intended, or pause the ad and fix the creative. Then test the code at checkout before turning the campaign back on.
Are promo codes case sensitive?
It depends on the platform. Many stores match codes without regard to case, but this is not guaranteed everywhere, especially on custom builds. Use the exact advertised case and test it to be sure.
Can a typo in an email campaign break a promo code?
Yes. A missing hyphen, a swapped O and 0, or an extra space in the email can make the code fail even though a similar one exists in the store. Copy the code from the store into the creative rather than retyping it.
How can I monitor promo codes automatically?
FunnelGuard runs your checkout journey on a schedule, enters the code you specify and checks that it is accepted. If it fails, it re-checks from a second region and then sends one alert with a screenshot and a likely cause.