Promo Codes: Good Practice and Common Mistakes

November 23, 2026

A promo code works well when it has one job, a written margin check, a start and an end time, and a name a buyer can type accurately. The mistakes that cause trouble are codes that stay on after the campaign, cuts that leave no contribution, and codes you have not tested in the cart.

This article is about running a code well once you have chosen one. For the choice between a shareable code and an automatic discount, see Promo Codes vs Automatic Discounts: When to Use Which. Personal situation-based rewards are covered in Personal Discounts for Ecommerce: How They Work in RedCart.

Give each code one job

A code should do one thing you can explain in a sentence: welcome a first order, move a seasonal product, thank a partner's audience, or clear a specific batch of stock. When one code is asked to do several of those jobs, you can no longer tell which job it did, and you cannot switch it off without affecting the others.

Name the code so a person can type it without a lecture. Short, readable words beat a long string of mixed letters. If the code is meant for a private group, do not choose a word that is easy to guess from the campaign name you have already printed in public. Anyone who learns the code can type it, unless your tools say otherwise, so treat a public post as a public code.

Write the rules next to the name: which products it applies to, whether it applies once per order, and when it starts and ends. Those rules are what your team and your buyers will check when something looks wrong.

Check the remaining contribution before you publish

A code is a cost. Before you switch it on, take the selling price, subtract the reduction, and subtract the product, packing and delivery costs you already know. What remains has to cover payment provider fees, your time and any return. How to Price Products Online: Cost, Margin and Buyer Expectations is the worksheet the reduction is taken from.

Illustrative example with invented numbers: an item sells at 60. Product, packing and delivery already come to 36. A 10 percent code takes 6 off, leaving 54, and a contribution of 18 before payment fees. A 25 percent code takes 15 off, leaving 45, and a contribution of 9. These figures are invented for the arithmetic. The method is to do this sum for the products the code can touch, not only for the one item you have in mind, and to do it before the code is public.

If the remaining contribution is too small on the products the code will actually be used on, reduce the cut, narrow the products, or do not run the code. A deeper cut is not a better campaign if the order that comes in is one you cannot afford to fulfil.

Set a window, and switch the code off when the window ends

A code without an end date becomes part of the store's ordinary price, whether you meant it to or not. Buyers share it, saved carts still hold it, and a later campaign has to beat a reduction that was supposed to have stopped.

Give every campaign a stop date in the tool you use to issue the code. According to the announcement on promo codes buyers enter in the cart, a code can carry an optional start and end time and a switch that pauses it without removing it. A code typed in the cart is accepted only if that switch is on and, when a window exists, only if the current time is inside it. Put the dates in when you create the code, then confirm on the end date that the code no longer applies.

Set the start and end when you create the code, not after it has already spread. When the window ends, check that the code no longer applies, and remove it from the pages, posts and notes where you published it. Seasonality in Ecommerce: Planning for Peaks and Lows is the place to hang that window on a yearly calendar, so two campaigns do not overlap by accident.

Test the code in the cart, then tell buyers the rules

Place a test order with the code, and a test order without it, on a phone and on a computer. Confirm the reduction, the products it applies to, and the total the buyer will pay. If you also have a personal discount rule switched on, place both tests again as a signed-in buyer. The pages checked for this article do not describe how a promo code and a personal discount interact, so a live test is the only way to see the total before you promise one.

Tell buyers what the code does, what it does not do, and when it ends, in the same place you publish the name. A code that fails at checkout because it does not apply to the item in the cart does more harm than a campaign you did not announce.

Mistakes that erase the contribution

Leaving a code switched on after the campaign is the first mistake to watch for. The second is assuming that two reductions will not combine. If a code, a reduced catalog price shown against a compare-at price, and a personal rule can touch the same order, your margin check has to use the lowest total a test cart can produce, not the one reduction you intended.

The third mistake is running several public codes at the same time with no record of which one belongs to which job. You then cannot retire one of them cleanly, and you cannot tell which message brought the order.

The fourth is using a public code for a personal moment, such as a birthday, that is a better fit for an automatic rule. A public birthday code can be forwarded. The personal-discount article above covers rules that apply to a signed-in buyer without a code.

The fifth is skipping the cart test. A typo in the code, a window that starts on the wrong day, or a currency mismatch on a fixed-amount code is cheaper to find on a test order than in a message from a buyer who thought the total was already settled.

Review the codes you actually used

After the window ends, look at the orders that used the code: the order count, which products they contained, and what contribution remained after the reduction and your costs. If the code was used mainly on the thinnest-margin item, the next campaign should exclude that item or use a smaller cut.

If almost no one used the code, the name may have been hard to type, the rules may have been unclear, or the campaign may not have reached anyone. That is a reason to change the message or the placement, not an automatic reason to deepen the cut.

Where RedCart fits

Promo codes are listed under Personal discounts on the RedCart modules page. That page labels the module as in development and says there is no self-serve sign-up. The announcement on promo codes separately describes the codes as shipped: a percent or a fixed amount, an optional time window, an on/off switch, and entry in the cart. This article uses that description as the basis for how you design, test and retire a code, without treating the module as something you can open for yourself today.

RedCart takes no commission on sales; payment provider fees are separate and not included.

Check the remaining contribution on a test cart before you publish a code, and switch the code off when the window ends.

Request early access to RedCart.