Jump to content

prestashop user account with wordpress


Recommended Posts

Hi there,

I was wondering if I can have those people who registered in my prestashop would have another account created in my wordpress site as well automagically. for example I create an account

EMAIL/USERNAME : [email protected]
PASSWORD : password


the above details would be created in my wordpress blog as well without me creating the account for him/her. this would make my customers to be able to login to my wordpress blog as well..

is this doable?
Link to comment
Share on other sites

This may be difficult, since I don't know what encryption Wordpress uses for its passwords. If it is just a plain unsalted MD5, then you could add code like the following in authentication.php:

Db::getInstance()->Execute("INSERT INTO `wp_customer` (`email`, `password`) VALUES ('".$customer->email."', MD5('".Tools::getValue('passwd')."'))");



You will need to give me information about how the accounts are stored in WordPress for me to be more specific.

If they are using different databases, it will be more difficult, since you will need to establish a connection to another database first before you can run a query.

Link to comment
Share on other sites

  • 2 months later...
  • 7 months later...
  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...