Jump to content

Log in from Wordpress to Prestashop


Recommended Posts

It is, but it takes a lot of modification on the wordpress end. Basically you override the wordpress login api and make it use Prestashop's. Then you have to include the Prestashop cookie on wordpress pages as well. 

  • Like 1
Link to comment
Share on other sites

Solved! I just copied the code in a box html:

<form id='login_form' class='box' method='post' action='http://localhost/prestashop/es/autenticacion'>

<h2 class='page-subheading'>Login</h2>
<div class='form_content clearfix'>
  <div class='form-group form-error'>
	<input id='email' placeholder='email' class='is_required validate account_input form-control' type='text' value='' name='email' data-validate='isEmail'>
  </div>
  <div class='form-group'>
        <span>
	<input id='passwd' placeholder='contraseña' class='is_required validate account_input form-control' type='password' value='' name='passwd' data-validate='isPasswd'>
	</span>
  </div>
<p class='submit'>
  <input class='hidden' type='hidden' value='my-account' name='back'>
  <button id='SubmitLogin' class='button btn btn-default button-medium' name='SubmitLogin' type='submit'>
    <span>
      <i class='icon-lock left'></i>
       Login
    </span>
  </button>
</p>	
<p class='lost_password form-group'>
  <a rel='nofollow' title='Recuperar la contraseña' href='http://localhost/prestashop/es/contrasena-olvidado'>Forget pwd</a>
</p>
</div>
</form>
Link to comment
Share on other sites

  • 4 months later...
×
×
  • Create New...