Loyalty programme
Complete guide to the Shoporama loyalty program - setting up the points system, earning, redemption and customer communication.
Shoporama's loyalty program allows your customers to earn points when they shop in your webshop. Points can later be used as payment on new orders.
How it works
Customers who create a profile in your online store can earn points for each purchase. You control the rules in the admin under Settings → Loyalty program:
| Settings | Description |
|---|---|
| Points per currency unit | How many points the customer gets per DKK spent |
| Waiting period | Number of days from award until points can be used |
| Signup bonus | Number of points when signing up for the loyalty program |
| Points per DKK | How many points correspond to 1 DKK when paying |
| Minimum order amount | Minimum order amount to use points |
| Maximum amount | Maximum amount that can be paid with points |
| Expiration time | Whether points expire after X months |
| Discounted items | Whether points can be used on promotional products |
| Categories | Limit points to certain categories |
The customer gets their points when the order is completed.
Theme customization (for developers)
Your theme must have code to display points and receive point payments. The default themes (Delaware, DelawareDK etc.) have this included from the start. If you build your own theme, you can use the following:
Show user's points:
<{if $webshop->hasLoyaltyProgram()}> Your points: <{$customer->getActivePoints()|number_format:0:",":"."}> <{/if}>
Check if the user has active points:
<{if $customer && $customer->getActivePoints()}> You have <{$customer->getActivePoints()|number_format:0:",":"."}> points <{/if}>
Input field for points payment (in basket.html):
<input type="number" name="use_points" placeholder="How many points do you want to use?" value="<{$use_points}>" min="0" max="<{$customer->getPointsAvailable()}>" />
Show earning rules:
You earn <{$webshop->getLoyaltyProgramBasePoints()|number_format:0:",":"."}> points for every 1 <{$webshop->getCurrency()}> you shop for.
When paying with points, <{$webshop->getLoyaltyProgramBaseCost()|number_format:0:",":"."}> points equal 1 <{$webshop->getCurrency()}>.
Show points earned on the order:
You earn <{$earns|number_format:0:",":"."}> points on this order.
Points history page
Add the user-points.html file in your theme where the user can see their points:
<table> <tr> <th>Date</th> <th>Order</th> <th>Status</th> <th>Point</th> <th>Expires</th> <th>Pending until</th> </tr> <{foreach $my_points as $point}> <tr> <td><{$point->getTime()|date_format:"%d.%m.%Y"}></td> <td> <{if $order = $point->getOrder()}> <a href="<{$order->getPublicUrl()|escape}>"> <{$order->getWebshopOrderId()|escape}> </a> <{/if}> </td> <td> <{if $point->getStatus() == "approved"}>Approved <{elseif $point->getStatus() == "pending"}>Pending <{elseif $point->getStatus() == "revoked"}>Revoked <{elseif $point->getStatus() == "expired"}>Expired <{else}><{$point->getStatus()|escape}> <{/if}> </td> <td><{$point->getPoints()|number_format:0:",":"."}></td> <td><{$point->getExpires()|date_format:"%d.%m.%Y"}></td> <td><{$point->getPendingUntil()|date_format:"%d.%m.%Y"}></td> </tr> <{/foreach}> </table>
Do you have any questions? Contact us at support@shoporama.dk.
Exclude products from the loyalty program
You can exclude specific products from earning and spending points. This is useful for very low margin products, gift cards or other products that should not be included in the loyalty program.
- Open the product you want to exclude.
- Under the product settings, you will find the Exclude from loyalty program field.
- Activate the field and save the product.
Excluded products do not earn points on purchases and customers cannot use points to pay for them.
Related articles
Subscriptions
Learn how to set up subscriptions in Shoporama so your customers can create recurring orders with automatic payment and delivery at set intervals.
Unsubscribe links in automatic emails
Give your customers the option to unsubscribe from automatic follow-up emails after purchases and product reviews - with a simple link in the email.
AI assistant in the text editor
Learn how to use Shoporama's built-in AI assistant to generate product texts, image descriptions and text suggestions.