The Prompt BakeryTemplates and prompts

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

  1. 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

  1. Model codes with type, value, start and end (Kuwait time), minimum order, total uses, uses per customer, and active flag.
  2. 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.
  3. 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.

Related

Try another entry

How can we help?

What do you need?
Your email, so we can reply (optional)Only enter your own email. We reply there.