Jump to content

How to add Google reCaptcha to Contact page?


Recommended Posts

Some frigging spammer has found my site and is sending junk on a regular basis from the Contact page. Other than waste my time, servers NO purpose whatsoever. If I could meet him, I would happily cut his throat! 

 

Installed the slider captcha but has no effect. Thought I would try Google reCAPTCHA and it would be simple but am going around in circles. Does anyone have clear, simple steps for non-coders on how to install the latest reCAPTCHA?

 

The instructions say:

Step 1: client-side integration

Paste this snippet before the closing </head> tag on your HTML template: 

<script src='https://www.google.com/recaptcha/api.js'></script>

 

Problem is, there is no head tag in contact-form.tpl The next part is OK but then:

 

Step 2: Server side integration

When your users submit the form where you integrated reCAPTCHA, you'll get as part of the payload a string with the name "g-recaptcha-response". In order to check whether Google has verified that user, send a POST request with these parameters: 

 

Have no idea what they mean, even after visiting and reading the reCAPTCHA documentation page. Following community page isn't clear and looks outdated: https://code.google.com/p/recaptcha/wiki/HowToSetUpRecaptcha

 

​Any help appreciated.

 

Link to comment
Share on other sites

  • 1 month later...

Im new to PS and i just cannot beleive that there is no "are you human" test on the contact page.

What is even more disconcerting is that no one on this forum has responded with an answer.

 

How do we quickly add a Catcha of ANY sort to the Contact-us,Registration and Checkout pages.

Its a primary functional requirement of even the simplest most primitive cms page.!

 

Im just perplexed that this is not already built in and NO result in a module search for Captcha... huh???

Edited by remoteONE (see edit history)
Link to comment
Share on other sites

On Prestashop Cloud you are not allowed to install free modules. You should add the recaptcha with a paid module or add code into contact.tpl file of your theme. If this not enough than you can only use overrides, because on Prestashop Cloud you don't have access to the software scripts.

 

Use one of this paid modules:

 

http://addons.prestashop.com/en/front-office-features-prestashop-modules/18781-responsive-contact-form-with-google-recaptcha.html

http://addons.prestashop.com/en/front-office-features-prestashop-modules/8041-new-customer-email-verification-and-google-recaptcha.html

Link to comment
Share on other sites

 

Some frigging spammer has found my site and is sending junk on a regular basis from the Contact page. Other than waste my time, servers NO purpose whatsoever. If I could meet him, I would happily cut his throat! 

 

Installed the slider captcha but has no effect. Thought I would try Google reCAPTCHA and it would be simple but am going around in circles. Does anyone have clear, simple steps for non-coders on how to install the latest reCAPTCHA?

 

The instructions say:

Step 1: client-side integration

Paste this snippet before the closing </head> tag on your HTML template: 

<script src='https://www.google.com/recaptcha/api.js'></script>

 

Problem is, there is no head tag in contact-form.tpl The next part is OK but then:

 

The head tag you will find in the your theme file: header.tpl. Go to FTP and search there /themes/default-bootstrap(or your theme if your using a bought one)/header.tpl.

Edited by selectshop.at (see edit history)
Link to comment
Share on other sites

The head tag you will find in the your theme file: header.tpl. Go to FTP and search there /themes/default-bootstrap(or your theme if your using a bought one)/header.tpl.

Ha! Thanks. Wish I had the knowledge back in July!  In desperation, I had a go at installing FormMail from Tectite.com, a VERY robust anti-spam form which shopping carts should include by default in one form or another but I couldn't make it work with Prestashop but, luckily, I did another google for Prestashop and reCAPTCHA and the free install module turned up in the search result.

Link to comment
Share on other sites

×
×
  • Create New...