housome Posted October 9, 2012 Share Posted October 9, 2012 (edited) Hi everybody! I create by myself a code on the mainpage for connexion. Unfortunatly, the submit button (or the form fields) are not working well. When a customer enter his email and password, he is redirected on the official login page (authentication). Here is my code (withous CSS). I put it in my footer and position-it with "position: absolute": {if $page_name == 'index'} <div class="iframelogin"> {include file="$tpl_dir./errors.tpl"} <div id="custom_login"> <table width="580" height="248" border="0" class="custom_login_main"> <tr> <td width="333" height="182" class="custom_login_bloc1"><h2> {l s='Sign-in' mod='tmtextblock'}</h2> <p class="custom_login_must"> {l s='Customers must login to see specials and promotions' mod='tmtextblock'}</p> <p class="custom_login_must"> </p> <p class="custom_login_must"><span class="custom_login_bloc2">{l s='Email' mod='tmtextblock'} </span> <form action="http://housome.com/iam/en/authentication" method="post" id="login_form" class="std"> <input name="login" type="text" class="custom_login_user" id="email" name="email"> </p> <p class="custom_login_must"><span class="custom_login_bloc2">{l s='Password' mod='tmtextblock'} </span> <input type="password" class="custom_login_forms" id="passwd" name="passwd"> </p></td> <td width="237" class="custom_login_bloc1"><h2> {l s='Why sign-up ?' mod='tmtextblock'}</h2> <div class="sexy_line"></div> <p class="custom_login_bloc2">{l s='Access to promotions' mod='tmtextblock'}<br /> {l s='Exclusive specials' mod='tmtextblock'}<br /> {l s='Cocktails and events' mod='tmtextblock'}<br /> {l s='Account management' mod='tmtextblock'}<br /> {l s='Order status' mod='tmtextblock'}<br /> <br /> <br /> </p></td> </tr> <tr> <td class="custom_login_bloc3"><span class="custom_login_forgot">{l s='Forgot your password ?' mod='tmtextblock'}</span> <input type="submit" name="submitLogin" id="SubmitLogin" value="{l s='Sign in' mod='tmtextblock'}" class="custom_login_signin" /></td> </form> <td class="custom_login_bloc3"><div id="submit"><input type="submit" name="submitLoginTracking" value="{l s='Create an account' mod='tmtextblock'}" class="custom_login_singup" /></td></div> </tr> </table> </div> <script type="text/javascript"> if (document.getElementById('email')) document.getElementById('email').focus(); </script> </div> {/if} There is no information outside on the web and I put several hours on that little simple problem. Thanks to everyone for check it out! Marc EDIT: I forget to say, I use prestashop 1.4.9 Edited October 9, 2012 by housome (see edit history) 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