Coupons

Coupons give subscribers a discount when they sign up for, renew or upgrade a plan. You can create coupons one by one, generate hundreds at once, or import them from a spreadsheet.

Coupons only work if Enable Coupon is set to Yes in Membership Pro -> Configuration. When it is enabled, the subscription form shows a coupon code field.

Open the Coupons Screen

Go to Components -> Membership Pro -> Coupons, or use the Coupons menu inside Membership Pro. The list shows each coupon's code, discount, times allowed, times used, validity dates, note and status. You can search by code and filter by plan or status.

Coupons list

Add a Coupon

Click New and fill in the form.

  • Code: the code subscribers enter.
  • Discount: the amount, followed by % (percentage of the subscription fee) or your currency symbol (fixed amount).
  • Coupon Assignment: which plans the coupon works for.
    • All Plans: any plan.
    • All Selected Plans: only the plans you pick in Plans.
    • All Except Selected Plans: every plan except the ones you pick.
  • Plans: the plans used by the assignment above. Shown only when the assignment is not All Plans.
  • Subscription Type: limit the coupon to New Subscriptions, Subscription Renewal or Subscription Upgrade. Leave it on All for no limit.
  • Apply For: only matters for recurring subscriptions. Choose All Payments to discount every payment, or Only First Payment.
  • Times: how many times the coupon can be used in total. Leave it empty or 0 for unlimited use.
  • Times Used: how many times it has been used so far (read-only).
  • Max Usage Per User: how many times one logged-in user can use the coupon. Leave it empty or 0 for no limit.
  • Valid From Date: the coupon cannot be used before this date.
  • Valid To Date: the coupon cannot be used after this date.
  • Note: an internal note, not shown to subscribers.
  • User: restrict the coupon to one Joomla user. Leave it empty to allow everyone.
  • Access: only users in this Joomla view level can use the coupon.
  • Published: unpublished coupons are rejected.

Add a coupon

After a coupon has been used, the Usage Statistics tab on the edit page lists the subscriptions that used it and the discount each one received.

When a Coupon Is Accepted

The subscription form accepts a code only if all of these are true:

  • The coupon is published and its access level matches the visitor.
  • Today is inside the Valid From Date / Valid To Date range.
  • Times Used is lower than Times (or Times is unlimited).
  • The plan is covered by the Coupon Assignment, and the subscription type (new, renewal, upgrade) matches.
  • If a User is set, the visitor is that user.
  • The visitor has not reached Max Usage Per User.

Require a Coupon for a Plan

To let only people with a valid coupon subscribe to a plan, set Require Coupon to Yes on the plan's Advanced Settings tab. See Advanced Settings.

Batch Coupons

Use batch generation to create many unique codes at once, for example for a promotion or a reseller. Go to Coupons -> Batch Coupons.

Batch coupons

  • Number Coupons: how many coupons to create. Default 50.
  • Coupon Assignment and Plans: same as for a single coupon.
  • Subscription Type, Apply For: same as for a single coupon.
  • Discount: the discount amount and type (% or currency).
  • Characters Set: the characters used to build each code. Default ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.
  • Prefix: text added to the start of every code, for example SUMMER-. Optional.
  • Coupon Length: the number of random characters in each code. Default 20. The prefix is added on top of this length.
  • Valid From Date, Valid To Date, Times, Note, Published: applied to every generated coupon.

Click Generate Coupons in the toolbar. The coupons appear in the coupons list.

Export Coupons

Go to Coupons -> Export. Membership Pro downloads an Excel file (coupons_list.xlsx) with all coupons. Use it for reporting, or as a template for importing.

The file has these columns: id, plan, code, coupon_type, subscription_type, discount, times, used, max_usage_per_user, valid_from, valid_to, note, published.

Exported coupons file

Import Coupons

Use import to bring in coupons created elsewhere, or to edit many coupons in a spreadsheet.

Prepare the File

The file can be CSV, XLS or XLSX. The first row must contain the column names. The easiest way is to export your coupons and edit that file. Use these columns:

Column Meaning
id Optional. If it matches an existing coupon, that coupon is updated. Leave it empty to create a new coupon.
plan Plan title. For several plans, separate the titles with commas. Leave it empty for all plans.
code The coupon code. Required.
coupon_type 0 for percentage, 1 for a fixed amount.
subscription_type subscribe, renew or upgrade. Leave it empty for all types.
discount The discount amount. Required.
times Number of times the coupon can be used. 0 means unlimited.
max_usage_per_user Times one user can use it. 0 means unlimited.
valid_from, valid_to Dates in YYYY-MM-DD format, or empty.
note Internal note.
published 1 to publish, 0 to unpublish.

Rows without a code or a discount are skipped.

Run the Import

  1. Go to Coupons -> Import.
  2. Click Choose File and select your file.
  3. Click Import Coupons in the toolbar.

Membership Pro shows how many coupons were imported.