-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recaptcha v3 doesn't validate in form added with elementor form builder of warehouse theme #221
Comments
Hello Nenes25, Thank you very much for your answer. I'm going to look how to solve it with the clue you have given me. If I make it work I'll share here the process. Regards, |
Hi, Nenes25 Marcin from iqit-commerce support team has given me a solution. He told me he edited some code from eicaptcha, so I have checked the files and here are the edits he made. I hope they can help someone else:
1.1 line 161: if ($this->context->controller instanceof ContactController if (Configuration::get('CAPTCHA_ENABLE_CONTACT') == 1 1.2 line 185: ($this->context->controller instanceof ContactController && Configuration::get('CAPTCHA_ENABLE_CONTACT') == 1) to (Configuration::get('CAPTCHA_ENABLE_CONTACT') == 1) 1.3 line 211: if (($this->context->controller instanceof ContactController && Configuration::get('CAPTCHA_ENABLE_CONTACT') == 1)) { to if ((Configuration::get('CAPTCHA_ENABLE_CONTACT') == 1)) { 1.3 line 227:
to Configuration::get('CAPTCHA_ENABLE_CONTACT') == 1 2 /eicaptcha/views/js/v3.js $(document).ready(function () { With this editions, the captcha validates in the form added with the templator builder for warehouse theme. |
Hi @tga21 , Thanks for the share 😃 ! Regards, |
A new configuration add been added to the 2.4.5 version to allow to load recaptcha library on all pages. Regards, |
Thanks @nenes25 |
Check if your issue exists
Your prestashop version
1.7.8.x
Eicaptcha version
2.3.x
Do you use a specific theme ?
Last version of Warehouse theme, uses elementor builder and is developed by iqitcommerce
Describe the bug
I have installed the module eicaptcha and added to it the keys for the v3 recaptcha I created. It works perfect with newsletter block in the footer but it doesn't work with the contact form that I added to the home page using elementor. Maybe i need to add something to the template but I can't figure out what it may be. I have googled about this and didn't find any clue.
Also there is no log in "/modules/eicaptcha/src/logs/debug.log"
Could you please lend me a helping hand?
Thanks for your time and attention :)
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered: