Jump to content

reCAPTCHA Question


LaughingHorse

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...