Jump to content

Login in Prestashop from external website


airwiches

Recommended Posts

Is it possible to do login in prestashop from external website?

I've read something about this in old post http://tinyurl.com/q6r2nlh but this is a old version of prestashop.

I've tried it but it doesn't work.

One of my probles is that when I add

define("DS", '/');

require(".." . DS . "prestashop" . DS . "config" . DS . "config.inc.php");

the web reditect automatically to prestashop index.php, and all of my code is ignored.

Other method, that I have tried is make a form and send by pos email and passwd, but I go to sign form and the inputs are fill but I have to push the submit button in form of login Prestashop.

Thank you

Link to comment
Share on other sites

  • 3 years later...

Hi @mserra

Welcome to the forum first :)

But note this is really old topic and code may not work, but could give you some idea.

I suggest that you create separate topic and explain what you need and with what PrestaShop version you work with.

My suggestion is to try WebService maybe  

http://doc.prestashop.com/display/PS16/Using+the+PrestaShop+Web+Service

There are some differences between 1.6 and 1.7 check this  post 

https://stackoverflow.com/questions/41528752/prestashop-1-7-webservice-login-customer?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Link to comment
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
×
×
  • Create New...