There are some cases where you will wish to disable Magento event. For example, in one our projects we decided to disable all “Mage_Log” events in order to decrease number of sql queries to the database. We will describe the …
There are some cases where you will wish to disable Magento event. For example, in one our projects we decided to disable all “Mage_Log” events in order to decrease number of sql queries to the database. We will describe the …
The main idea behind this article is something I previously wrote, making your extensions more distributable, less error prone, less depended, less intrusive. Such extensions are then more “safer” to be fetched and installed via Magento Connect. When I say …
The way I see it, there are two type of extensions for Magento (or even any other eCommerce solution): Community Free/Commercial extensions Custom extensions Community Free/Commercial extensions would be all those extensions that you can either freely download/install trough various websites or official Magento connect or purchase from the developer if they are commercial. Custom [...]
As we all probably know, there are some events in Magento that are dispatched by default. We can easily hook on those events, but this is not a subject of this article. What we are going to try now is to add custom event before and after some action in some of Magento’s controllers. That [...]
It’s quite easy to add event observer in Magento with the use of config files (see Magento events on_create and on_update). However it might be desired to add observers during runtime and this requires a bit more work. Magento utilises publish/subscribe pattern with the use of a message broker storing observers data in the Mage_Core_Model_App::_events [...]
Trying to find the right event to hook into can at times be a little bit daunting. There are some great resources out there to get you started: Magento…