How To Put Contact Form On Magento CMS Page

*UPDATE: To avoid 99% of all the effort required to do this I now recommend using the following Magento Contact us Form extension which will give you much more form functionality and can also overwrite the standard Magento contact us form.

Get the extension here: The Best Magento Contact Us Form Extension

Learn how to place a contact form on a standard Magento CMS page and have it redirect to another standard CMS success page after the form has been submitted. Very handy for making Magento contact forms and custom successfully submitted form pages.

[styled_box title=”

The piece of code that goes on a Magento CMS page to call up the contact form
” color=”gray”][code]{{block type=”core/template” name=”contactForm” form_action=”/contact/index/post” template=”contacts/form.phtml”}}[/code][/styled_box]

[styled_box title=”

This code goes at the very bottom of the script file that is called form.phtml
” color=”gray”][code]getMessagesBlock()->getGroupedHtml()!=””)
{

header(‘Location: https://www.YOUR-DOMAIN.com./WHATEVER/THE/PAGE/URL-IS’);

}
?>[/code][/styled_box]
Water coloured page divider

Magento CMS Menu