How to add a Contact Us form to a page in Magento

Magento has a default Contact Us page usually located in the footer of the store. This page contains a contact form through which your customers can send questions and comments about your store and services. But what if you want to add the Contact Us form to another page?

Fortunately, adding a new Contact Us form to a new or existing page in Magento is quite easy. To do it, log in to your Magento admin panel and go to CMS > Pages.

If you want to add the form to an existing page, click on the page to start editing it.

If you want to add the form to a new page, click Add New Page to create a new CMS page.

To add the Contact Us form, click on the Content option in the left menu of the page. Add your content and at the place where you want the contact form to appear paste this line:

{{block type='core/template' name='contactForm' template='contacts/form.phtml'}}

Then save the changes by clicking Save Page and go to your store's frontend to see the page with the contact form on it.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to add and edit attributes in Magento

Each product that you add and edit has a set of attributes that you can configure such as name,...

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2828-148-1-471' for key 'PRIMARY'

While trying to reindex your store using the command line, you stumble on the following...

How to add a custom link to the top navigation in Magento

By default, Magento's top navigation contains links to your product categories. But what if you...

Migrating your CMS from one server to another one

From time to time, you may need to push your CMS from your staging env to your production...

Why is Magento cron job not working?

cPanel + CageFS and CloudLinux's PHP switcher may cause problems with Magento CRON. Until this is...