When a customer shares their referral link or code, their friend gets a discount on their first order in your store. With a link, the friend claims the gift in a couple of clicks, and the discount is applied to their cart automatically, so there's no code to copy. With a permanent code, they enter it at checkout or tell it to your staff in store. Either way, the friend experience is smooth: the discount waits for them until they're ready to order.
Opening a referral link
When a friend opens a referral link, a bubble appears next to the Loyalty Widget button with the offer, email field and a Claim button.
If the program requires an account, the friend sees Sign in and Create account instead of the email field.
The bubble appears once per browser session. If the friend closes it without claiming, a badge indicator appears on the widget button, and the gift is the first card inside the Loyalty Widget.
Claiming the gift
The friend's discount is applied to the cart automatically. They don't need to copy any code. The bubble confirms it: "10% off is active! Your discount is automatically applied."
If the discount doesn't apply to the cart yet, for example the cart is empty or below the minimum purchase amount, the widget says "10% off is saved. It will be applied automatically at checkout."
The discount also applies to purchases via Buy it now quick checkout.
When the gift isn't available
Instead of the gift, the friend sees an explanation:
New customers only — they've already ordered from your store;
You can't refer yourself — they opened their own link;
You've already received this gift — the gift was already used with their email;
We couldn't issue your gift right now — too many gifts were claimed from their network this week. They can try again later;
This gift is no longer available — the referral program was deactivated, or the link stopped working after the friend opened it.
You can change all these texts in On-site → Widget → Content → Referral program.
Using the permanent code
If the customer shared their permanent code, the friend enters it in the discount code field at checkout, or gives it to your staff in store. The friend gets the same discount as with the link.
Conditions of the discount
First order only. A customer whom Shopify recognizes at checkout and who already has orders doesn't get the discount.
Minimum purchase amount. If you set one in the Friend reward, an order below it gets no discount and doesn't count as a referral.
Validity. The friend's discount stays valid for the number of days set in Referral code validity, 30 by default. For the same period, the friend's browser remembers the referral link, so the gift waits for them if they come back later. If the discount expires unused, the friend can claim the gift again.
Shopping on another device
The friend's discount is saved in the browser where they claimed it. If they come back on another device or in another browser, they can open the same referral link again and enter the same email: the widget finds their gift and applies the same discount.

