Magento - Programmatically change system attributes

Another quickie. If you are ever in a situation where you need to change any of the magento attributes (system or otherwise) Here is a quick way to accomplish the task. In my case I needed to switch Size and Color back to their defaults that ship with Magento in…

Magento - Create a select list of all Categories with children

I am in the later process of a large custom extension for a client and cleaning up a bit of the UI for configuration. We were letting users just specify the Category ID of the Parent Category which was very cumbersome. So I wrote this nice little recursive function to…

Magento Dynamically Removing Admin Menu Items/Options

I had a need the other day to remove a menu item from a custom extension I was working on when the configuration was in a particular state. To accomplish it I was able to add a method to my observer which completely removed the menu item (and didn't leave…