sparh Posted February 23, 2021 Share Posted February 23, 2021 Bonjour, j'aimerai mixer la page de connexion et d'inscription en une seule. Quelque chose comme ça Dans mon thème templates/customer/authentification.tpl j'avais ça {extends file='page.tpl'} {block name='page_title'} {l s='Log in to your account' d='Shop.Theme.Customeraccount'} {/block} {block name='page_content'} {block name='login_form_container'} <section class="login-form"> {render file='customer/_partials/login-form.tpl' ui=$login_form} </section> <hr/> {block name='display_after_login_form'} {hook h='displayCustomerLoginFormAfter'} {/block} <div class="no-account"> <a href="{$urls.pages.register}" data-link-action="display-register-form"> {l s='No account? Create one here' d='Shop.Theme.Customeraccount'} </a> </div> {/block} {/block} et j'ai essayé de remplacé par ça {extends file='page.tpl'} {block name='page_title'} {l s='Log in to your account' d='Shop.Theme.Customeraccount'} {/block} {block name='page_content'} {block name='login_form_container'} <section class="login-form"> {render file='customer/_partials/login-form.tpl' ui=$login_form} </section> <hr/> {block name='display_after_login_form'} {hook h='displayCustomerLoginFormAfter'} {/block} <div class="no-account"> {block name='register_form_container'} {$hook_create_account_top nofilter} <section class="register-form"> <p>{l s='Already have an account?' d='Shop.Theme.Customeraccount'} <a href="{$urls.pages.authentication}">{l s='Log in instead!' d='Shop.Theme.Customeraccount'}</a></p> {render file='customer/_partials/customer-form.tpl' ui=$register_form} </section> {/block} </div> {/block} {/block} Mais évidemment ça ne fonctionne pas. Auriez-vous une idée 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