Skip to content

How to Create a Referral Program (Pro)

A referral program turns happy customers into a sales channel. This guide adds a referral earning rule in LoyaltyX Pro, so a member earns points when someone they refer makes a purchase.

Each member gets a referral link from their rewards area. When a new customer follows that link and places a qualifying order, the referrer earns points. The reward lands after the referred order reaches an award status, the same way purchase points do.

Set up purchase-based earning and turn on the rewards widget, so members have somewhere to find and share their link.

Go to DevDiggers Plugins → LoyaltyX → Points Rules, then open the Points Earning sub-section.

The LoyaltyX Points Rules list with earning rules

Click Add New. On the Choose Rule Type screen, pick Referral.

The Choose Rule Type screen with the Referral card selected

The rule form opens. Fill in:

  • Rule Name, such as Refer a Friend.
  • Points Value for how many points a successful referral earns.
  • Rule Description to explain the reward to members.

The referral rule form with the Points Value field marked

Set the reward high enough to be worth sharing. A referral brings a new customer, so it is worth more than a single review or daily login.

The referral rule shares LoyaltyX’s standard rule conditions. Use them to control who earns and when:

  • Applicable on Days limits the rule to certain days of the week. Leave it empty to run every day.
  • Applicable to targets the reward at All Users, Specific User Roles or Specific Levels.
  • Schedule with a Start Date and End Date runs the program for a set campaign. Leave the dates empty to start immediately and run indefinitely.
  • Priority decides which rule wins when more than one rule could apply.

The referral rule Conditions and Schedule fields

Step 4: Show referrals in the rewards area

Section titled “Step 4: Show referrals in the rewards area”

Set Show to Customer to Show so the referral appears as a way to earn in the rewards widget and the My Account dashboard. Members need to see their link to share it.

The Show to Customer field set to Show on the referral rule

Click Save, then set the rule to Active on the list.

Test the full loop:

  1. Sign in as a member and copy the referral link from the rewards area.
  2. Open the link in a separate browser or a private window as a new customer.
  3. Place an order as the new customer and complete checkout.
  4. Move the order to an award status and confirm the referrer’s balance goes up.

If the referrer earns nothing, confirm the referred order reached an award status under Configuration → General, and that the referral rule is set to Active.