hellykun Posted February 23, 2017 Share Posted February 23, 2017 (edited) Dear all, is there any function that get the customers' username (email) and password as an input, and returns if this customer is an existing customer or not ? This will be added in a PHP script that retrieves the username and password with GET function, using core prestashop functions. using prestashop 1.6.1.10. Thank you, Best Regards. Edited February 23, 2017 by hellykun (see edit history) Link to comment Share on other sites More sharing options...
hellykun Posted February 23, 2017 Author Share Posted February 23, 2017 No problem I have found a way. $customer = new Customer(); $email = " "; $passwd = " "; $authentication = $customer->getByEmail(trim($email), trim($passwd)); if the customer does not exist then false is returned 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