Understanding Magento event types

Working with event listeners is better than rewriting a core class. When analyzing a process, it is good to think about how you can do it and if it is possible to work with the Magento events.

Before we can do that, we have to see which events are available, when they are dispatched, and which parameters are sent with the event.

Getting ready

In this recipe, we will explore how the Magento event system works. We will use the Magento log system to debug a core class to see which events are available and when they are dispatched.

How to do it...

Follow the ensuing instructions to see the event system in action:

  1. When debugging something, it is recommended that you enable Magento logging. You can do this by configuring ...

Get Magento 1.8 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.