Papaya Posted May 25, 2010 Share Posted May 25, 2010 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?Thanks! Link to comment Share on other sites More sharing options...
Papaya Posted May 25, 2010 Author Share Posted May 25, 2010 Nobody can help me? Please! Link to comment Share on other sites More sharing options...
Papaya Posted May 25, 2010 Author Share Posted May 25, 2010 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 More sharing options...
rocky Posted May 26, 2010 Share Posted May 26, 2010 You're writing it the wrong way. It should be written like the following: <input type="text" name="text" value="{$smarty.get.mailaddress}" /> Link to comment Share on other sites More sharing options...
Papaya Posted May 26, 2010 Author Share Posted May 26, 2010 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?thanks Link to comment Share on other sites More sharing options...
rocky Posted May 26, 2010 Share Posted May 26, 2010 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 More sharing options...
Papaya Posted May 26, 2010 Author Share Posted May 26, 2010 Rocky, do not worry, I solved!Thanks! As always you are the savior of us all! Link to comment Share on other sites More sharing options...
sebbsnow Posted May 28, 2010 Share Posted May 28, 2010 Hello Papaya,How did you solve it ?It works for the first person but it bugs if you add more...Could you help me on this..? Link to comment Share on other sites More sharing options...
Papaya Posted May 28, 2010 Author Share Posted May 28, 2010 Hi sebbsnow,I tried to invite three people at once and haven't had problems.What is your problem? Link to comment Share on other sites More sharing options...
Raggy786 Posted July 13, 2010 Share Posted July 13, 2010 where do you actually put this code EDIT: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 More sharing options...
mytheory. Posted November 4, 2010 Share Posted November 4, 2010 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.Thanks! Link to comment Share on other sites More sharing options...
fuskoz Posted June 15, 2013 Share Posted June 15, 2013 I also need help on this issue. I'm using PS 1.5 I'm new on prestashop and really appreciate any guidance on this. thank you to all of you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now