Jump to content

[SOLVED] Referral Program - remember friend's mail


Recommended Posts

Hello guys,

I absolutely need your help!
I want to make sure that the user is logged through the invitation of his friend has a way to find the email address of the friend already 'in the field of registration.

And not to copy and paste the e-mail address from the received mail of invitation.
Just because many people forget to put it. So I wish it can be automatic.

Is it possible?


Link to comment
Share on other sites

I could probably figure out how to do .. but I need your help.

If I use this code could fail to recall the email.

<Input type = "text" name = "test" value = "<? Php echo $ _GET ['mailaddress'] ?>"/>

But once I put it in authentication.tpl gives me error ..

How could I do? Or where should I put this code?

Link to comment
Share on other sites

Hello Rocky,

thanks for your advice, but I can not solve ..

This is the code that I put in the authentication.tpl ..

 (LS =''model = 'referralprogram')  label> /> 
 <Input type = "Text" size = "20" maxlength = "70" class = "Text" id = "referralprogram" name = "referralprogram" value ="{$smarty.get.mailaddress}" "(if isset ($ smarty.post.referralprogram) $ smarty) ( . post.referralprogram | escape: 'htmlall': 'UTF-8') (/ if) "style =" width: 221px; "/>

I have done something wrong?


Link to comment
Share on other sites

Try this:

<input type="text" size="20" maxlength="70" class="text" id="referralprogram" name="referralprogram" value="{if isset($smarty.post.referralprogram)}{$smarty.post.referralprogram|escape:'htmlall':'UTF-8'}{elseif isset($smarty.get.mailaddress)}{$smarty.get.mailaddress|escape:'htmlall':'UTF-8'}{/if}" style="width: 221px" />

Link to comment
Share on other sites

  • 1 month later...

where do you actually put this code :)


I have a secure site, which means SSL is activated, when people are invided via the referral and the link sent to them is http instead of https? anyways of changing it to https when they click on the link?

Link to comment
Share on other sites

  • 3 months later...

I would also like to know how you solved this... I've tried the code change presumably in the /modules/referralprogram/authentication.tpl, but to no avail. The emails send fine, but the customer clicks the link to the "create an account" page the email address is not automatically filled in.


Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...