Magento – My contact CMS to create page

Picture

Who wants to create his own contact page and who is not the default page with the e-mail contact is sufficient, can easily create a site and CMS there copied in place following code

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

And you've got his own contact with CMS part. So you need to say many.

Well it CAN come to but, that the form can be displayed but also beautiful and filled, it but after entering the information and submitting a 404 Error is. The page can not be found.
This is then likely to the URL and the area form_action =”/contacts/index/post” Codes. This points to the URL of the function. Is not this correct URL, there is the 404er error. It helps the URL of your page to look, appears on the contact.

Example:

The URL is Kontaktforumulars

http://www.IhreDomain.com/deutsch/contact

then the code should be:

form_action=”/index.php/deutsch/contacts/index/post”

or

form_action=”/deutsch / contacts / index / post”

Sun then it should work.

Addendum dated 07.08.2013

For a new project we have incorporated the form again and the error message

Fatal error: Call to a member function setFormAction() on a non-object in /public_html / app / code / community / fontis / ReCaptcha / controllers / ContactsController.php on line 32

get after clicking on Send. Since we unfortunately did an update of the extension fontis no solution, we have ado the extension disabled until further by under app / etc / modules file “Fontis_Recaptcha.xml” have renamed. But is of course also possible simply to open the file and there the word “true” on “false” to change. Then the extension is also quiet and there is no longer a problem using the contact form.

Used in Magento versions 1.5.1.0-1.7.0.2 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

3 comments on “Magento – My contact CMS to create page”

Leave a Reply

Your email address will not be published. Required fields are marked *