I would like to create a promocode for customer successful registration. so i have used customer_register_success to observe the registration success event.


<?xml version="1.0" encoding="UTF-8"?>


* Auto  Promo Code Generator 
class Promocustomer_Promogeneration_Model_Observer {

    public function promocode($observer){
        $event = $observer->getEvent();
        $customer = $event->getCustomer();
        $email = $customer->getEmail();
            $message= "Successfully Registered";
            $message= "Error In Register";
        echo $message;

My question is, why the event is not working? and when the event will trigger? Can someone give me the solution for this questions.


  • do you have activation file of your module defined ? Sep 19 '15 at 8:04
  • yes i have @RajeevKTomy
    – Gayathri
    Sep 19 '15 at 8:06
  • actually the error is in the customer registration process, i have corrected it... so its working fine now.. Thanks for the help
    – Gayathri
    Sep 19 '15 at 8:08
  • if your issue resolved, please put it as an answer and accept it. Sep 19 '15 at 8:09

For Me, the problem was in app/etc/modules/MyModuleNameSpace_ModuleName.xml


should be changed to


capitalize the P and all is well!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.