Author Topic: Invisible reCAPTCHA on registration form  (Read 449 times)

barbara

  • Jr. Member
  • **
  • Posts: 164
Invisible reCAPTCHA on registration form
« on: December 15, 2020, 03:28:36 am »
Hi

I am trying to find a wa y to get the  Invisible reCAPTCHA working on the VM registration form

I found an old thread marked solved, but as far as I could tell there was no actual solution posted

can this be done?

any help would be greatly appreciated

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28016
  • Always on vacation
    • Jenkin Hill Internet
Re: Invisible reCAPTCHA on registration form
« Reply #1 on: December 15, 2020, 10:26:11 am »
I works just fine in VM 3.8.6 - if not using that version you need to upgrade. Ensure that the Joomla CAPTCHA - Invisible reCAPTCHA plugin is correctly configured and enabled.  Turn on ReCaptcha for registration in configuration/Shop and check if using template overrides that the ReCaptcha display code is present.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.7 10374 on Joomla 3.9.24 PHP 7.4.12

barbara

  • Jr. Member
  • **
  • Posts: 164
Re: Invisible reCAPTCHA on registration form
« Reply #2 on: December 16, 2020, 22:12:25 pm »
the invisible recaptcha is working on the joomla / breezing forms forms, so the recaptcha appears to be working - just not VM,

using J 3.9.23 / vm 3.8.6

Use ReCaptcha for Registration - checked

still get error
'Message
Empty solution not allowed.'

which seems like the vm registration page is looking for the old style checkbox recaptcha?

barbara

  • Jr. Member
  • **
  • Posts: 164
Re: Invisible reCAPTCHA on registration form
« Reply #3 on: December 16, 2020, 22:20:49 pm »
I disabled the redirect and tried to submit the joomla registration form - no problem

the issue is def. with the vm registration form


which is the actual file that includes the recaptcha code in the registration process?

I`m wondering if there is an old overwrite in place, but I dont know which file to check

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10027
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Invisible reCAPTCHA on registration form
« Reply #4 on: December 16, 2020, 22:27:14 pm »
components\com_virtuemart\views\user\tmpl\edit.php

echo $this->captcha;
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

barbara

  • Jr. Member
  • **
  • Posts: 164
Re: Invisible reCAPTCHA on registration form
« Reply #5 on: December 17, 2020, 00:59:15 am »
I have 2 pages

which have a section including:

echo $this->captcha;

components\com_virtuemart\views\user\tmpl\edit.php
components\com_virtuemart\views\user\tmpl\edit_address.php

Seems to be the edit_address page which is loading when I click edit billing/shipping on the cart page, ( it has the COM_VIRTUEMART_USER_FORM_CAPTCHA  language part which the edit.php does not)
The edit.php file loads when the register button is directly clicked

both of the files have the [echo $this->captcha;]  code

*note with the invisible captcha usually a little icon loads on eg the bottom right of the screen - this happens with the joomla registration & breezing forms forms, but no icon loads on the vm registration page

on some older threads I saw a reference to 'editaddresscartBT'' being an issue with captcha

looking in my developer tools I see a warning under sources  'editaddresscartBT''

[DOM] Found 2 elements with non-unique id #modlgn-passwd: (More info: https://goo.gl/9p2vKq) %o

but I cant seem to find a file called  'editaddresscartBT'' ?!



jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28016
  • Always on vacation
    • Jenkin Hill Internet
Re: Invisible reCAPTCHA on registration form
« Reply #6 on: December 17, 2020, 11:17:14 am »
There is no "editaddresscartBT" file - it is used to refer to the billing address.

The captcha code is included in components/com_virtuemart/views/user/tmpl/edit_address.php

Code: [Select]
// captcha addition
if(VmConfig::get ('reg_captcha') && JFactory::getUser()->guest == 1){
?>
<fieldset id="recaptcha_wrapper">
<?php if(!VmConfig::get ('oncheckout_only_registered')) { ?>
<span class="userfields_info"><?php echo vmText::('COM_VIRTUEMART_USER_FORM_CAPTCHA'); ?></span>
<?php ?>
<?php echo $this->captcha?>
</fieldset><?php }
// end of captcha addition

If using an override  for that file make sure it contains the ReCaptcha code.

Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.7 10374 on Joomla 3.9.24 PHP 7.4.12