PrestaMathieu Posted June 20, 2017 Share Posted June 20, 2017 Hello, I would like to add the signin form on the header of my website ( instead of links). I have test to use code of authentification.tpl but it's not working. the form is diplay ok but when I valid, I am redirect to login page I have an other bug : Is it the same variable with Prestashop 1.7 because when I add a condition like {if $logged} {/if} I have an error ! Do you have any idea ? my code bellow (on header.tpl): Thanks a lot. <form action="{$link->getPageLink('authentication', true)|escape:'html'}" method="post" id="login_form" class="six columns"> <fieldset> <h3 style=" font-size:12px; color:black;">{l s='Identifiez-vous'}</h3> <div class="form_content clearfix" style="margin-left:20px;"> <div class="row"> <label for="email" style="padding-right:45px; font-size:12px;" >{l s='email'}</label> <input type="email" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" class="account_input" /> </div> <div class="row"> <label for="passwd" style="font-size:12px;">{l s='Password'}</label> <input type="mot de passe" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" class="account_input" /> <span class="submit"> {if isset($back)} <input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if} <input type="submit" id="SubmitLogin" name="SubmitLogin" class="button radius" value="{l s='ok'}" /> </span> </div> <div class="row"> <p style="clear:both; font-size:12px;" class="lost_password"><a href="{$link->getPageLink('password')}">{l s='Forgot your password?'}</a></p> </div> </div> </fieldset> </form> 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