LaughingHorse Posted December 16, 2015 Share Posted December 16, 2015 I would like to keep the reCAPTCHA on **only** when someone is singing up for the newsletter, or sending an email.I would like to avoid having them use it when placing an order at checkout. Customers are getting frustrated by entering wrong numbers, and complaining to us about that.Is there a way to do remove the reCAPTCHA for the checkout page only? Quote Link to comment Share on other sites More sharing options...
LaughingHorse Posted December 18, 2015 Author Share Posted December 18, 2015 Bump Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 18, 2015 Share Posted December 18, 2015 I will play around with this edit shortly -- see how it can be implemented in CC6. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 18, 2015 Share Posted December 18, 2015 I haven't made extensive tests to see what the total consequences of this small edit are, but try this:In the CC608 file cubecart.class.php, near line 1110:Find:if (!isset($this->_basket['recaptcha'])) {Change to:if (false && !isset($this->_basket['recaptcha'])) {Near line 977,Find:if ($GLOBALS['config']->get('config','recaptcha') && !$GLOBALS['session']->get('confirmed', 'recaptcha')) {Change to:if (false && $GLOBALS['config']->get('config','recaptcha') && !$GLOBALS['session']->get('confirmed', 'recaptcha')) {This (hopefully) stops the display of the reCaptcha block in the checkout screen and skips the check for a reCaptcha error when the form is submitted.Even a "Guest" customer will not see this.And this edit will not survive a code update. Quote Link to comment Share on other sites More sharing options...
bondimedical Posted December 18, 2015 Share Posted December 18, 2015 I made a simple reCaptcha thanks to Brian. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.