Skip to content
Docs
Get RestroPress

Discount codes

Updated 1 min read
On this page

Discount codes let customers save money at checkout. Manage them under RestroPress › Discount Codes. The list shows each code's name, code, amount, uses, start date, expiration and status, with filters for All, Active and Inactive.

The Discount Codes screen

Add a discount code#

  1. Click Add Discount.
  2. Fill in the fields below, then click Add Discount Code.
The Add New Discount form
FieldWhat it does
NameA name for your own use, such as "Summer promo".
CodeThe code customers type, such as 10PERCENT. Only letters and numbers are allowed.
TypePercentage or Flat amount.
AmountThe discount: a percentage (10 means 10%) or an amount in your currency.
Menu Item RequirementsChoose the menu items the discount applies to, and whether the cart must contain all of them or only one or more of them. Leave blank to allow any item.
Excluded Menu ItemsItems the code cannot be applied to.
Included categoriesLimit the discount to certain categories.
Excluded categoriesCategories the code cannot be applied to.
Start dateWhen the code starts to work.
Expiration dateWhen the code stops working. Leave blank for no expiry.
Minimum AmountThe least the cart must be worth before the code works. Leave blank for no minimum.
Max UsesThe total number of times the code can be used. Leave blank for unlimited.
Use Once Per CustomerLimits the code to one use for each customer.

Customers enter the code in the discount box on the checkout page, and it appears as a line in the order summary. The discount shows on the order and in the receipt. To switch a code off without deleting it, edit it and set Status to Inactive.

For developers#

Discounts are stored as the rpress_discount post type. The helper functions, such as rpress_get_discount() and rpress_is_discount_valid(), are in the Discount functions reference.

Was this page helpful?