housome Posted October 9, 2012 Share Posted October 9, 2012 (edited) Bonjour à tous! J'ai créé moi-même un bloc de connexion pour la page principale. Malheureusement, lorsqu'on entre son adresse mail et son mot de passe, on est redirigé vers la page de connexion officielle sans résultat (authentication). Voici mon code (sans le CSS). Je l'ai mis dans mon footer et je l'ai positionné en haut de page avec "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} Il n'y a pas d'information sur le web, et j'ai mis tellement d'heure sur ce petit problème. Merci à quiconque y jettera un oeil! J'utilise prestashop 1.4.9 Marc Edited October 9, 2012 by housome (see edit history) Link to comment Share on other sites More sharing options...
fluxy12 Posted October 24, 2012 Share Posted October 24, 2012 J'ai exactement le même pb ... ça m'interesse 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