Skip to main content
edited body
Source Link
Kenny
  • 1.4k
  • 8
  • 19

Answer has already been accepted but Ill post my answer anyway for the future:

If you want to see the list of events that Magento has you have 3 options:

1) Google for it, there are a lot of people who have compiled a list of Magento events

2) Create a module that hooks on the controller_action_predispatch event which is the event that is called before any other event is called. Inside this module you can log mostsome events that are dispatched:

Add the following on config.xml

<events> <controller_action_postdispatch> <observers> <controller_action_after> <class>yourmodule/observer</class> <method>hookToControllerActionPostDispatch</method> </controller_action_after> </observers> </controller_action_postdispatch> </events> 

And inside the yourmodule/Model/Observer:

public function hookToControllerActionPostDispatch($observer) { Mage::log($observer->getEvent()->getControllerAction()->getFullActionName()); } 

The above would log every event that is dispatched...

3) If you have SSH access you can run the following command to get an overview of all the events (and their files where they are dispatched):

cd /path/to/<magento-root> grep -nris 'dispatchEvent' app/code/ 

Answer has already been accepted but Ill post my answer anyway for the future:

If you want to see the list of events that Magento has you have 3 options:

1) Google for it, there are a lot of people who have compiled a list of Magento events

2) Create a module that hooks on the controller_action_predispatch event which is the event that is called before any other event is called. Inside this module you can log most events that are dispatched:

Add the following on config.xml

<events> <controller_action_postdispatch> <observers> <controller_action_after> <class>yourmodule/observer</class> <method>hookToControllerActionPostDispatch</method> </controller_action_after> </observers> </controller_action_postdispatch> </events> 

And inside the yourmodule/Model/Observer:

public function hookToControllerActionPostDispatch($observer) { Mage::log($observer->getEvent()->getControllerAction()->getFullActionName()); } 

The above would log every event that is dispatched...

3) If you have SSH access you can run the following command to get an overview of all the events (and their files where they are dispatched):

cd /path/to/<magento-root> grep -nris 'dispatchEvent' app/code/ 

Answer has already been accepted but Ill post my answer anyway for the future:

If you want to see the list of events that Magento has you have 3 options:

1) Google for it, there are a lot of people who have compiled a list of Magento events

2) Create a module that hooks on the controller_action_predispatch event which is the event that is called before any other event is called. Inside this module you can log some events that are dispatched:

Add the following on config.xml

<events> <controller_action_postdispatch> <observers> <controller_action_after> <class>yourmodule/observer</class> <method>hookToControllerActionPostDispatch</method> </controller_action_after> </observers> </controller_action_postdispatch> </events> 

And inside the yourmodule/Model/Observer:

public function hookToControllerActionPostDispatch($observer) { Mage::log($observer->getEvent()->getControllerAction()->getFullActionName()); } 

The above would log every event that is dispatched...

3) If you have SSH access you can run the following command to get an overview of all the events (and their files where they are dispatched):

cd /path/to/<magento-root> grep -nris 'dispatchEvent' app/code/ 
added 2 characters in body
Source Link
Kenny
  • 1.4k
  • 8
  • 19

Answer has already been accepted but Ill post my answer anyway for the future:

If you want to see the list of events that Magento has you have 3 options:

1) Google for it, there are a lot of people who have compiled a list of Magento events

2) Create a module that hooks on the controller_action_predispatch event which is the event that is called before any other event is called. Inside this module you can log each eventmost events that isare dispatched:

Add the following on config.xml

<events> <controller_action_postdispatch> <observers> <controller_action_after> <class>yourmodule/observer</class> <method>hookToControllerActionPostDispatch</method> </controller_action_after> </observers> </controller_action_postdispatch> </events> 

And inside the yourmodule/Model/Observer:

public function hookToControllerActionPostDispatch($observer) { Mage::log($observer->getEvent()->getControllerAction()->getFullActionName()); } 

The above would log every event that is dispatched...

3) If you have SSH access you can run the following command to get an overview of all the events (and their files where they are dispatched):

cd /path/to/<magento-root> grep -nris 'dispatchEvent' app/code/ 

Answer has already been accepted but Ill post my answer anyway for the future:

If you want to see the list of events that Magento has you have 3 options:

1) Google for it, there are a lot of people who have compiled a list of Magento events

2) Create a module that hooks on the controller_action_predispatch event which is the event that is called before any other event is called. Inside this module you can log each event that is dispatched:

Add the following on config.xml

<events> <controller_action_postdispatch> <observers> <controller_action_after> <class>yourmodule/observer</class> <method>hookToControllerActionPostDispatch</method> </controller_action_after> </observers> </controller_action_postdispatch> </events> 

And inside the yourmodule/Model/Observer:

public function hookToControllerActionPostDispatch($observer) { Mage::log($observer->getEvent()->getControllerAction()->getFullActionName()); } 

The above would log every event that is dispatched...

3) If you have SSH access you can run the following command to get an overview of all the events (and their files where they are dispatched):

cd /path/to/<magento-root> grep -nris 'dispatchEvent' app/code/ 

Answer has already been accepted but Ill post my answer anyway for the future:

If you want to see the list of events that Magento has you have 3 options:

1) Google for it, there are a lot of people who have compiled a list of Magento events

2) Create a module that hooks on the controller_action_predispatch event which is the event that is called before any other event is called. Inside this module you can log most events that are dispatched:

Add the following on config.xml

<events> <controller_action_postdispatch> <observers> <controller_action_after> <class>yourmodule/observer</class> <method>hookToControllerActionPostDispatch</method> </controller_action_after> </observers> </controller_action_postdispatch> </events> 

And inside the yourmodule/Model/Observer:

public function hookToControllerActionPostDispatch($observer) { Mage::log($observer->getEvent()->getControllerAction()->getFullActionName()); } 

The above would log every event that is dispatched...

3) If you have SSH access you can run the following command to get an overview of all the events (and their files where they are dispatched):

cd /path/to/<magento-root> grep -nris 'dispatchEvent' app/code/ 
Source Link
Kenny
  • 1.4k
  • 8
  • 19

Answer has already been accepted but Ill post my answer anyway for the future:

If you want to see the list of events that Magento has you have 3 options:

1) Google for it, there are a lot of people who have compiled a list of Magento events

2) Create a module that hooks on the controller_action_predispatch event which is the event that is called before any other event is called. Inside this module you can log each event that is dispatched:

Add the following on config.xml

<events> <controller_action_postdispatch> <observers> <controller_action_after> <class>yourmodule/observer</class> <method>hookToControllerActionPostDispatch</method> </controller_action_after> </observers> </controller_action_postdispatch> </events> 

And inside the yourmodule/Model/Observer:

public function hookToControllerActionPostDispatch($observer) { Mage::log($observer->getEvent()->getControllerAction()->getFullActionName()); } 

The above would log every event that is dispatched...

3) If you have SSH access you can run the following command to get an overview of all the events (and their files where they are dispatched):

cd /path/to/<magento-root> grep -nris 'dispatchEvent' app/code/