jeffm Posted December 24, 2015 Share Posted December 24, 2015 How can I get the current User Name, and email address from within PHP code? 1 Link to comment Share on other sites More sharing options...
Daresh Posted December 24, 2015 Share Posted December 24, 2015 It should be in the $this->context->customer 1 Link to comment Share on other sites More sharing options...
jeffm Posted December 25, 2015 Author Share Posted December 25, 2015 (edited) Thanks so much for the quick reply! yes that worked for me! The exact data I needed was: $this->context->customer->firstname $this->context->customer->lastname $this->context->customer->email Edited December 25, 2015 by jeffm (see edit history) 1 Link to comment Share on other sites More sharing options...
iarilala Posted September 26, 2019 Share Posted September 26, 2019 Thank you very much, you really help me Link to comment Share on other sites More sharing options...
Steve_Chrs Posted January 27, 2020 Share Posted January 27, 2020 (edited) On 12/24/2015 at 11:22 PM, Daresh said: It should be in the $this->context->customer hello, I would like to make the same modification as Jeff. Can you tell me which PHP file to modify? please Edited January 27, 2020 by Steve_Chrs (see edit history) Link to comment Share on other sites More sharing options...
elho Posted November 15, 2022 Share Posted November 15, 2022 On 12/25/2015 at 8:44 PM, jeffm said: Thanks so much for the quick reply! yes that worked for me! The exact data I needed was: $this->context->customer->firstname $this->context->customer->lastname $this->context->customer->email Very helpful, thank you 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