LumaRewards, one PrestaShop module to retain, refer and sell through affiliates

In short. LumaRewards brings three reward programs together in a single PrestaShop module. Your customers earn points and climb VIP tiers, they refer friends in exchange for a discount voucher, and outside partners sell your products for a commission in euros. One back office, one customer area, one license.

Retaining customers, growing through word of mouth and working with affiliates usually means three different modules, with three logics, three interfaces and three update cycles to follow. LumaRewards takes the opposite approach. The three engines share the same database, the same scheduled task and the same dashboard, while keeping their accounting separate. This article walks through every feature, with the default settings, so you know exactly what you are installing.

3programs in one module
11management sub-menus
9transactional emails
5bundled languages


What LumaRewards brings you

Merchant goal LumaRewards' answer
Bring existing customers back Points on every order, conversion into a voucher, five VIP tiers
Acquire customers at low cost Personal referral link, one voucher for the sponsor and one for the friend
Sell through outside partners Tracking links, dedicated promo codes, performance-based commissions in euros
Keep costs under control Category rules, minimum thresholds, affiliate scope, anti-fraud
Reach your best customers Email campaigns targeted by VIP tier and points balance

LumaRewards - PrestaLuma

Key point. Loyalty and referral hand out discount vouchers, while the affiliate program pays commissions in real euros. This split is deliberate. A store credit and a payment made to a third party are not booked the same way, and the module keeps them in separate tables.


The loyalty program

The idea stays simple for the customer. They buy, they collect points, then they turn those points into a discount voucher themselves from their "My rewards" area.

Earning points

  • 🛒Earning ratio you can adjust, 1 point per euro spent by default
  • 🧾Calculation base of your choice, amount excluding or including tax
  • 🏷️Optional exclusion of discounted products, so discounts and points do not stack
  • 🗂️Category rules with a multiplier, for example 2 to double points, 0.5 for low-margin products, 0 to exclude a product family
  • ↩️Automatic removal of points when an order moves to canceled, refunded or payment error

Converting and expiring

  • 💶Conversion rate you can adjust, 20 points for a €1 voucher by default
  • 🔢Minimum conversion to avoid tiny vouchers, 100 points by default
  • ⏳Expiry set in months, 12 by default, or never with a value of 0
  • 📩Reminder email sent before expiry, 30 days ahead by default

Worked example. With the default settings, a customer who spends €250 excluding tax earns 250 points. They can convert them into a €12.50 voucher, which means 5% of their basket comes back as credit to spend in your store.

Goodwill gestures

From Loyalty movements, you add or remove points for a customer by entering their ID. The line shows up in the history right away, and the customer sees it in their area.


VIP tiers

A customer's tier depends on the total points earned since sign-up. Spending points therefore never drops them to a lower tier. Five tiers are created at installation, and you can add or remove tiers or change any value.

VIP tiers

What each tier can offer

  • ✖️Points multiplier applied to every order
  • 🎁Welcome bonus credited once, when the customer reaches the tier
  • 🚚Personal free shipping voucher, usable without limit for one year
  • ✨Free-form perks text shown to the customer, to describe your own privileges
  • 🎨Color and icon for each tier, used in the customer area and in the tier upgrade email

Good to know. Each tier's name and perks text are translated language by language. The five default tiers already come translated into French, English, Spanish, German and Italian.


Customer referral

A customer shares a personal link. When the friend creates an account and places a first valid order, each of them receives a discount voucher by email.

Setting Default value
Voucher for the sponsor €10
Voucher for the friend €10
Friend's minimum order €30
Voucher validity 90 days
Referral cookie lifetime 60 days
  • 🔗Unique referral link and code, generated automatically
  • 📤Share buttons for email, WhatsApp and Facebook, plus a copy button
  • 👥Referral tracking on the customer side with four statuses, invited, registered, rewarded, expired
  • 🧹Automatic expiry of invitations that never convert

Why the minimum order matters. It stops a friend from triggering two €10 vouchers with a €5 basket. Set it around your lower average order value so every reward matches a real sale.


Commission-based affiliate program

This program is built for bloggers, influencers, comparison sites and business partners. They sign up from your store, you approve their account, then they earn a commission on the sales they bring in.

Sale attribution

  1. Affiliate promo code used at checkout, which takes priority.
  2. Otherwise, tracking link with a last-click cookie, valid for 30 days by default.

The promo code lets you pay a partner even when the buyer never clicked their link, which happens a lot with videos and podcasts.

A precise commission engine

Commissions are calculated line by line on the amount excluding tax. For each product, the module applies the most specific rule.

  1. Rule set on the product
  2. Rule set on one of the product's categories
  3. Rule specific to the affiliate
  4. The affiliate's custom rate, otherwise the global rate, 10% by default

Each rule combines a percentage and a fixed amount per unit sold.

Options that protect your margin

  • 🎯Category scope, program limited to some categories or open to all except some
  • 🙅Self-referral block, on by default, so an affiliate earns nothing on their own purchases
  • ✅Manual approval of new affiliates by default, with a notification email to the administrator
  • 🌳Two-level structure (MLM), off by default, with a 5% level 2 rate on sub-affiliates' earnings

Validation and payment

  • ⏱️A commission moves from pending to validated after an adjustable delay, 30 days by default, which covers the return period
  • ❌A canceled or refunded order cancels the related commission
  • 💳Payment by bank transfer, PayPal or store credit, above a €50 threshold by default
  • 📄CSV export of payments due to prepare your transfers, then a confirmation email to the affiliate

Under the hood. Affiliates arrive through a ?ref=CODE parameter and referred friends through ?spr=CODE. The module sets the matching cookie in the displayHeader hook, then creates the conversion in actionValidateOrder.


Anti-fraud protection

A program that pays out also attracts abuse. LumaRewards monitors activity in real time and every night through the scheduled task.

Check Default setting
Maximum clicks per IP per day 100
Maximum sign-ups per IP per day 5
Chargeback rate alert threshold 30%
Automatic affiliate suspension Off
  • 🔍Suspicious pattern detection, such as several accounts on the same IP or heavy clicking with no sales at all
  • 🗃️Alert board with three-state tracking, to review, dismissed, action taken
  • 🚨Warning banner on the configuration page while alerts remain open

⚠️ Your call. Automatic suspension stays off at installation. You keep control over every sanction, and you can turn it on once you know what normal affiliate behavior looks like in your store.


The customer experience

The "My rewards" area

A single page with three tabs, reachable from the customer account.

  • ⭐Loyalty with the tier card, a progress bar toward the next tier, the balance, the conversion form and the history
  • 👥Referral with the link to share, counters and the list of referred friends
  • 💼Affiliate with sign-up, the tracking link, the promo code, clicks over 30 days, pending, validated and paid commissions, and sub-affiliate tracking

Subtle reminders across the store

  • 🏷️"Earn X points" block on the product page, in the buy area
  • 🧺Points estimate in the cart
  • 🔻Link to the loyalty program in the footer
  • 🌐Public landing page for visitors who are not logged in

Good to know. These blocks stay readable on dark themes and adapt to both the Classic and Hummingbird themes. Rendering is the same on PrestaShop 1.7.8, 8 and 9, whether the theme runs Bootstrap 4 or Bootstrap 5.


Back office management

The module adds a Rewards menu with 11 sub-sections.

Affiliate Referral and loyalty Communication and security
Affiliates Referrals Email campaigns
Conversions Loyalty movements Anti-fraud alerts
Payouts Loyalty rules
Commission rules VIP tiers
Affiliate promo codes

The configuration page opens on a dashboard with three cards, one per program, separating the current state from the activity of the last 30 days.

Targeted email campaigns

  • 🎯Targeting by VIP tier, minimum balance and lifetime points range
  • 🔐Newsletter consent respected for every customer, in line with GDPR
  • 👀Recipient estimate and test email before sending
  • 🗓️Scheduling for a given date, sent in batches of 50 through the scheduled task
  • 🧩Personalization variables such as {firstname}, {tier_name}, {balance} or {points_to_next_tier}

Campaign idea. Target Gold customers who are only a few points away from Platinum. The {points_to_next_tier} variable tells them the exact gap, which gives them a concrete reason to order.

Transactional emails

Nine templates cover the three programs, points earned, upcoming expiry, tier upgrade, affiliate approved, new sign-up to review, payout sent, sponsor reward, friend welcome and campaign. They ship in 5 languages, in HTML and plain text, with your store logo in the header.

🇫🇷 French · 🇬🇧 English · 🇩🇪 German · 🇪🇸 Spanish · 🇮🇹 Italian


Installation and scheduled task

Installation in 4 steps

  1. Open Modules → Module Manager → Upload a module.
  2. Upload the lumarewards.zip archive.
  3. Click Configure and set up the Loyalty, Referral and Affiliate sections.
  4. Schedule the daily task.

Upload not possible? Unzip the archive, send the lumarewards/ folder to the modules/ directory via FTP, then install the module from the Module Manager.

The scheduled task is required

Without it, commissions are not validated, points do not expire and campaigns are not sent. The URL appears at the bottom of the configuration page, with a secret token generated at installation.

curl -s "https://your-store.com/module/lumarewards/cron?token=YOUR_TOKEN" > /dev/null

Schedule it once a day, ideally between 3 and 5 a.m. Each run chains six operations.

  1. Validation of commissions that reached the end of their delay
  2. Expiry of outdated points
  3. Reminder emails before expiry
  4. Expiry of old referral invitations
  5. Anti-fraud detection
  6. Sending of scheduled campaigns

Uninstalling without losing anything

LumaRewards keeps your data and settings when you uninstall or reset it. Loyalty accounts, points, affiliates, referrals and commissions stay in the database, and only the back office menu is removed. A full purge remains possible by running the sql/uninstall.php file manually.

Quick fixes

Symptom Fix
Commissions stuck on "pending" Check the scheduled task, or use Conversions → Auto-validate eligible
Points not credited Check that loyalty is enabled and that the order has a valid status
Emails not received Run a test in Advanced Parameters → E-mail
Menu or form displays badly Clear the cache in Advanced Parameters → Performance

Technical sheet

Version 1.4.3
PrestaShop 1.7.8, 8.x and 9.x
PHP 7.4 or higher, 8.1 minimum for PrestaShop 9
Themes Classic and Hummingbird, Bootstrap 4 and 5
Bundled languages FR, EN, DE, ES, IT
Emails 9 HTML and text templates, 5 languages
GDPR Newsletter consent respected for campaigns
Publisher PrestaLuma
License Commercial, one store per license

Ready to reward your customers?

LumaRewards gives you three growth levers in a single module, with sensible defaults and fine control over every euro you hand out. All that's left is choosing your rates.

Discover LumaRewards

Comments

Be the first to comment on this article.

Leave a comment

Your rating *

Related products

Loading...
Back to top