Free PrestaShop Captcha module

Do you manage a PrestaShop store? Have you been the victim of nasty spam on your Contact page?

This powerful PrestaShop Captcha Module brings you the solution!

Free PrestaShop Captcha module

PrestaShop Captcha Module installation and integration tutorial:


Step 1

Set up your Google reCAPTCHA account at

Label: indicative name for the reCAPTCHA

Domains: indicate your domain name in the form ""

You will then have the API keys provided by Google!


Step 2

Download and install the PrestaShop Captcha Module.


Step 3

Configure the PrestaShop Captcha Module in the back office (your admin area)

and paste the public and secret keys provided by Google reCAPTCHA.


Step 4

Open the file www/themes/my-theme/contact-form.tpl and look for the following code (line 148 for PrestaShop

							 <div class="submit">
<button type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium"><span>{l s='Send'}<i class="icon-chevron-right right"></i></span></button>

Paste the following code just before replacing "YOUR_PUBLIC_KEY" with your public key provided by Google reCAPTCHA:

							 {if $captcha}
<script src=''></script>
<div class="g-recaptcha" data-sitekey="YOUR_PUBLIC_KEY"></div>

Save the file and send it back to the server using your FTP client.


Step 5

Open the file /controllers/front/ContactController.php

and just after this line:

$this->errors[] = Tools::displayError('Bad file extension');


} else if (!($gcaptcha = (int)(Tools::getValue('g-recaptcha-response')))){

$this->errors[] = Tools::displayError('Captcha not verified');



Step 6

Refresh your Contact page and enjoy the result!



Quality tools for Webmasters !

A collection of free or paid PHP scripts and Prestashop modules. Download free and paid website scripts and tools. Each of the PHP scripts here includes complete PHP source codes

Contact Details

Phone: +33781217982
Website: www.Ludo.One