Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to get customer email from $customer object? 
 
atomicr00ster
Jr. Member
 
Total Posts:  5
Joined:  2009-09-28
 

So I have this:

$customer Mage::getSingleton('customer/session')->getCustomer();

When I print $customer, I can see the email in the mess of data… but I can’t figure out the functions necessary to get the email address from the customer object.

Basically, I’m trying to set a cookie of their email address whenever they log in.

 
Magento Community Magento Community
Magento Community
Magento Community
 
atomicr00ster
Jr. Member
 
Total Posts:  5
Joined:  2009-09-28
 

Awesome, thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top