Wednesday, January 20, 2016

Create a custom Contact Us form in Magento CE

Magento comes with a very simple contact form out of the box.  However, most store owners would like to provide address and phone number information on this page also.  Thankfully there is a pretty simple way to solve this issue (thank you, as the default form does not allow editing through the Admin area.

Below are the steps to create your own custom Contact Us page for Magento CE
  1. Go to CMS > Pages
  2. Click the Add New Page button
  3. Enter the Page Title (Contact Us) and URL Key (contact-us)
  4. Click the Content tab on the left
  5. Add your content as you normally would on any other page including any address or phone numbers you want.
  6. Once you are happy with HTML part, add the following snippet of code:
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}
Now, your form should show up at the bottom of the page. 

No comments:

Post a Comment