Jump to content

petkow

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Location
    Madrid
  • Activity
    Project Owner

petkow's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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: http://www.prestashop.com/forums/topic/204227-webservice-and-check-if-user-is-logged-in/ http://www.prestashop.com/forums/topic/156218-solvedish-integrating-prestashop-into-a-pre-developed-website/ http://www.prestashop.com/forums/topic/230605-is-it-possibile-to-integrate-login-and-user-address-from-external-app/ http://www.prestashop.com/forums/topic/231938-forcing-access-to-prestashop-via-another-website/
×
×
  • Create New...