ReCaptcha

This module allows you to add Google ReCaptcha on your registration and contact forms to protect you from spam.

Installation

1. After the standard installation, you need to set your public and private keys of Google ReCaptcha. To do so, you must create an account and register your site on the Google ReCaptcha configuration page:
https://www.google.com/recaptcha/admin#whyrecaptcha
It takes some time for your keys to be activated by Google, the module won’t be enabled until then.

2. In the configuration of the module, you can choose whether you want to display the recaptcha on your registration and contact form pages.

3.1. For Prestashop 1.4, 1.5 and 1.6
	- Append the following line where you want the captcha in /themes/your_theme/contact­form.tpl: {if isset($HOOK_CONTACT_FORM_BOTTOM)}{$HOOK_CONTACT_FORM_BOTTOM}{/if}

3.2. For Prestashop 1.7
	- Append the following line where you want the captcha in /themes/your_theme/modules/contactform/views/templates/widget/contactform.tpl: {if isset($HOOK_CONTACT_FORM_BOTTOM)}{$HOOK_CONTACT_FORM_BOTTOM nofilter}{/if}
	- Append the following line where you want the captcha in /themes/your_theme/templates/customer/_partials/customer-form.tpl: {hook h='displayCustomerAccountForm'}
	- copy the file /modules/recaptcha/override/modules/contactform/contactform.php to /override/modules/contactform/contactform.php. Create the path if necessary. If the file exists, a coder will have to merge the code.

4. If you use the caching system of PrestaShop:
	- Go to the Administration > Advanced Settings > Performances
	- Select “Force compilation on every call”
	- Put "Cache" to "No"
	- Save
	- Refresh the contact page to regenerate the cache
	- You can then restore the previous configuration