Add a Static Block to Contact Page in Magento

If you’re looking to add a static block to your contact us page in Magento Commerce, it’s really quite easy.

First log in to you Magento admin panel. Go to CMS>>Static Blocks.

Click add new block.

Put in your title (this is for your reference) and then the identifier. The identifier must be a unique name and have no spaces. Something like contact_our_store.

Select which store this is for if you have more than one in your Magento installation.

Put in you content and whatever contact information you want to display on the page.


Select the Enable selection and Save your static block.

Now, navigate on your server to app/design/frontend/default/YOURTHEME/template/contacts/form.phtml and open that file in a proper text editor.

Make sure you SAVE A COPY of the file before you do anything!

For this example, you would add this code:

<!–Added Static Block–>

<table width=”100%” border=”0″ cellspacing=”4″ cellpadding=”4″>



<?php echo $this->getLayout()->createBlock(’cms/block’)->setBlockId(’contact_our_store’)->toHtml() ?>




The above code needs to be added just ABOVE the following code:

<form action=”<?php echo $this->getFormAction(); ?>” id=”contactForm” method=”post”>

Save the file.

You may need to go to Magento admin and refresh your cache.

Then, go checkout your contact page.

If everything is right, you should now have your static block information on your contact us page in your Magento shop!

Alternate or Different Backgrounds Using CSS

Ever want to have different backgrounds for different pages? Here’s the way we suggest:

Using your <body> tag on your hrml page, add an id tag. Now it might look like this:

<body id=”page_2″>

In your CSS file, add

.body#page_2 {

your parameters and settings


Thats it!

Transfer Entire Site From One Server To Another Using SSH

This will start as a partial post regarding transferring a complete site from one server to another using SSH or how to copy files from one server to another using SSH. This outline is intended to be helpful for Magento users that may be transferring their Magento Commerce site from one server to another, but obviously these directions work for moving any kind of directories or website files.

First, you need to login to the server you want to transfer the files from using SSH.

You then need to login as a super user using the command line prompt: su

Enter the super user password.

Navigate using cd to your directory you want to backup, copy or move.

Use this command: tar -cpzf magento-3810.tar.gz ./

This creates a complete tar.gz file of all files and directories in your directory.

I use this procedure because I want to make sure I’m doing everything correctly. You could actually transfer the entire site from one server to another, but if you’re working with live sites or have a lot of work involved without a full backup, you want to have some feeling of security.

So next, I FTP to my server where I just created the tar.gz file and transfer that file to my local machine. I then unzip and untar the file and have a look over things just to be safe.

I then, trnasfer by FTP the same tar.gz file over to my new server directory.

Now, that tar.gz file is on the new server.

Go back to your shell screen.

Navigate to where you just put that backup file.

Use this command to untar the whole thing:

Park City Real Estate Website and IDX Integration

If you’ve never done any work on a real estate website, I have to say, you may want to think about it again. This is one we’ve been involved in developing for a Park City Utah Real Estate Agent. The real estate market is extremely guarded by the companies that specialize in real estate websites. It’s amazing what some of these companies charge for real estate websites, even though it’s not rocket science. The biggest hurdle is getting an IDX or RETS feed on the website. Most companies that provide an IDX solution apparently think there code is gold, and apparently it is. We’ve talked with some of these companies that want $350.00 / month just to provide the software that serves up the data feed, and they require you to host your site on their server since they don’t want anyone stealing their code. Then, there’s the frameset method, which is just the other companies website framed into your website, therefore giving them all the benefits of SEO, while getting nothing for the hosts real estate website.

I know I sound like I’m ranting and I suppose I am. If anyone out there knows of a good solution for IDX feeds for Real Estate Websites, feel free to add your comments here.