reCAPTCHA not being displayed in some forms

ReCAPTCHA absent in the registration form

There is a slight chance that in some Magento reCAPTCHA may not get displayed on the registration form.

This may be caused by the extension trying to find the standard form.additional.info block from the persistent/customer/form/register.phtml template. Therefore, if the block is absent, then reCAPTCHA won't get displayed.

For the reCAPTCHA to get displayed you will need to:

  1. Go to the following Magento website directory (relative to your site's root folder):
    /app/design/frontend/default/%YOUR_THEME_NAME%/template/persistent/customer/form/
  2. Find and open the register.phtml file in a text editor
  3. Insert the following code before the closing </form> HTML tag:
     <?php
     if (Mage::helper('core')->isModuleEnabled('ET_CustomerRecaptcha')) {
     /** @var ET_CustomerRecaptcha_Helper_Data $helper */
     $helper = Mage::helper('et_customerrecaptcha');
     echo $helper->getCaptchaHtml('dataForm'); // dataForm - the name of the validation variable in JS
     // parameter conditional, 'dataForm' by default }
     ?> 
     <script type="text/javascript">
     //<![CDATA[
     var dataForm = new VarienForm('form-validate', true);
     //]]>
     </script> 
  4. Save the file. reCAPTCHA should get displayed on the registration page

ReCAPTCHA absent in product reviews

In case reCAPTCHA isn't getting displayed in the product reviews, then you will need to manually specify where the validator should be positioned.

  1. Go to the following Magento website directory (relative to your site's root folder):
    app/design/frontend/%YOUR_THEME_NAME%/default/template/review
  2. Find and open the form.phtml file in a text editor
  3. Insert the mentioned above code where reCAPTCHA should be
  4. Save the file. reCAPTCHA should get displayed in the product reviews

ReCAPTCHA absent in the checkout

For ReCAPTCHA to get displayed on the checkput you may need to perform the following actions:

  1. Go to the following Magento website directory (relative to your site's root folder):
    app/design/frontend/%YOUR_THEME_NAME%/default/template/persistent/checkout/onepage
  2. Find and open the billing.phtml file in a text editor
  3. Insert the mentioned above code where reCAPTCHA should be
  4. Save the file. reCAPTCHA should get displayed in the checkout

Last modify date: Wednesday, January 31, 2018