AshleyIgnatiusYeo Posted September 30, 2016 Share Posted September 30, 2016 I'm trying to get the customers email to use as an argument in my function after their successful registration. public function hookActionCustomerAccountAdd($params) { return $this->myFunction($customerEmail); } I can add the function into the actionCustomerAccountAdd hook but how do I get the customer's email in as an argument? Tried looking for it through the documentations and forums but couldn't find an answer. Any help is greatly appreciated! Link to comment Share on other sites More sharing options...
Logical IT Posted September 30, 2016 Share Posted September 30, 2016 Hello, Try this: $params['newCustomer']->email Link to comment Share on other sites More sharing options...
AshleyIgnatiusYeo Posted October 3, 2016 Author Share Posted October 3, 2016 Ok that worked! Thanks! 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