In this article, we go through the elements of MyCashflow's loyalty program and the Interface tags used to implement them.
The default theme of MyCashflow includes ready support for a loyalty program.
Add a form for becoming a member
In order for customers to join the loyalty program, the {LoyaltyProgramSignUpForm}
tag must be added to the theme.
Good places for the tag are, for example, the login page and the customer account page.
Add information about points earned from purchases to product pages
With the {ProductLoyaltyPoints}
tag, you can add information to the theme about how many points the purchase of a product will accumulate for the customer.
Additionally, it is good to add the {CartLoyaltyPoints}
tag to the theme, which indicates how many points the entire shopping cart content accumulates.
Add information about accumulated points and discount codes to the theme
With the {CustomerLoyaltyPoints}
tag, you can add up-to-date information about the customer's point accumulation to the theme. The tag works anywhere, but for example, the customer account page template (account.html) is often a suitable location for the information.
It is also good to add a list of discount codes accumulated for the loyalty program member to the customer account page template using the {CustomerDiscountCodes}
tag. By default, the list is also included in the monthly loyalty program email template.
Add the loyalty program information and terms to the theme
With the following tags, you can add information about the loyalty program's reward levels and validity period to the theme:
{LoyaltyProgramDiscountTiers}
{LoyaltyProgramDiscountTierClass}
{LoyaltyProgramDiscountTierDiscount}
{LoyaltyProgramDiscountTierPoints}
{LoyaltyProgramDiscountTierPointsNeeded}
{LoyaltyProgramDiscountTierPurchasesNeeded}
{LoyaltyProgramDiscountValidPeriod}
Also add information about the points accumulated from different activities using the following tags:
{LoyaltyProgramPointsOnSignup}
{LoyaltyProgramPointsOnPurchaseRatio}
{LoyaltyProgramPointsOnPurchaseValue}
{LoyaltyProgramPointsOnProductReview}
You can add the information of the discount codes accumulated to the customer with the tags listed below:
{CustomerDiscountCodes}
(prints a discount code list, the content of which is determined by the tags below){CustomerDiscountCodesCount}
{CustomerDiscountCodesTotal}
{DiscountCode}
{DiscountCodeToggle}
{DiscountCodeValue}
{DiscountCodeExpiryDate}
In the loyalty program settings, you can define content pages that explain the details of the loyalty program and set its terms and conditions. Ensure with the following tags that the theme contains links to both pages in the necessary places:
Optional: Implement the loyalty customer email
MyCashflow sends automatic monthly email notifications to the online store's loyalty program members about the discounts and points they have accumulated.
The default email theme of MyCashflow directly supports the loyalty program email, and even if a customized theme is used in the online store, the necessary email is sent using the system's internal template.
If necessary, you can change the content and appearance of the email by editing the email theme file customer/campaign-codes.html
Add the list of discount codes to the email using the {CustomerDiscountCodes}
tag, and specify the content and structure of the list using discount code tags in the helper
attribute.