-
- Downloads
[FIX] website_sale, *: display error message in "Extra Info" step
*: google_recaptcha, website_form
Issue
- Install 'Ecommerce' module
- In settings, fill the "reCAPTCHA: Easy on Humans, Hard
on Bots" option with random wrong site key and secret key
- Open your ecommerce (go to /shop )
- Add any product to cart and and open cart
- Activate "Customize -> Extra Step Option"
- Process to "Extra Info" step
- Click on next
Stuck at this step since next button does not react.
Cause
There is an error due to re-captcha feature that
does not allowed to go to next step.
The second issue is that the error is not displayed
because missing message area in form.
Solution
Do not check recaptcha if 's_website_form_no_recaptcha' class
present in form.
Add span 's_website_form_result' to display error messages.
Replace 'public' by 'site' in error message to fit google
'field' name.
opw-2456098
closes odoo/odoo#66382
Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/google_recaptcha/i18n/google_recaptcha.pot 2 additions, 2 deletionsaddons/google_recaptcha/i18n/google_recaptcha.pot
- addons/google_recaptcha/static/src/js/recaptcha.js 2 additions, 2 deletionsaddons/google_recaptcha/static/src/js/recaptcha.js
- addons/website_form/static/src/snippets/s_website_form/000.js 9 additions, 6 deletions...ns/website_form/static/src/snippets/s_website_form/000.js
- addons/website_sale/views/templates.xml 1 addition, 0 deletionsaddons/website_sale/views/templates.xml
Please register or sign in to comment