The random eclecticisms of loonytoons

Coding

Magento – add custom layout template

Current magento version – 1.3.2.4 This is what you need to do to add a new layout template, eg 4 column page layout. Copy app/code/core/Mage/Page/etc/config.xml to app/code/local/Mage/Page/etc/config.xml. Creating this new file will allow magento core updates to occure without over-writing your changes (you’ll probably have to look out for...

Read more

Magento – url functions

Current magento version – 1.3.2.4 Magento had some very handy functions that easily allow you to find some fundamental urls of your site from your phtml files so you can avoid hardcoding them. These are: $this->getBaseUrl() – returns the base url of your store (funnily enough) $this->getSkinUrl() – returns...

Read more

Introduction to Magento

Current magento version – 1.3.2.4 This is a very brief introduction to Magento, a powerful php based open-source e-commerce platform. I am currently working on my first ever Magento project, and given the flexibilty and complexity of Magento and it’s code base, it seems a good idea to write...

Read more

Creating title images on the fly

I was recently working on a site where the main page headings where required to display in fluxfont (to match some images / icons, plus it looks prettier too). Now this is not a regular font that everyone has installed on their machines, so I needed to come up...

Read more

Virtual Hosts in Apache on Windows

This is more of a reminder for me but this might also help somebody else. I’ve had to set up virtual servers for apache on windows a couple of times (using php5.2.6 and apache 2.2 on XP and Vista) and can never quite remember exactly what it is that...

Read more

Jquery .live and .livequery

I recently had a problem where I was trying to insert some product information into a page, with the information shown changed depending on which product was selected from a drop down list. Here is the select list and the div that I wanted the extra information to be...

Read more

CSS firefox margins

I recently spent quite a while creating a template for a new site, so was not happy to find that sometimes a large chunk of white space would appear at the top, pushing down my background image and basically distorting the whole look of the page. And it only...

Read more

1 2