MaxOutil sells tools and equipment to professionals and private customers, on a Magento 2 store with a Hyvä front end. The company wanted a network of partners and influencers to promote its products, and it wanted to reward them with loyalty points. The affiliate extensions on the market could not work this way, so we built the programme inside Magento, during the store’s rebuild on Magento 2 and Hyvä.
This article describes the need, the design choices and what the programme does. The whole project is told in the MaxOutil case study.
Why off-the-shelf affiliate modules were not enough
Most affiliate extensions for Magento can track a link and calculate a commission. MaxOutil needed more:
- commission rates set in the admin panel, with no development;
- commissions converted into loyalty points, not paid out in cash;
- participation limited to selected customers, chosen by MaxOutil;
- clear results, for the partner and for the MaxOutil team.
Bending an existing module to these four rules would have cost as much as a dedicated build, with third-party code to maintain at every Magento update. The programme also had to fit the store and the checkout without friction, and both were being rebuilt at the same time.
The principle: a partner shares a link and earns points
MaxOutil’s idea fits in one sentence: a partner shares a unique link to the store, orders placed through that link are tied to the partner’s account, and the commission earned converts into loyalty points.
Two design choices follow from it.
Flexibility first
- The partner role is switched on in the customer record, with a simple attribute.
- Commission amounts and thresholds are configurable.
- The conversion rate between commission and points can be changed at any time.
A simple partner area
In their customer account, on the store’s Hyvä front end, partners can:
- get and share their links;
- follow their clicks, conversions and earnings;
- ask to convert their commission into points once they reach the minimum threshold.
What we built
Partner activation by the admin
An admin can turn any customer into a partner by enabling the “Referral programme” attribute in the Magento admin. The default value is “No”, so nobody becomes a partner by mistake. To enable many partners at once, a script can update them in bulk.
Two commission models
- Order-based partners earn a commission on the full cart total placed through their link.
- Product-based partners earn a commission per product, when the shared link points to a product page.
With both models, MaxOutil can work with general influencers and with experts in one product family.
From commission to loyalty points
- The admin sets the exchange rate, for example €50 of commission for 10,000 points.
- Conversion is only possible above a minimum threshold, for example €50.
- The threshold avoids a flood of small requests and keeps the validation work low.
The admin dashboard
The MaxOutil team can:
- view and manage the list of partners and their type;
- set commission rates on product and cart prices, with or without French VAT;
- follow link performance (clicks and conversions);
- approve point conversion requests.
Under the hood
A role carried by a customer attribute
The partner role uses Magento’s native customer attributes. No new account type and no second login: a partner stays a customer of the store, with the same orders and the same history. Existing journeys do not change.
Link tracking protected against abuse
Each link carries a URL parameter specific to the partner. The order is tied to the partner through server-side session tracking, so each order reaches the right partner and the attribution cannot easily be manipulated.
Points logic inside Magento
The points conversion engine is custom code, connected to the store’s loyalty programme. MaxOutil keeps control of the rules without depending on an outside service.
Questions to settle before you build
An affiliate programme touches orders, loyalty and accounting. On this kind of project, we write these rules with the sales team before the first line of code:
- who can become a partner, and who decides;
- what the commission is based on (cart or product, with or without VAT);
- how it is paid (points, store credit, bank transfer) and above which threshold;
- what happens when an order is cancelled or returned;
- what partners see of their results, and what the internal team must approve.
Once these answers are written down, the build holds no surprises. It is the same approach as for the parent and child accounts we built for MaxOutil: the rules first, then what Magento lacks.
What the programme gives MaxOutil
The programme went live with the new Magento 2 and Hyvä store. MaxOutil has:
- a framework to grow its partner community, with no new development for each new partner;
- a view of the performance of each partner and each link;
- a lever for both traffic and loyalty, since commissions come back to the store as points.
The store itself carries more than 45,000 products on two sites (B2B and B2C), with Hyvä Checkout for payment. The details are in the MaxOutil case study.
And for your store?
If you want to run a partner network or link recommendations to your loyalty programme, Magento can do it, as long as you start from your rules and not from a generic module. See how we build Magento e-commerce websites, or our B2B e-commerce offer on Magento if your partners are also business customers.