Pergunta

I am using magento1.7.0.2 , want to perform some operation while user submit request for forgot password from frontend using event observer.

i tried customer_save_after is a event for adminhtml not for frontend.

any help would be appreciate!

Foi útil?

Solução

Try to play around with events:

To run your observer after reset password action

controller_action_postdispatch_customer_account_forgotpassword

and in your observer add checking if email is sent

$email = (string) $this->getRequest()->getPost('email');
if ($email) {
    //here place your code to notify customer
}

Outras dicas

Use eventcontroller_action_postdispatch_customer_account_forgotpasswordpost instead of controller_action_postdispatch_customer_account_forgotpassword

Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange
scroll top