Jump to content
  • 0


I know the topic of integrating prestashop into another website with a common login has been discussed before in the forums, but I wanted to revive the discussion and see if there are any new ideas.


I have an existing website with its own user database that already has already has all the existing fields that would normally exist in the prestashop user database. A user would arrive to prestashop only through this existing website and only while already being logged onto it. One of the new options for him/her will be something like "Access the Shop". My thoughts are as follows:


1. Activate web services in my prestashop

2. Allow my existing website to consult if the user already exists in Prestashop (via the API) or if his/her existing record has any changes

3. Create a new record if the user does not exist or amend it if there are changes. This would occur without the user noticing by just reading data from my existing table and inserting into Prestashop via the API.

4. Log the user onto Prestashop seamlessly (thereby creating a new Prestashop cookie)

5. Disable all forms of access to the Prestashop login and Prestashop User area

6. On future logins I would also have to check if the user is already logged into Prestashop


Am I more or less on the right track? After spending a day investigating webservices, and downloading the PHP webservice library and some very useful PHP example files from https://github.com/PrestaShop/PrestaShop-webservice-lib  I am comfortable with stages 2 and 3. I then perform the login in stage 4 using the email and password from the existing session and sending it via POST to /index.php?controller=authentication


Is there an easier way to do all of this such as with a single sign on? Does anybody else have any leads or experience with doing something like this?


Thank you very much in advance.


p.s. The posts in the forum that I have consulted so far are:



Edited by petkow

Share this post

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi, this seams to be a unanswered question. Any pointers about how to solve this will be highly appreciated. I've been looking after LDAP or Open Directory modules for PrestaShop, but nothing seam to be available.


Share this post

Link to post
Share on other sites

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