Next step · What to do next
Add discount codes safely
What you may see
- I want to offer a discount code to customers
Why this step
A discount code is money; it must be limited, checked on the server and recorded so it cannot be abused or stacked by mistake.
Before you start
- What kind of discount (percent or fixed), for whom, until when, how many times?
The prompt for this step
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Model codes with type, value, start and end (Kuwait time), minimum order, total uses, uses per customer, and active flag.
- Validate and apply the code on the server only, with clear messages (expired, used, minimum not met), rounding fixed to the fils, and never below zero.
- Record each use against the order; limit attempts per address to stop guessing; show a simple report.
Do not do this
- Do not allow unlimited stacking of codes.
- Do not apply discounts in the browser.