Search This Blog

Mar 12, 2012

Adding default Contact Form to a Magento CMS page

Magento has a default contact form that can be used in different CMS pages. All you need to do is to include the contact block code in your CMS page and do some customization like text etc.
To add some captions or phrase in your form without editing its phtml file, just do the following steps.

1. Open / Create a CMS page in your Magento Admin Panel. Go to your CMS -> Manage Pages.
2. Either you can create a cms page / edit the existing cms pages.
3. Add the following code in your cms page content.
<!– CONTACT FORM –>

{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}

<!– END OF CONTACT FORM –>
4. Add your form description etc. then save your page.

Hope this post helps you.


0 comments: