xavi Posted December 11, 2019 Share Posted December 11, 2019 Hello, I have created a customer through webservices, and now I want to create the customer session, in order to allow another module recover the customer information from $this->context->customer. Which is the proper way to do create a customer session? I have been reading the documentation but I haven't found any Customer::login() or similar. Thank you, xavi Link to comment Share on other sites More sharing options...
xavi Posted January 9, 2020 Author Share Posted January 9, 2020 You can make as follows: $customer = new Customer(); $customer->lastname = 'xxxx'; .... $customer->save(); $this->context->customer = $customer; 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