CustomizeMagento using Event/Observer
OOP way is overriding methods by subclassing Magento’s coreBlocks and Models
Event-Observer methodology, Magento has been programmed toraise events in crucial areas of the flow Using these events for customizationscan keep upgrading a much more simple task that does not require fiddlingaround with Magento’s core source code.
Terminology
Event AnEvent is something that occurs in a certain place during a particular sequenceflow.
Observer AnObserver is an event handler. It listens to any event it is attached to andaccordingly reacts to the event.
Customization - UsingEvents vs. Overriding classes
Simply put, think about overridingexisting core logic if you need to completely change or if you need to extendcore logic and your new logic is going to be reused elsewhere. Use events if you are fine with existinglogic provided by Magento and need to add to the core logic.
Example Usage