Details
Description
The proper resolution to this issue is to use the newer version of ReCaptcha.
ReCaptcha does not appear on order forms any longer when registering a client. We'll need to look into the cause and correct it.
See http://www.blesta.com/forums/index.php?/topic/5690-recaptcha-not-working-on-order-forms/
Issue Links
- relates to
-
CORE-2096 Order: Update ReCaptcha from v1.0 to v2.0
- Closed
ReCaptcha will still display on the Standard order form template, and also when the signup form (which contains the ReCaptcha) is not loaded via AJAX.
e.g.
the /order/cart/index/ page will load /order/signup/index/ asynchronously. This will then attempt to load the ReCaptcha. It will fail because the ReCaptcha JavaScript contains 'document.write()' to load the ReCaptcha itself,
i.e.
document.write('<scr''ipt type="text/javascript" s''rc="' + RecaptchaState.server + 'js/recaptcha.js"></scr'+'ipt>');
It fails because:
"Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened."
Therefore, the ReCaptcha is never loaded.