Monthly Archives: August 2010

Magento: Event Observer Scope

I learned a valuable lesson this weekend (the hard way of course) when it comes to event observers in Magento. You’ve got 3 different places to setup your event observers in your config.xml file of your modules. They are as … Continue reading

Posted in Magento | 8 Comments

Magento: Adminhtml Theme Setting Change In 1.4.1

I’ve been working on a new module today, and I needed to modify a couple different adminhtml templates. So, I did what I usually do and put the following code in my config.xml: <config> … <stores> <admin> <design> <package> <name>default</name> … Continue reading

Posted in Magento | 3 Comments

Magento: Enable Editing Order With Configurable, Grouped, and Bundled Products?

I was working with a friend yesterday who was working on a website that used a lot of grouped products, but also had the need to be able to edit orders in Magento. The bummer thing about Magento and editing … Continue reading

Posted in Magento | 2 Comments

Cool Mac App Idea? A Better Log Viewer

On my computer, I have a bunch of Magento installs that I work on here and there. I probably have 12 sites on here right now, all being Magento sites. Each Magento install has 2 files that I monitor: var/log/system.log … Continue reading

Posted in Mac OS X | 1 Comment

Magento: Learn By Magento’s Own Examples

I can’t say it enough: If you are working on Magento programming, you have a gold mine right in front of your face. The best way to create new functionality for Magento is to create a module. But that begs … Continue reading

Posted in Magento | 3 Comments

Magento: Running on Nginx

Typically, on both my local development environment, and on the servers I deploy most Magento sites on, I am running on the Apache web server. We recently decided to try installing Nginx on a server to see how well it … Continue reading

Posted in Magento, Nginx | 3 Comments

Git: Removing All .svn Files

I am just starting to get into git, so I’m still quite new with it. It definitely seems like it will end up being worth switching from svn to git. I just started up a new Magento project, and the … Continue reading

Posted in Git, Magento | 5 Comments

Mysql: Duplicate a Database

I needed to duplicate one of my mysql magento databases today. Instead of dumping it to my computer, then sending it back into a different database, I figured there’s got to be a more efficient way to do it. Fortunately … Continue reading

Posted in MySQL | Leave a comment

Magento Install: Mysql Error – SQLSTATE[HY000] [2002] No such file or directory

I recently changed up the configuration of my Mac (running 10.6.4) and I was installing a fresh copy of Magento (1.4.1.1) when I ran into the following error when I got to the database credentials: SQLSTATE[HY000] [2002] No such file … Continue reading

Posted in Magento, MySQL, PHP | 11 Comments

Magento: Add Encryption Type When Uploading Files in Admin

I am in the process of building a module with a custom interface for some custom data. One thing that it has to do is have the ability to upload an image for each record, very similar to uploading an … Continue reading

Posted in Magento | 1 Comment