When registering a user (logging in immediately after login), a modal window should be displayed!

To track user registration, I used customer_register_success

Created in config:

  <events> <customer_register_success> <observers> <mymodule_customer_register_success> <type>singleton</type> <class>hexbrain_tweaks/customer</class> <method>customerRegisterSuccess</method> </mymodule_customer_register_success> </observers> </customer_register_success> </events> 

Created a Customer model, and in it a method:

 public function customerRegisterSuccess(Varien_Event_Observer $observer) {} 

Everything works, and when registering a user, the method in the model that I created is executed!

But my modal window is created when accessing the controller action (for example, another modal window is created when you click on the button when the action is accessed in this way onclick="openPopUp('<?php echo Mage::getUrl('mp/mymodal/contact')?> );

How so (for example, the same action) can be performed when switching to the customerRegisterSuccess method ?

I would be grateful for the tip!

  • one
    reformat the question a little is not clear what exactly do you want? - Naumov
  • @Naumov, thanks for the response) already figured out! - Maybe_V

0