Chris Norton

Register Log in

Archive for the ‘Tips’ Category

As part of a larger modification I have been working on I decided to use straight database queries from inside Magento rather than try and find out (and spend time debugging) what the proper “Magento way” to achieve the same thing was. After a bit of investigation I came up with what I think will be most generally useful and should work from almost anywhere in a Magento system.

Read the rest of this entry »

Yesterday at work I spent far too much time working on getting an accordion vertical navigation working in a new Magento design. In the interest of public education, here’s a walkthrough of how I went about getting this to work.

Read the rest of this entry »

Today I discovered a problem with the way Magento allows you to upload images to attach to products: whenever I attempted to do so my entire browser would crash. (I’m using Firefox 2 on Linux.) Booting into Windows and using IE7 didn’t suffer from this problem so it was clearly an issue with Firefox. Looking into it a bit further, Magento uses Flash/Flex to allow file uploads so this is likely the root cause of the issue.

Upgrading to the latest version of Flash - 9.0.124.0 at the time I wrote this - solves the problem and allows image uploads. So if you’re having issues with getting this feature to work in Firefox I’d suggest upgrading Flash as the first thing to try.

The last few months I have been keen to move my existing version control activities over to Bazaar, away from Subversion. Today that desire was rather firmly set in stone when I discovered that Bazaar doesn’t create a .bzr directory under every subdirectory in the tree like Subversion does with its .svn directories. This makes things so much easier to work with when you have to, say, upgrade your version of Wordpress and you need to use FTP to transfer the files. Clearly you don’t want to transfer your VCS data as well so previously I had resorted to creating a sync script that disregarded the unwanted directories. So, thank you Bazaar for making my life that little bit easier!

I am having some issues with the Magento translation tool - mostly that it doesn’t allow for version 1.0 translations - so I am posting this unofficial translation here. It’s fairly complete spelling-wise and is only lacking a look over for grammatical changes and places where entirely different words are used, rather than just a spelling change. An example that springs to mind is “State/Province” possibly being changed to “State/Territory”.

Read the rest of this entry »

Update: Please note that en_AU is now included by default in Magento so all this is unnecessary.

Simple tip here on how to enable the “English (Australia)” locale in Magento: simply go to app/etc/config.xml and, under config->global->locale->allow->codes add in the text <en_AU/>. Your config file should have something similar to the following:

<config>
    <global>
        <locale>
            <allow>
                <codes>
                    <en_AU/>

You can even do this before installation to allow the selection of the Australian locale during the install process.