contactsBy default Magento has a very boring contact page that contains no company info. To remedy this for my clients I have been creating a static block where they can enter their contact information such as mailing address and phone numbers as well as adding images and any messages they would like.

This is my solution.

Here’s a working example to check out: Contact PIR Tactical

To make this work we will be modifying the contacts.xml layout file to get the static block and then creating the static block under cms – static blocks in the admin.

Edit Magento Layout XML File

First, open the contacts.xml file located in app/design/frontend/default/YourTheme/layout/contacts.xml I have been adding a cms static block named “contact-info” to the contact page layout so it appears above the contact form.

<reference name="content">
   <block type="cms/block" name="contact-info">
      <action method="setBlockId"><block_id>contact-info</block_id></action>
   </block>
</reference>

Save the new contacts.xml file and upload to your server.

Add CMS Static Block

Now log into your Magento Admin and go to CMS – Static Blocks. Choose “Add New Block” Name the block “Contact Info” and set the identifier to “contact-info” and then enable the block. You can now enter any html you wish to your contact page above the contact form. No reason you can’t add more information below the form using the same technique.

Share With Others:
  • Google Bookmarks
  • Digg
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Twitter
  • Facebook
  • email
  • RSS