Coupons and promo codes
Coupons are promo codes customers enter at checkout to get a discount — as a percentage or a fixed amount. With coupons you can set conditions (minimum basket value, an upper cap on the discount), limit the number of uses and the validity period. This page explains how a coupon is created, what each field in the form means and how the coupon status is calculated automatically.
Where it is configured
Go to Admin → Shop → Coupons (/admin/coupons).
Note: The Shop section (Products, Orders, Coupons) in the left menu is visible only once the shop is enabled under Settings → Shop Settings → Enable Shop Functionality. While the shop is switched off, the coupons page is not available.
At the top of the page statistics are shown: total coupons, number active and total uses. Below are the status filters (pills), a search by code and the table of all coupons.
Step by step
1. Open the new coupon form
Click the New Coupon button. A modal with the coupon creation form opens.
2. Enter the coupon code
Coupon Code (#f-code) — the code the customer enters at checkout, for example WELCOME10. The field automatically converts letters to uppercase and is required.
Note: When editing an existing coupon (the Edit button) this field is locked — the code cannot be changed. If you want a different code, create a new coupon.
3. Choose the discount type
Discount Type (#f-type) — determines how the discount is calculated. There are two values:
| Value | Name | How it is calculated | Note |
|---|---|---|---|
percentage |
Percentage | The value is a percentage of the basket amount (e.g. 10 = 10% off) |
With percentage the Max Discount field (upper cap) also works |
fixed |
Fixed amount | The value is a fixed amount in the currency (e.g. 500 = 500 RSD off) |
The Max Discount field is then not applied |
For the demo coupon WELCOME10 we choose Percentage.
4. Enter the discount value
Value (#f-value) — the discount value, minimum 0.01. Its meaning depends on the type:
- with Percentage: the number is a percentage (e.g.
10→ 10% off), - with Fixed amount: the number is an amount in the currency (e.g.
500→ 500 RSD off).
For WELCOME10 we enter 10.
5. Set the minimum order amount
Min Order Amount (#f-minOrder) — the minimum basket value for the coupon to apply at all. 0 or empty means no minimum. For example, if you enter 2000, the coupon will work only once the basket exceeds 2,000 RSD.
6. Set the maximum discount
Max Discount (#f-maxDiscount) — the upper cap of the discount in the currency. Used only for the Percentage type (e.g. "10% off, but no more than 1,000 RSD"). For the Fixed amount type this field has no effect.
7. Limit the number of uses
Max Uses (#f-maxUses) — the maximum total number of uses of the coupon. 0 or empty means unlimited (∞). When the use count (usedCount) reaches this limit, the coupon status becomes Limit reached and the coupon stops working.
8. Set activity
Status (#f-active) — the manual on/off switch of the coupon:
| Value | Name | Effect |
|---|---|---|
true |
Active | The coupon is usable (provided it is within its validity period and has not reached the use limit) |
false |
Inactive | The coupon cannot be used; its calculated status is Inactive |
9. Set the validity period
- Start Date (
#f-startDate) — the date and time from which the coupon is valid. Empty = immediately. If the date is in the future, the coupon status is Scheduled. - Expiry Date (
#f-expiryDate) — the expiry date and time. Empty = no expiry ("No expiry"). After this date the coupon status is Expired.
10. Save the coupon
Click Save (Create Coupon, #modal-save-btn). The coupon is saved and appears in the table with the toast message "Coupon created".
Columns in the coupon table
After saving, the coupon is shown in the table with the following columns:
| Column | Content |
|---|---|
| Code | The coupon code in a mono font (e.g. WELCOME10) |
| Discount | The discount value — for percentage "10%", for fixed "500 (fixed)" |
| Status | The calculated coupon status (see the table below) |
| Uses | Number of uses / limit — e.g. "3 / 100" or "3 / ∞" if the limit is unlimited |
| Conditions | Minimum amount (Min) and maximum discount (Max Disc), if set; otherwise "—" |
| Dates | Start date (From) and expiry date (To), or "No expiry" |
| Actions | Edit (changes the existing coupon, code locked) and Delete (asks for confirmation, then deletes) |
Calculated coupon status
The coupon status is not entered manually — the system calculates it from the combination of activity, dates and number of uses. The order of checks matters: activity is checked first, then the dates, then the use limit.
| Status | Value | Badge colour | Condition | Meaning |
|---|---|---|---|---|
| Inactive | inactive |
Grey | The Status field is false |
The coupon is manually switched off; it does not work regardless of everything else |
| Scheduled | scheduled |
Blue | It is active, but Start Date is in the future | The coupon is prepared but has not started yet |
| Expired | expired |
Red | It is active and started, but Expiry Date has passed | The validity period has ended; the coupon can no longer be used |
| Limit reached | limitReached |
Yellow/amber | Active, within the validity period, but usedCount has reached Max Uses |
The coupon has been used the maximum number of times |
| Active | active |
Green | Active, within the validity period and has not reached the limit | The coupon currently works and customers can use it |
These statuses are also the filters (pills) at the top of the page — clicking a pill shows only coupons in that status, with a counter next to each.
Tip: If you want a coupon to start working on a specific date (e.g. for an upcoming promotion), set Start Date in the future and leave Status on Active — the coupon will sit in the Scheduled status and automatically become Active when that date arrives.
Frequently asked questions
Where do customers enter the coupon?
On the checkout page there is a field for entering the promo code. The customer enters the code (e.g. WELCOME10) and the discount is applied to the basket amount before the final payment.
What is the difference between "Status: Inactive" and "Expired"?
Inactive means you switched the coupon off manually (Status field = false). Expired means the coupon was active but its expiry date has passed. An inactive coupon can be switched on again; an expired coupon needs a new expiry date.
What if I set both a percentage and a maximum discount?
The discount is calculated as a percentage of the basket, but never exceeds Max Discount. Example: a 10% coupon with Max Discount 1,000 RSD on a 15,000 RSD basket gives a discount of 1,000 RSD (not 1,500 RSD, which a plain 10% would be).
Does Max Discount work for a fixed discount?
No. Max Discount has an effect only with the Percentage type. With the Fixed amount type it is ignored.
Can I change the code of an existing coupon?
No. When editing (Edit) the code field is locked. If you need a different code, create a new coupon and delete the old one if needed.
How many times can a customer use a coupon?
The Max Uses field limits the total number of uses of the coupon (all customers together). 0 or empty means unlimited. When the limit is reached, the coupon moves to the Limit reached status.