prestashopBridge
prestashopBridge copied to clipboard
FIX - Login for prestashop 1.7.7.8
Hi guys, I would like to share a login fix for the 1.7.7.8 I'm using this script for a while, it was working on prestashop 1.7.2, but on a recent update it stopped working. I checked the Context class and I saw that there is something new. You should add this at the end of the login function in the bridge, after writing the cookies and before returning:
$ctx->cookie->registerSession(new CustomerSession());
Hope it helps! ;)