Skip to content

Limits and guarantees

A points programme is a promise to your customers, paid for out of your margin and held open for months. Loyalty is sold on keeping that promise exactly: a point is awarded once, taken back once, spent at the price the checkout quoted, and never expired behind anybody's back. This page is where each of those is written out, including where it stops. Read it before you switch earning on, because switching it on is the moment your store starts to owe something.

At a glance

If you are asking The short answer
Does switching earning on award points for past orders? No. Only an order placed after you pressed Start awarding points can earn, whatever status it reaches later. More
Does a refund take the points back? Only if you tick the statuses that mean a refund. Nothing is ticked out of the box, and the screen warns in red while it is empty. More
Can a balance go below zero? Yes. A refunded order takes back points already spent, and two orders placed at once can spend the same points. Nothing stops it; a negative balance blocks spending until it is earned back. More
Can I run Loyalty beside OpenCart's own Reward Points total? Earning, yes. Spending, no: while core's total is on, Loyalty's checkout line and cart control stay away. More
Can I stop some products earning points? Yes. List their categories under Categories that earn nothing; their subcategories are excluded too, and exclusion beats a product's own Reward Points figure. More
Can one customer group spend under different limits? Yes. The minimum balance and the most of an order points may pay each take a figure per customer group, and a blank group uses the store's. More
Can I see who holds the points? Yes. The Balances list on the Loyalty screen shows every account holding points, and exports a CSV keyed on the customer id with no name or address. More
Can points pay for shipping? No. They come off the goods, before shipping and tax, and never take an order below zero. More
Will a customer lose points without warning? No. Nothing expires until a warning email has gone and its notice period has run out. A store whose mail is not working expires nothing. More
Do points I added by hand expire? Points added on a customer's Reward Points tab, no. Points added with Loyalty's own Adjust points or an import, yes, like any other. More
Can I add points to many customers at once? Yes. Import CSV on the Balances block takes a customer, points and reason per row, shows what it would write first, and writes each row once. More
Can I pay points for a newsletter subscription? Yes, once per account, with a sentence beside the checkbox that says so. It is off until you set a figure, and never taken back on unsubscribing. More
What does OpenCart 4.1.0.4 cost me? Expiry, the warning email, the birthday bonus and the repair of failed writes run only from a crontab line of your own. Earning and spending work. More
Does uninstalling delete my customers' points? No. It removes Loyalty's event rows and scheduled task and nothing else. More
Can another extension award points? Yes, through one model call, and nothing checks who is calling. More
Can my CRM or accounting system read customers' points? Yes, once you switch the API on: every movement of points and every customer's balance, with when it expires. Points are never given a money value, and nothing can be changed through it. More

What a balance is

  • A balance is OpenCart's own figure. It is the live sum of the customer's rows in OpenCart's reward table, the same figure core's customer screen and checkout use. Loyalty writes every movement into that table and never keeps a second copy of anybody's balance, so a copy can never disagree with it.
  • Points you add or remove by hand count at once. A change on a customer's Reward Points tab is part of the same sum, and so is one made with Loyalty's own Adjust points.
  • A customer has one balance across every store. Rates, limits and the expiry window are set per store; the balance is not split by store.
  • Points are points, never money. Loyalty stores and shows points. What they buy is your exchange rate applied at the moment of spending; what they cost your business is accounting, which Loyalty does not do for you. See what the store owes.

What earns, and when

  • No order earns until you press Start awarding points. Installing awards nothing, and setting a rate awards nothing. The button records the moment, and only an order placed after it can earn. An order is judged by when it was placed, not when it completed, so the orders already in your system never earn, whatever status they reach later.
  • An order earns once, the first time it reaches a status you ticked. No status is ticked out of the box. Reaching an awarding status again awards nothing more, and changing the list never backdates anything.
  • The base is the goods. Either the product lines before tax or including it, as you choose. Shipping, handling and fees are never counted. A coupon and points spent reduce the base; store credit and a gift voucher do not, because the customer had already paid for those. An order total Loyalty cannot classify is treated as a discount, the direction that costs you less, and named in the log.
  • Rounded down, once, over the whole order. Not per line, and never up. An order too small to earn a whole point writes nothing.
  • The rate is a percentage, and above 100 is ordinary. 100 is one point per unit of your store's default currency; 200 is two.
  • A customer group can have its own rate. The group is the one the order was placed in, not the one the customer is in today. A group left blank earns the store's rate, never nothing.
  • A product's own Reward Points figure wins, if you leave that on. A line whose product has a figure on the product form's Reward Points tab earns exactly that figure instead of the percentage. Zero means not set, so zero on that tab does not make a product earn nothing; an excluded category does.
  • Products in a category you exclude earn nothing. List categories under Categories that earn nothing, and every product assigned to one of them, or to any category below one, adds nothing to what an order earns. The line still takes its share of a coupon, so the rest of the order earns exactly what it would have. Exclusion beats the product's own figure: an excluded product earns neither its share nor its Reward Points figure. To make a single product earn nothing, add it to a category you exclude, which can be a disabled one your shoppers never see. Only orders are affected: the welcome bonus, the birthday bonus and points another extension awards are not. The list is read when the order is awarded, like every other setting, so moving a product between placing and awarding counts; an award once written never changes. The cart's "you will earn" line applies the same exclusion.
  • An award is never recalculated. Editing an order after it earned changes nothing, and the award records the base and rate it used, so you can trace a figure months later.
  • Guests earn nothing. Points belong to an account.
  • The welcome bonus is paid once per account, for ever. It is paid for an account made on the register page, at the checkout's register step, or by you in the admin, and an account is paid once whichever way it came. An account waiting for approval is paid all the same. Raising the figure pays the accounts created from then on; nothing is backfilled. It does not wait for Start awarding points: it is paid whenever the programme's Status is on and the figure is above zero.
  • The birthday bonus needs a field you create. OpenCart has no birthday field, so you choose one of your own Date custom fields at the Account location. A customer who left it empty, or typed something that is not a real date, is simply not celebrated. It is paid once a year, on or after the birthday, by the hourly scheduled pass, and only for a birthday that fell on or after the day earning was switched on: switching anything on never pays for birthdays already gone. A 29 February birthday counts from 1 March in other years.
  • Stopping earning stops new awards and takes nothing back. Pressing Start again restarts the clock from that moment.

What is taken back

  • Only on the statuses you tick, and none is ticked out of the box. Canceled, Refunded and Chargeback are the ones to tick. While awarding statuses are ticked and none of these is, the screen warns in red, and saves anyway, because a store may decide points once given stay given. A status ticked in both lists is refused.
  • All of an order's award, or none of it. OpenCart has no partial refund at the order level, so a reversal takes back exactly what the order was awarded, whatever the rate says today. To take back part, use Adjust points on the Loyalty screen with a minus sign.
  • Points already spent are taken back too, and the balance goes below zero. A customer who earned 500 points, spent them, and then had the order refunded is at −500. The points page tells them which order put them there, and they cannot spend again until they are back above zero.
  • Once per order, for ever. A reversed order never earns again, whatever statuses it passes through afterwards.
  • An award that has already expired is not taken back. Expiry took it once; taking it again would charge the customer twice.
  • Reversal keeps working after you stop earning, for the orders that earned while it was on. It does not survive switching the programme's Status off: with it off, an order reaching a reversing status takes nothing back, and switching it on again does not reach back to that order.
  • OpenCart's own Remove Reward button is never blocked. It deletes the order's reward rows, and the balance is right at once because it is core's own sum. Loyalty keeps its matching row as history and counts it under Needing attention on its screen.

Spending points at checkout

  • Loyalty or OpenCart's own Reward Points total, not both. While core's Reward Points order total is switched on, Loyalty's line at checkout and its control on the cart stay away, so a customer is never shown two Reward Points lines that disagree. Earning carries on. A fresh OpenCart installation ships with core's total switched on. Both of Loyalty's admin screens say so and link to it; neither switches it off for you, and uninstalling Loyalty does not switch it back on.
  • The exchange rate is one number per store. It says how many points buy one unit of your store's default currency, the same for every customer group. An order in another currency shows the discount in that currency, the way OpenCart shows any discount. The cart's control moves in steps of that rate, one unit of currency at a time.
  • An order keeps the rate it was created at. Changing the rate while a customer is at checkout never changes what their order already quoted, and the admin order editor keeps the points and the rate the order was placed with.
  • Points come off the goods and nothing else. The discount is spread over every product line in proportion to its value, and each line's percentage taxes come down with its share, the way a coupon's do. Shipping is never paid with points. Most of an order points may pay caps the share, measured on the goods before shipping and tax, and however it is set an order reaches zero and never passes it.
  • Any product can be paid for with points. A product's own Reward Points figure is never read when spending.
  • Below the minimum balance the control does not appear at all. Nor does it on a guest's cart, on a cart whose customer has nothing to spend, or on a cart whose subtotal is below Minimum cart subtotal to spend. That subtotal is the goods before tax, in your store's default currency, and 0, as it ships, is off. A customer who chose points and then took the cart below it sees the points line drop from the totals, the way a balance below the minimum does.
  • A customer group can have its own minimum balance and its own most of an order. Each takes a figure per group under the store's own, and a group left blank uses the store's figure, never nothing. The group is the one the customer is in at the cart. The exchange rate stays one figure for every group.
  • The admin order editor does not ask the minimums again. An order you edit in the admin keeps the points it spent while the customer still has them, without the minimum balance or the minimum subtotal being asked of it a second time; it does take the order's customer group's most-of-an-order figure.
  • Points leave the balance when OpenCart confirms the order, not when the customer moves the slider. An order that is never paid for is never deducted. An order cancelled or voided after it was confirmed gives the points back as a movement of its own.
  • Two orders at once can spend the same points. A customer with two tabs open can choose the same points in both. The second order is deducted in full rather than flagged as fraud, the balance goes below zero, and the log says so. No setting prevents it.

Who holds the points

The Balances block on the Loyalty screen, under the liability panel, lists every account holding points, largest first; negative balances come last, so they are found too.

The Balances block: two accounts listed with their points, expirable points, expiry date and last movement, the footer saying 2 accounts hold 620 points, and the Export CSV button

  • It counts what OpenCart counts. Each balance is the same figure as the API's balance resource and the customer's points page, and the expiry date is worked out the same way.
  • It follows the screen's store. The default store shows the whole installation; another store shows the accounts whose expiry window it governs, which is the store Loyalty last moved points on for that customer, or the account's own.
  • The footer ties it to the panel. "N accounts hold P points." Where the outstanding figure above is larger, a second line names the points that belong to no account: reward rows of customers who have since been deleted.
  • The export carries no name and no address. Export CSV writes every row, with exactly the API's balance fields keyed on the customer id. It is a figure to tie out, not a list of people to mail.
  • Points, never money, like the panel above it.

Adjusting points by hand

Adjust points, under the Balances block, adds points to one customer's balance or takes them off; Import CSV, beside Export CSV, does the same for many customers from a file.

The Adjust points form, answered with the balance before and after

An import's dry run: one row refused for an unknown customer, one row to write, and the Commit button

  • It moves a balance and never sets one. You type a figure to add, or to take off with a minus sign; there is no set to. A balance set to a number while orders are being placed would race them. Taking points off may take a balance below zero, as spending can.
  • A reason is required, and the customer sees it. It is the line on their points page and on core's Reward Points tab, at most 255 characters.
  • Each adjustment goes through Loyalty, so it expires and counts as activity. That is the difference from core's Reward Points tab, which still works as it always has and whose rows never expire. Loyalty has to be on for the customer's own store, or the adjustment is refused.
  • A double click writes once. The form carries a key of its own, so a second press of the button is answered already done.
  • An import shows what it would do before it does it. Uploading a file writes nothing: it lists the rows it would write, the rows it refuses and why — an unknown customer, a figure that is not a whole number other than 0, no reason, a row already imported and when, Loyalty off for that customer's store — and the net points. Commit writes them, and only if the file is byte for byte the one that was checked; a file changed since is refused until you check it again.
  • A row is recognised by what it says. Its customer, points and reason together are its key, so uploading a corrected file writes only the rows that changed and leaves the rest. The same grant given to the same customer again later is refused as already done; put the date in the reason for a repeat.
  • One file carries at most 2,000 rows and 1 MB. Split a larger migration into several files; a row that appears in two files is written once.
  • The file is never kept. It is read while you upload it and again when you commit, and an email in it is used only to find the customer.

Newsletter points

Newsletter points, under Earning, pays a customer once for subscribing to your newsletter on the storefront. It ships at 0, which pays nothing and prints nothing.

The register page with the newsletter checkbox and, beside it, the sentence saying how many points subscribing earns and that they are kept on unsubscribing

  • The customer is told before they tick. Above 0, one sentence beside the checkbox on the register page, the checkout's register step and the account's newsletter page says how many points subscribing earns, that it is once and with an account, and that the points are kept on unsubscribing. It is shipped, not configured: a box to edit it is a box that can be emptied. It goes from the newsletter page once that customer has been paid, because earns would no longer be true.
  • Once per account, for ever. Subscribing again pays nothing, and unsubscribing takes nothing back, because withdrawing consent has to be as easy as giving it.
  • The storefront only. A box you tick on the customer form in the admin pays nothing, because that customer never saw the sentence.
  • Nothing is backfilled. A customer already subscribed when you set the figure is paid the first time they save their newsletter page ticked.
  • Whether you may pay for it is yours to check. Loyalty discloses the incentive; it does not make it lawful. Where your store trades, consent rules (in the EU, consent has to be freely given) or a notice-of-financial-incentive rule (California's 11 CCR §7016) may apply to paying for a subscription. Check them before you set a figure.

Expiry

Expiry is off until you switch it on, and when it is on:

  • Nothing expires without a warning email first, and the warning has no switch. An email that fails to send records nothing, so that customer cannot expire and is warned again on the next pass. A store whose mail is not working expires nothing at all. That is the rule working, not a fault.
  • The notice is at least as long as you set, never shorter. The date the email names is never sooner than the warning period after it was sent, and a warning delayed by a backlog pushes the date later rather than shortening anybody's notice.
  • Only points Loyalty awarded can expire. Points added by hand on a customer's Reward Points tab, or earned before Loyalty was installed, never do, however old they are. Points added with Loyalty's own Adjust points or an import are Loyalty's, and expire like points earned on orders. So a balance can be part expirable and part not. The email and the points page name the part that will go, never the balance, and say in one further line that the rest stays.
  • Expiry never takes more than the customer holds. Points spent through OpenCart's own Reward Points total, or removed by hand, are not taken off Loyalty's own count of what can expire. The warning email and the expiry itself take the smaller of that count and the balance; the points page and the API's expirable_points show the count as it stands, so there they can name more than will go.
  • Only a points movement counts as activity. Earning, spending, a reversal, an adjustment or import on the Loyalty screen, or points another extension awarded through Loyalty restart the clock, and clear a pending warning at once. Signing in, browsing, an order that earned nothing and a change made by hand on core's Reward Points tab do not.
  • The window runs from 12 to 120 months, and the warning from 14 to 365 days. A figure outside either is saved as the nearest one inside it.
  • Switching expiry on expires nobody straight away. The first pass after you switch it on only warns: it emails the customers whose window has already run out, and expires nobody, so nothing can expire retroactively. Expect those emails within the hour of saving, on a store whose scheduled pass runs.
  • Switching it off stops further expiry and brings back nothing. Expired points do not come back.
  • The warning goes whether or not the customer subscribed to your newsletter, and has no unsubscribe link. It is a notice about their own balance; an opt-out would quietly mean that customer's points never expire. Its words are shipped, not configurable, and no copy goes to the store.
  • A backlog takes several passes. Each hourly pass warns at most 50 customers per store, and expires at most 50. Birthdays and the repair of failed writes are capped the same way, 50 per store per pass.
  • A customer's expiry follows their own store's settings. One balance, one clock, set by the store their account belongs to.

The hourly scheduled pass

Loyalty registers one task on OpenCart's own scheduler, hourly, under Extensions → Cron Jobs. It repairs failed writes, pays birthday bonuses and runs expiry. Earning, spending and reversal do not depend on it: they happen when the order changes status.

  • It only runs when your store's cron runs. If nothing on your host calls OpenCart's cron.php, none of those three things happens. Nothing is lost: birthdays and expiry catch up when it next runs, without paying twice.
  • On OpenCart 4.1.0.4 it runs only from a crontab line of your own. That release's cron.php stops inside OpenCart's own code before any extension is reached (see requirements). php extension/loyalty/loyalty.php runs the same pass instead; see install. Without it, nothing expires, nobody is warned, no birthday bonus is paid and a failed write stays unfinished. Earning and spending work normally, and the Loyalty screen says so on such a store.
  • A failed write is repaired, never duplicated. Loyalty writes its own row first and OpenCart's reward row second. If a request dies in between, the customer's balance does not move, and the pass writes OpenCart's row an hour or more later, adopting one that was already written rather than adding a second. Until then it is counted under Needing attention.
  • It adds one index to a table Loyalty does not own. OpenCart's reward table ships with no index on the customer, so core's own cart page reads the whole table for every signed-in shopper. The pass adds that index once, only if no index on the customer is there already, and nothing ever removes it. If your host refuses the change, the pass logs it and carries on.
  • Its own route cannot be called from a browser. A web request to it is answered Not found. OpenCart's scheduler is another matter: its cron.php sits at the store's root, and anyone who requests it starts whatever task is due, this pass included. That costs nothing, because the pass runs only when it is due, holds a lease while it runs, and does each thing once.

Other extensions awarding points

Any installed extension can award or deduct points through one call, described on the award seam. Review Requests uses it to pay for an approved review.

  • Each movement happens once. A caller supplies a key, and a second call with the same key writes nothing, even when two requests race.
  • Nothing checks who is calling beyond the code running in your store. Any installed extension may award or deduct points, the way any installed extension may already write to OpenCart's own tables.
  • A store with the programme switched off refuses every award, from any caller. A store earning nothing on orders still accepts them.

Uninstalling and updating

  • Uninstalling removes Loyalty's event rows and its scheduled task, and nothing else. No table, no row and no copy of your settings is deleted, because OpenCart performs an update as an uninstall followed by an install, and what is at stake is every customer's points history.
  • Your customers' points stay in OpenCart's own reward table after uninstalling, and remain their balance. Uninstalling does not switch OpenCart's own Reward Points total back on, so the points cannot be spent until you do.
  • An update keeps every setting, including whether the programme and earning are on. See the changelog for the one exception.

The API, and what it can read

Off until you switch it on, under API on the default store's settings, and while it is off every route answers as though this extension had no API at all. Two read resources: movement is one entry in the points ledger — an earn, a spend, a reversal, an expiry — with where it came from and whether it still counts, and balance is one customer's points as OpenCart holds them and when the expirable part goes. The API is generated from what the extension actually answers.

  • It only ever reads. Nothing can award, spend, reverse or expire points through it; awarding stays with the one call other extensions use, inside your store.
  • Points are not money. Balances and movements are whole numbers of points, with no currency and no value attached. The one amount is the order total an award was worked out from.
  • A balance is OpenCart's own figure, so it includes points you added by hand and points from before you installed Loyalty, exactly as the customer's points page does.
  • "Changed since" works for movements, from this version on. Every change to a movement — posted, voided, orphaned, erased — moves its modified date. Movements from before you updated to 1.1.0 carry no date until they next change, so an integration starts with one full walk. Balances have no such date, because OpenCart's own reward rows have none; walk them.
  • The expiry date is a forecast until the warning goes out, worked out the way the customer's points page works it out. A date in the past means the scheduled pass has not run, and nothing expires without it.
  • An erased customer's movements stay, and name nobody. Their customer is emptied and the state reads erased, as below. A movement another extension awarded keeps the key that extension wrote for it.
  • The credential is OpenCart's own API user, and it is not scoped. One is enough to read every customer's points on every store, and every other extension's API and core's own order API besides. Restrict it by IP address under System → Users → API, and treat it the way you would treat an admin login.
  • Nothing records that anybody read anything. No read log, no per-credential audit trail, no rate limiting.

Personal data

What Loyalty holds about a person, column by column, is on what this holds about a person.

  • Deleting a customer erases their Loyalty history in the same request, whether you delete them under Customers › Customers or OpenCart's GDPR erasure does. Their movements stay, with the customer emptied and marked erased, so the ledger still explains the orders it came from and stops counting toward anything; their summary row goes. The keys Loyalty itself made from the customer's account number — for a welcome bonus, newsletter points, a birthday, an expiry — are rewritten to name the movement instead, so an emptied row no longer points back to the account by number. A key another extension wrote through the award call is kept as that extension wrote it.
  • The remove-everything screen does to every customer at once what deleting one does. The Remove everything held about a person screen linked from Loyalty's settings counts what Loyalty holds, and pressing it deletes every customer's summary row and empties the customer from every movement, marking it erased. It reports what the database says changed, so pressing it a second time reports that nothing was left to remove.
  • It leaves OpenCart's own reward rows alone, on purpose. Those rows are every customer's balance, on the account page, at checkout and on the customer screen, and deleting them would take points away from every customer rather than erase anything. So balances stand after the purge, but the points earned before it can no longer expire: expiry counts only movements that are not erased. One person's reward rows go when that customer is deleted, and that is OpenCart's own erasure rather than Loyalty's.
  • On OpenCart 4.1, up to 4.1.0.3, OpenCart's own GDPR erasure stops partway. It deletes the account and fails before the rest, while marking the request complete. Loyalty's erasure runs before that point, so Loyalty's own rows are handled; OpenCart's reward rows for that customer are left behind by core. See what core's own GDPR feature does.

Language

Loyalty talks to your customers on the points page in their account, on the cart and checkout, and in the expiry warning email, so what language those are in is a question about your shoppers before it is one about your admin. Both halves are answered, and counted, on the shared language promise page.

  • Every word of ours is translated as far as somebody has read it and no further, and the rest is English. A string a named reviewer has signed off is served in the language asked for; a string nobody has read is served in English rather than blank; and a string whose English has since been reworded goes back to English until it is read again.
  • The line written into OpenCart's reward table is written once, when the points move. Core's table has no language column, so what core's own Reward Points tab shows for a movement is fixed at that moment: the order, welcome, newsletter and birthday lines in your store's default language, the reason you typed for an adjustment as you typed it, and Points expired in English. Loyalty's own points page labels its own rows again in the customer's language each time it is shown. See reference.
  • The expiry email goes in the customer's own language where Loyalty ships one, and in English otherwise.

Where this page stops

Behaviour that is not built yet is not described here as though it were. There are no tiers that move a customer into another customer group, no referral bonus, and no points for anything but orders, sign-ups, newsletter subscriptions, birthdays and what you adjust by hand, unless another extension awards them. The only email Loyalty sends is the expiry warning; there is no "you earned points" email. There is no accounting valuation of what the points you owe cost your business, and no statement of opening, earned, spent, expired and closing points for a period: the API's movements and the balances export give the raw rows. If you are evaluating Loyalty against a requirement you do not find on this page or on the overview, assume it is not there and ask rather than inferring it.