Rohit Pareek
Rohit Pareek

Reputation: 1563

How can i get customer id after successfull signup?

I have make custom module in which I have make observer file. the observer file calls successfully after 'customer_save_after' event. Now I want to write some custom code on observer file. For this I want to get last save user id. for this I am using following code. "echo $id = Mage::getSingleton('customer/session')->getCustomer()->getId();" But nothing is print by this. How can I get the customer id here?

Upvotes: 0

Views: 3121

Answers (1)

Jevgeni Smirnov
Jevgeni Smirnov

Reputation: 3797

Well, you'd better extract the customer from observer. The good piece of code might be here

Upvotes: 2

Related Questions