Magento 2 Referral Widget: Recommendation Box with Link and Counter
SKU: REFERRALWIDGET1
- personal referral link with a counter on the product page and in the account
- copy the link or share it by email and messenger
- counter shows clicks and resulting orders
- texts, placement and visibility configurable per store view
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 Referral Widget: the recommendation box customers actually use
The Mironsoft Magento 2 Referral Widget puts a recommendation box exactly where customers are happy: on the product page and in the customer account. Each customer gets a personal referral link, copies it with one click or sends it by email. A counter shows how often the link was opened and how many orders it produced. The widget is built with Alpine.js, needs no extra library and can be switched on or off per store view.
Personal link
Every customer receives a short link of their own that attributes the referrals.
Copy and share
One click copies the link, or the mail client opens with a prepared text.
Counter in the box
Clicks and the orders that followed appear right inside the box.
Product page and account
The box sits under the add-to-cart button or in the customer account.
Your own texts
Headline, description and mail text are maintained per store view.
Guest protection
Guests only see the box if you allow it; links exist after login only.
Why a Magento 2 referral widget beats paid reach
A recommendation from a friend works differently from any advert. A customer who bought and liked a product will gladly pass it on if the way is easy. Magento offers no interface for this out of the box, which is why merchants search for a Magento 2 referral widget, a Magento 2 referral program or a way to let customers refer a friend.
Without a recommendation box, customers copy the product URL from the address bar and you never learn where a new visitor came from. With the Magento 2 Referral Widget every recommendation carries a unique sender. You see which customers really spread the word, without building a commission system.
A Magento 2 referral widget with a personal link
On first use the module creates a short, unguessable code for the logged-in customer. The link points to the current product page or to the home page, depending on the placement. When a visitor opens it, the shop stores the sender in a cookie with an adjustable lifetime. If the visitor orders within that period, the order is attributed to the referrer.
- Short code without personal data in the link
- Link points to product page or home page
- Cookie lifetime adjustable in days
Counter for clicks and orders inside the referral box
The box shows how often the link was opened and how many orders followed. Visible results motivate. The counter works without any third-party service and stores only the code, the time and the order number. Repeated opens by the same visitor within a short time count once so the number does not inflate artificially.
- Clicks and orders counted separately
- Duplicate visits are filtered
- No IP addresses, no third-party scripts
Magento 2 Referral Widget on product page and in the account
The recommendation box can appear in three places: on the product page below the buy button, in the customer account as its own menu item and on the order confirmation. You switch each place on separately. On the product page the link leads straight to that item, on the confirmation page rather to the home page. The layout adapts to mobile screens in the Hyvä theme without touching template files.
- Three placements switchable individually
- Link target selectable per placement
- Responsive box built with Tailwind classes
Evaluation and blocking in the admin for your Magento 2 referral widget
In the admin you find a table of all referral codes with sender, clicks, orders and status. Abusive codes are blocked with one click, and the referrer's own orders can be excluded from the count. An export delivers the list as CSV for your analysis. Legal questions about cookies and consent are checked by the shop operator; the module ships its own notice text for that.
- Table with clicks, orders and status
- Own orders can be excluded
- CSV export and privacy notice text
Where a Magento 2 referral widget helps in everyday shop work
Typical situations in which recommendations have the biggest effect.
Activate loyal customers
Customers who order regularly see the box in their account and pass the link on to colleagues and family.
After the purchase
Satisfaction peaks on the order confirmation. The box invites customers to recommend the shop right there.
Strong single products
For products with enthusiastic buyers the link goes straight to the product page, so the friend sees the right offer at once.
New audiences
The counter shows which customers bring many new visitors and helps you choose people for targeted campaigns.
Magento 2 Referral Widget: without and with the module compared
The difference to copied address bars and chance hits.
| Topic | Without module | With Mironsoft Referral Widget |
|---|---|---|
| Sharing | Customer copies any URL | Personal link copied or mailed with one click |
| Sender | Unknown | Every visit is assigned to a referrer |
| Visible success | No | Counter for clicks and orders in the box |
| Placement | Not available | Product page, account, order confirmation |
| Control | None | Blocking, export and exclusion of own orders |
How we set up the Magento 2 Referral Widget for you
The process after you place the order.
Agreement
Together we decide where the box appears, how long the cookie lasts and which texts your customers see.
Installation
We install the module and activate the Magento 2 Referral Widget for your store views. Then we check the box in your Hyvä theme on desktop and smartphone.
Texts and mail
We adapt headline, description and mail template to your tone, per language.
Testing
We test link, cookie, counter and the case that a referral link opens for a disabled product.
Handover
Your team gets an introduction to the admin table, blocking and export.
Differences to the affiliate program and the exit popup
The affiliate referral module from Mironsoft runs a partner program with commissions and payouts. The Referral Widget stays deliberately simpler: it provides the recommendation box, counts clicks and orders and leaves out accounting. If you want a Magento 2 referral widget without commission logic, this is the right one.
The exit popup and the newsletter modules also have different jobs. All of them can be combined, and the widget runs with Alpine.js in the Hyvä theme without any additional library.
No download, but a personal setup
The Referral Widget is not listed here as a finished download to install yourself. The purchase is a commission: we contact you after the order, install the module in your shop and agree on placement, cookie lifetime and texts together with you.
Frequently asked questions
Everything important about link, counter, privacy and how the purchase works.
How can I set up a Magento 2 referral widget?
How can I create a referral link for customers in Magento 2?
How do I know which orders came from a referral?
Can I exclude the referrer's own orders?
Do guests need an account to refer someone?
Is there a commission or voucher for the referrer?
Is the Magento 2 referral widget privacy compliant?
Does the Magento 2 Referral Widget work with Hyvä?
What happens when a referral link expires or is blocked?
Can I download and install the module myself?
Magento 2 Referral Widget – Mironsoft