Enabling Captcha in OpenCart 3.0.2

As your store get popular, so does the spam messages from any of the contact form. The registration forms are not an exception either, resulting in lots of fake customers.

In all such cases CAPTCHA codes are one of the best ways to avoid all the bots. There are two different CAPTCHA modules integrated in OpenCart version v2.1.0.1 onwards. It just takes just couple of minutes to set it up.

This tutorial walks you through these simple steps to enable CAPTCHA in OpenCart.

How to enable OpenCart CAPTCHA?

All the default OpenCart forms can be protected with the CAPTCHA fields.

OpenCart 3 comes with the following Forms

  • Customer Registration form
  • Guest Checkout
  • Product reviews
  • Returns page form
  • Contact Us form

OpenCart comes with two versions of CAPTCHA. in the basic version (customer has to enter letters and numbers he/she sees in the picture)

basic-captcha

The second version is the Google reCAPTCHA. It adds the “I’m not a robot” field to OpenCart forms, please ensure to select ReCaptcha version 2 only, as OpenCart 3 does nnot yet support version 3:

google-re-captcha

Both of these CAPTCHA modules can be installed in OpenCart admin > Extensions > Captcha section:

captcha-list

Install the CAPTCHA type you wish to use. Once Installed, it needs to be enabled by clicking the EDIT Button (Pencil Icon) and change the extension status to Enabled.

If you wish to use Google reCAPTCHA then first you need to register your online store in the Google Recapcha website and get Site Key and Secret key codes.

Once you have enabled the CAPTCHA modules you need enable it for the various forms that can be protected with CAPTCHA. To do this – go to OpenCart admin > System > Settings and click the edit the store button. Now in the Options tab and scroll down to the CAPTCHA section:

captcha-forms

In this place you need to select the CAPTCHA module to use, and the forms that need to be protected with a CAPTCHA.

That’s it – after saving this setttings, the selected forms in your OpenCart store will be protected with the CAPTCHA of your choice.