Pelleque Posted February 14, 2018 Share Posted February 14, 2018 (edited) Buenas, estoy utilizando prestashop 1.6, he conseguido poner el pedido instantáneo, pero se puede seguir registrando. Quiero solo pedido instantaneo sin posibilidad de registro ni inicio de sesion. ¿Alguien sabe? Muchas gracias. Edited February 14, 2018 by nadie Moderación del foro edita el título del tema para ser más descriptivo con la duda (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted February 16, 2018 Share Posted February 16, 2018 En 14/2/2018 a las 3:40 PM, Pelleque dijo: Buenas, estoy utilizando prestashop 1.6, he conseguido poner el pedido instantáneo, pero se puede seguir registrando. Quiero solo pedido instantaneo sin posibilidad de registro ni inicio de sesion. ¿Alguien sabe? Muchas gracias. Hola, Es un tema que ya esta comentado varias veces en el foro en el pasado, pero comento de nuevo. A modo extremadamente chapuza de forma rápida puedes ocultarlos por css u directamente por TPL. Las dos formas son una chapuza, porque realmente estas ocultando no denegando. Aqui por ejemplo tienes indicado como ocultarlo en el TPL Prestashop 1.6 - Plantilla por defecto Fichero: /themes/default-bootstrap/authentication.tpl Buscar: <div class="row"> <div class="col-xs-12 col-sm-6"> <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box"> <h3 class="page-subheading">{l s='Create an account'}</h3> <div class="form_content clearfix"> <p>{l s='Please enter your email address to create an account.'}</p> <div class="alert alert-danger" id="create_account_error" style="display:none"></div> <div class="form-group"> <label for="email_create">{l s='Email address'}</label> <input type="email" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" /> </div> <div class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate"> <span> <i class="icon-user left"></i> {l s='Create an account'} </span> </button> <input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" /> </div> </div> </form> </div> <div class="col-xs-12 col-sm-6"> <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box"> <h3 class="page-subheading">{l s='Already registered?'}</h3> <div class="form_content clearfix"> <div class="form-group"> <label for="email">{l s='Email address'}</label> <input class="is_required validate account_input form-control" data-validate="isEmail" type="email" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" /> </div> <div class="form-group"> <label for="passwd">{l s='Password'}</label> <input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="" /> </div> <p class="lost_password form-group"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Forgot your password?'}</a></p> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium"> <span> <i class="icon-lock left"></i> {l s='Sign in'} </span> </button> </p> </div> </form> </div> </div> Comentar código con {* *} (no lo elimines por si en un futuro quieres usarlo, comentarlo via smarty) {* <div class="row"> <div class="col-xs-12 col-sm-6"> <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box"> <h3 class="page-subheading">{l s='Create an account'}</h3> <div class="form_content clearfix"> <p>{l s='Please enter your email address to create an account.'}</p> <div class="alert alert-danger" id="create_account_error" style="display:none"></div> <div class="form-group"> <label for="email_create">{l s='Email address'}</label> <input type="email" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" /> </div> <div class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate"> <span> <i class="icon-user left"></i> {l s='Create an account'} </span> </button> <input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" /> </div> </div> </form> </div> <div class="col-xs-12 col-sm-6"> <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box"> <h3 class="page-subheading">{l s='Already registered?'}</h3> <div class="form_content clearfix"> <div class="form-group"> <label for="email">{l s='Email address'}</label> <input class="is_required validate account_input form-control" data-validate="isEmail" type="email" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" /> </div> <div class="form-group"> <label for="passwd">{l s='Password'}</label> <input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="" /> </div> <p class="lost_password form-group"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Forgot your password?'}</a></p> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium"> <span> <i class="icon-lock left"></i> {l s='Sign in'} </span> </button> </p> </div> </form> </div> </div> *} --- Por cierto si estuvieras usando el proceso de pedido en 1 pagina y no en 5 pasos, edita tambien fichero: /themes/default-bootstrap/order-opc-new-account.tpl Busca: <h1 class="page-heading step-num"><span>1</span> {l s='Account'}</h1> <form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box"> <fieldset> <h3 class="page-subheading">{l s='Already registered?'}</h3> <p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">» {l s='Click here'}</a></p> <div id="login_form_content" style="display:none;"> <!-- Error return block --> <div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div> <!-- END Error return block --> <p class="form-group"> <label for="login_email">{l s='Email address'}</label> <input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" /> </p> <p class="form-group"> <label for="login_passwd">{l s='Password'}</label> <input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" /> </p> <a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button> </p> </div> </fieldset> </form> Comenta {* <h1 class="page-heading step-num"><span>1</span> {l s='Account'}</h1> <form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box"> <fieldset> <h3 class="page-subheading">{l s='Already registered?'}</h3> <p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">» {l s='Click here'}</a></p> <div id="login_form_content" style="display:none;"> <!-- Error return block --> <div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div> <!-- END Error return block --> <p class="form-group"> <label for="login_email">{l s='Email address'}</label> <input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" /> </p> <p class="form-group"> <label for="login_passwd">{l s='Password'}</label> <input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" /> </p> <a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button> </p> </div> </fieldset> </form> *} Busca: <div class="col-xs-12 col-md-6"> <p class="title_block">{l s='Create your account today and enjoy:'}</p> <ul class="bullet"> <li>- {l s='Personalized and secure access'}</li> <li>- {l s='A fast and easy check out process'}</li> <li>- {l s='Separate billing and shipping addresses'}</li> </ul> <p class="opc-button"> <button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button> </p> </div> Comenta: {* <div class="col-xs-12 col-md-6"> <p class="title_block">{l s='Create your account today and enjoy:'}</p> <ul class="bullet"> <li>- {l s='Personalized and secure access'}</li> <li>- {l s='A fast and easy check out process'}</li> <li>- {l s='Separate billing and shipping addresses'}</li> </ul> <p class="opc-button"> <button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button> </p> </div> *} Fichero: /themes/default-bootstrap/order-opc-new-account-advanced.tpl Busca: <h2>{l s='Account'}</h2> <form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box"> <fieldset> <h3 class="page-subheading">{l s='Already registered?'}</h3> <p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">» {l s='Click here'}</a></p> <div id="login_form_content" style="display:none;"> <!-- Error return block --> <div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div> <!-- END Error return block --> <p class="form-group"> <label for="login_email">{l s='Email address'}</label> <input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" /> </p> <p class="form-group"> <label for="login_passwd">{l s='Password'}</label> <input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" /> </p> <a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" id="SubmitLogin" name="SubmitLogin" data-adv-api="1" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button> </p> </div> </fieldset> </form> Comenta: {* <h2>{l s='Account'}</h2> <form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box"> <fieldset> <h3 class="page-subheading">{l s='Already registered?'}</h3> <p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">» {l s='Click here'}</a></p> <div id="login_form_content" style="display:none;"> <!-- Error return block --> <div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div> <!-- END Error return block --> <p class="form-group"> <label for="login_email">{l s='Email address'}</label> <input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" /> </p> <p class="form-group"> <label for="login_passwd">{l s='Password'}</label> <input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" /> </p> <a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a> <p class="submit"> {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} <button type="submit" id="SubmitLogin" name="SubmitLogin" data-adv-api="1" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button> </p> </div> </fieldset> </form> *} Busca: <div class="col-xs-12 col-md-6"> <p class="title_block">{l s='Create your account today and enjoy:'}</p> <ul class="bullet"> <li>- {l s='Personalized and secure access'}</li> <li>- {l s='A fast and easy check out process'}</li> <li>- {l s='Separate billing and shipping addresses'}</li> </ul> <p class="opc-button"> <button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button> </p> </div> Comenta: {* <div class="col-xs-12 col-md-6"> <p class="title_block">{l s='Create your account today and enjoy:'}</p> <ul class="bullet"> <li>- {l s='Personalized and secure access'}</li> <li>- {l s='A fast and easy check out process'}</li> <li>- {l s='Separate billing and shipping addresses'}</li> </ul> <p class="opc-button"> <button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button> </p> </div> *} -- Te subo un zip al foro con los tres ficheros. Si no ves los cambios limpia cache de presta en parametros avanzados -> rendimiento default-bootstrap.zip 1 Link to comment Share on other sites More sharing options...
Pelleque Posted February 18, 2018 Author Share Posted February 18, 2018 Que tío más grande. Muchas gracias 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