likuidfire Posted April 4, 2011 Share Posted April 4, 2011 Hi, I need to run some code after the user is registered in the prestashop. So I created the hookCreateAccount function but how do I access the information of the user that has just been registered? Link to comment Share on other sites More sharing options...
likuidfire Posted April 5, 2011 Author Share Posted April 5, 2011 So you mean I should write this in my hookCreateAccount function:global $cookie;$IdCustomer = intval($cookie->id_customer);But this gives me only an array, how do I go about fetching the email ID, address and all the other details? Link to comment Share on other sites More sharing options...
grafgraffy Posted October 26, 2011 Share Posted October 26, 2011 Check the statsdata module. You can access the customer id for example with $params['cookie']->id_customer :<) Link to comment Share on other sites More sharing options...
Carolyn56 Posted February 18, 2019 Share Posted February 18, 2019 (edited) On 10/26/2011 at 5:11 PM, grafgraffy said: Check the statsdata module. You can access the customer id for example with $params['cookie']->id_customer This blog is great check it out. www.9apps.red/ Edited February 18, 2019 by Carolyn56 (see edit history) 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