How to disable Magento event

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 …

Read more

How you could build your Magento extensions without view files

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 …

Read more

Rendre le message cadeau payant – magento

Aujourd’hui je vous propose un petit module que j’ai développé pour rendre le message cadeau payant l’idée est d’ajouter un produit « Message cadeau » au panier si le message est spécifié lors du passage de la com…

Developing extensions that react unobtrusively with Magento

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 [...]

Dispatching before and after events to Magento core actions

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 [...]

Adding event observer on the fly

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 [...]

Quick Tip: Finding events or where has my event gone?

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…

 Continue →