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

barbara

  • Jr. Member
  • **
  • Posts: 170
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: 28113
  • 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.9.10473 on Joomla 3.9.24 PHP 7.4.14

barbara

  • Jr. Member
  • **
  • Posts: 170
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: 170
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: 10111
  • 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: 170
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: 28113
  • 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.9.10473 on Joomla 3.9.24 PHP 7.4.14

citylop

  • Beginner
  • *
  • Posts: 13
Re: Invisible reCAPTCHA on registration form
« Reply #7 on: March 15, 2021, 22:49:38 pm »
Hello, I am using J3.9.25 and VirtueMart 3.8.8 10472.
Invisible Recaptcha is set all across the site and it is working fine, at least it was until recently, when unfortunately I discovered that I can no longer register to virtuemart because I get the message "Empty solution not allowed."

Recaptcha plugin set in 1) Virtuemart configuration, 2) in J plugin, 3) in global configurations and 4) users options

I checked the files mentioned above and everything seems OK, I also do not have a folder under my template/html for virtuemart so I believe that there is no override for this.

Any advice welcome.

Thanks in advance
BR

citylop

  • Beginner
  • *
  • Posts: 13
Re: Invisible reCAPTCHA on registration form
« Reply #8 on: March 18, 2021, 17:31:40 pm »
Friendly bump!

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28113
  • Always on vacation
    • Jenkin Hill Internet
Re: Invisible reCAPTCHA on registration form
« Reply #9 on: March 19, 2021, 11:41:03 am »
No idea!  Works fine for me on a test site with same versions as you using default VM templates on VMBeez.

I assume you only have the CAPTCHA - Invisible reCAPTCHA plugin enabled and not both reCAPTCHA plugins?
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.9.10473 on Joomla 3.9.24 PHP 7.4.14

citylop

  • Beginner
  • *
  • Posts: 13
Re: Invisible reCAPTCHA on registration form
« Reply #10 on: March 20, 2021, 03:09:22 am »
Hello Jenkin and thanks for your answer!

Yes I only have invisible recaptcha enabled which works fine in contact form but not in virtuemart registration page.

Could it be a template issue? Is there a thing I should check before anything else?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28113
  • Always on vacation
    • Jenkin Hill Internet
Re: Invisible reCAPTCHA on registration form
« Reply #11 on: March 20, 2021, 11:55:35 am »
The first diagnostic test for an error like you describe is to check using (preferably) the VMBeez template (included in the VM packages, such as com_virtuemart.3.8.9.10473_package_or_extract.zip). Alternative try Protostar or Beez. These should use the default VM templates.
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.9.10473 on Joomla 3.9.24 PHP 7.4.14