Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've added a captcha to commerce_checkout_form_review. It displays a challenge, but even if I don't type anything in the captcha form it let's me through. Is there some way to fix it?
Comment | File | Size | Author |
---|---|---|---|
#3 | cambios.patch | 1 KB | eleonel |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedThe checkout form does not use form level validate / submit handlers. Instead you should add your validate handler for the CAPTCHA to the continue button of the form. See the form builder function in commerce_checkout.pages.inc for more info.
Comment #3
eleonelHi, i make this patch, it's work for me.
Comment #4
onefeatureman CreditAttribution: onefeatureman commentedApplied patch still lets the checkout form validate without a proper CAPTCHA. It would be beneficial to give more pointers how to add validate handler for the CAPTCHA to the continue button of the form.
Thank You in advance.
Comment #5
fox mulder CreditAttribution: fox mulder commented#rszrama: Can you give a more detailed answer to this question for us?
Comment #6
rszrama CreditAttribution: rszrama at Centarro commentedI'm sorry, I don't have the time really. It just needs a button level submit handler, but I still think a CAPTCHA on checkout review is a poor idea. If you need assistance with altering on button level submit handlers, I recommend https://drupal.stackexchange.com.
Comment #7
fox mulder CreditAttribution: fox mulder commentedWe are using commerce_checkout_login module.
At the end of the webshop checkout process the user gets a Drupal account. In case we don't protect the checkout process with captcha than robots can create Drupal accounts by going through the purchase process. Of course we protect /user/register with captcha so we have to protect the checkout process too.
Comment #8
leramulina CreditAttribution: leramulina commentedHow has you added a captcha to commerce_checkout_form_review? My client complain that they get too many fake orders and asked me to add captcha to the checkout process. How is it possible to do that?