0

when am creating a customer in magento (before creating the event observer),

after click on the register the following screen will appear.

enter image description here

after adding observer,the page link goes to http://mgstore/customer/account/createpost/ and gives output of the observer. how can i skip this step,and how can i get normal page like dashboard given above.

  • Remove the observer function from config.xml. Where is that event called from, which module/extension? – Adarsh Khatri Sep 1 '15 at 10:22
0

Alright, remove this from config.xml file.

<events> 
    <customer_register_success> 
      <observers> 
       <Wli_Registrationdemo_customer_register_success> 
          <type>singleton</type> 
          <class>Wli_Registrationdemo_Model_Observer</class> 
          <method>customerRegisterSuccess</method> 
       </Wli_Registrationdemo_customer_register_success> 
      </observers> 
     </customer_register_success> 
</events>

Hope this helps.

PS

If this observer is also doing some other stuff other than redirecting then will need to remove codes from observer.php too.

  • i removed observer as per above in config.xml ,but it not works – Rizwan Sep 1 '15 at 10:30
  • did u refresh cache? Also can you add your observer.php? – Adarsh Khatri Sep 1 '15 at 10:31
  • yes,after refreshing the cache,it works,but observer.php will not affecting. – Rizwan Sep 1 '15 at 10:35
  • Right, cheers then, glad it helped. – Adarsh Khatri Sep 1 '15 at 10:36
  • thanks,but what about observer.php,its not working now – Rizwan Sep 1 '15 at 10:37

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.