Codegento Who Let Mage Out Of The Cage?

4Apr/1114

Observers and Dispatching Events

Posted by Ben Robie

As stated in many previous posts, it is not a wise idea to modify core code. There are basically three ways to extend/change the behavior of Magento and since copying Mage files down into the local code pool is the last resort, and we have already talked about rewriting, I thought I would try my [...]

Read More...
15Mar/119

Joining An EAV Table (With Attributes) To A Flat Table

Posted by Ben Robie

If you have created a “custom” flat table that has a foreign key to an existing Magento EAV table, you might come across the need to join the two together. If you main table is the flat table, you will find it difficult to join the two using existing Magento code. Below is a snippet [...]

Read More...
15Mar/110

Debugging Translations

Posted by Ben Robie

When your store is dealing with multiple translations, sometimes you just want to see a list of which translations are coming from what modules. Magento doesn’t offer a way to get this information without editing the core, so what I am about to do should only be done for debugging and then removed. First, located: [...]

Read More...
27Feb/114

Install Scripts and Upgrade Scripts

Posted by Soumya Shetty

Install scripts are a way provided by Magento to systematically track and version database changes. The changes can vary from schema changes like adding and dropping of tables, columns and even data. It is a good practice to write install scripts for any database changes made by your application. In this article i will talk [...]

Read More...
20Feb/113

Code Pools – What Are They?

Posted by Ben Robie

One of the ways that Magento solved the problem of having a core code base that is not only well designed, but extendable is through the idea of code pools. On a fresh install of Magento, you will see the directory structure of magento |_app |_code |_community |_core |_local All of Magento’s code exists in [...]

Read More...