Problem with switching to Hikashop hCaptcha

  • Posts: 63
  • Thank you received: 6
3 years 6 months ago #332673

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.4.16

Hi,


Due to the data collection of Google and website loading purposes we decided to switch from HikaShop ReCaptcha v2 to HikaShop hCaptcha. Everything works with ReCaptcha but the hCaptcha not, the registration form at the checkout doesn’t display any hCaptcha. I have Disabled the CAPTCHA - reCAPTCHA and the HikaShop ReCaptcha v2 and Enabled the CAPTCHA - hCaptcha and the HikaShop hCaptcha.




Here are the settings:



Can someone help me with this?


Regards,

Wella

Attachments:
Last edit: 3 years 6 months ago by Wella.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332679

Hi,

I think it might be linked to the jspeed plugin on your website.
From what I can see, the javascript code which initialize hCaptcha is compressed and moved from next to the HTML to a cache file. But the result you get on the page with only the "Captcha" text indicates that the hCaptcha code was not run.
As both Recpatcha and hCaptcha plugins have almost the same code, I'm suspecting that maybe you had some rule in place to exclude recaptcha from jspeed and that isn't done for hcaptcha, or something like that.

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 6
3 years 6 months ago #332843

Hi Nicolas,


Thank you for your advice.

Our contact forms as well as Registration form at the checkout are now repaired with the help of John from JSpeed.

One thing not on their control (he Disabled the JSpeed and hCaptcha is still not showing) and advised us to get back to you is the Registration pop-up, we made a registration for using a modal and the problem is the hCaptcha is not displayed.



Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332854

Hi,

The issue comes from the popup system you're using there.
It doesn't load the content of the popup in an iframe ( which would automatically trigger the event DOMContentLoaded ) and doesn't manually trigger the event DOMContentLoaded after loading the content of the popup.
But the javascript of the plugin listens to that event trigger to include hcaptcha's javascript file so that the initialization process of hcaptcha can run (and it works the same with the recaptcha plugin):
i.imgur.com/Fcqx5ep.png
Looking a bit deeper, it seems that you're using "modals" from RegularLabs. And checking their documentation, I can see they have a "open as iframe" setting in the modals plugin. So activate that setting, and it should hopefully work better.
Otherwise, you might want to check with their support what they recommend.

Please Log in or Create an account to join the conversation.

  • Posts: 63
  • Thank you received: 6
3 years 5 months ago #332908

Hi Nicolas,

I've Enabled the iframe of the modal plugin and yes it works but the settings are changed, it doesn't look good.
I'll check at the Regular Labs forum how to solve this.

Thank you very much for your help.

Regards,

Wella

Please Log in or Create an account to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum