airwiches Posted October 3, 2014 Share Posted October 3, 2014 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 More sharing options...
hpar Posted October 6, 2014 Share Posted October 6, 2014 It's because PS checks for the shop id in the superglobals. I have bundled a lib for handling login from external page: https://github.com/hparfr/prestashopBridge/ Link to comment Share on other sites More sharing options...
sarfaraz.r1406 Posted October 6, 2014 Share Posted October 6, 2014 Checkout https://docs.oneall.com/plugins/guide/social-login-prestashop/. Link to comment Share on other sites More sharing options...
airwiches Posted October 6, 2014 Author Share Posted October 6, 2014 Thank you very much!! I will investigate your option hpar. sarfaraz.r1406 your option is very interesting but I don't access from social media website. I will answer with my progress. 1 Link to comment Share on other sites More sharing options...
mserra Posted May 10, 2018 Share Posted May 10, 2018 Hi @airwiches have you find a good way to login from exernal website? I read https://github.com/hparfr/prestashopBridge and http://blog.hpar.fr/2014/08/14/Authentification-externe-prestashop/ but I need some help to understand how to use prestashopBridge using my own PHP application. @hpar, can you provide some example? Thank's in advance Link to comment Share on other sites More sharing options...
razaro Posted May 10, 2018 Share Posted May 10, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now