Download the Viral Loops for e-Commerce module for your Magento version.
Then you have to install it to your e-Commerce store (or ask your developer to install it for you)!
You (or they) will have to unzip the file you just downloaded and upload its contents to your root Magento directory.
Once that’s done, log-in to your Magento admin interface and from the top bar go to System → Configuration.
In the page that will load, find Viral Loops for e-Commerce on the left sidebar and click Settings.
In those settings, from the drop-down menu select "Yes" to “Enable Viral Loops, then fill-in your campaign ID and campaign API token which are:
Your Campaign ID: hjyLvlsyfeR6fJ5n34tLb0ZBnow
Your API token: T5fPvLKppnm5vRPCAEgRE0B1ARQ
Click Save Config and now the Viral Loops e-Commerce widget is live in your store!
How it works
Coupons are created automatically for referred customers (invitees) when they get to your store and provide their email in the In-app Referral widget or create an account.
When a referred customer completes a purchase, a coupon is created automatically for their referrer.
The coupons are delivered automatically to your customers via the In-app Referral widget that they can use in your e-Commerce store.
Do you want to find out more? Check out this article: How does the e-Commerce Referral work?