Magento native captcha for contact form

It took ages for me to configure native captcha in contact form in Magento Enterprise
My task was to add native captcha to contact form, that is on /contacts/index/index url.

Native CAPTCHA settings

First of all find Customer Configuration and open CAPTCHA settings:


How to add new form to CAPTCHA settings?

Create new module and add this lines to config.xml:

You might found here module/observer. It is explained further.

How to show CAPTCHA in contacts form?

Find your form template and insert:

After that find layout xml for your page, for example mine was contacts.xml:

How to check CAPTCHA?

Create Observer for your module:

Keep notice that was said about config.xml:
Rename module/observer to your module name.
Rename controller_action_predispatch_routename_controller_method to your controller method. For example in my case it was controller_action_predispatch_contacts_index_index

comments powered by Disqus

Upcoming Events

   April  2014
  • 12. Magento-Stammtisch München - 23. April 2014 ab 19:00 Uhr
    Starts: 7:00 pm
    Ends: 23.04.2014 - 10:00 pm
    Location: Venture Stars GmbH ( Bayerstraße 14, München, Germany)
    Description: Magento E-Commerce Meetup München
    Wednesday, April 23 at 7:00 PM

    Zum zwölften mal findet der Münchner Magento Stammtisch statt, am 23.04.2014 ab 19:00 Uhr. Die Firma Venture Stars GmbH...



Follow me

Contact Me