https://github.com/magesuite/extended-recaptcha
This module extends ReCaptcha functionality. The main improvement is reCaptcha protection for Add to cart
for on PDP.
Installation
This module is a optional
composer require "creativestyle/magesuite-extended-recaptcha" ^2.0.0
Admin settings
Additional settings are placed together with basic ReCaptcha settings in the:
Stores -> Configuration -> Security -> Google ReCaptcha Storefront
in Storefront
tab.
Name | Values | Note |
---|---|---|
Enable for Add To Cart | Yes/No | |
Add To Cart Protection Mode | Product Attribute/Global | Use Global setting only under attack |
Enable Custom Captcha Note | Yes/No | Custom note will work only for "invisible" recaptcha types and will replace default badge. |
Captcha Note | ||
Defer recaptcha scripts | Yes/No | To improve performace deffer loading of recaptcha scripts till any input in form is focused. |
Frontend
ReCaptcha custom note displayed instead of the native badge:
Magento recpatcha template is replaced with extendedRecaptcha template file:
<referenceBlock name="recaptcha" template="MageSuite_ExtendedRecaptcha::recaptcha.phtml">
TODO - BE documentation and review of documentation is needed