I would like to be able to run some functionality with a module
that I am building whenever a customer registers
an account, but I can\'t seem to f
You can try customer_save_after, the only thing that the registration sends this event twice
You can use the customer_register_success event. It is triggered after the customer is succesfully created. Here is the link of event cheat sheets. Hope it also helps you.
http://www.nicksays.co.uk/magento-events-cheat-sheet-1-7/
The answer to this question is that there isn't an event for that.
customer_save_after
is the event which gets called after a new customer registration
.
Read about all the events
here:
http://www.magentocommerce.com/wiki/5_-_modules_and_development/reference/events
I discovered how to achieve this today. It involves using one of the generic controller events. This node in the config.xml
will hook into the right event:
<events>
....
<controller_action_postdispatch_customer_account_createPost>
<observers>
<your_module_here>...etc
The controller_action_postdispatch_REQUESTPATH
event is thrown for every controller that extends Mage_Core_Controller_Front_Action
(which is basically all of them) which makes it very easy to target. Ditto for controller_action_predispatch_REQUESTPATH
.
customer_register_success
is the event dispatched after successful customer registration.
Here's from the code from Mage/Customer/controllers/AccountController.php
::454 in magento 1.8:
protected function _dispatchRegisterSuccess($customer)
{
Mage::dispatchEvent('customer_register_success',
array('account_controller' => $this, 'customer' => $customer)
);
}