Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Captcha will only be displayed and work correctly if you are using standard registration, login, comments form pages. In case of using custom forms and pages it will be necessary to make changes in them so that captcha could be displayed and work correctly.

    Please follow the instructions below.
    = I would like to add Captcha to custom form on my website. How can I do this? =
    1. Install the Captcha plugin and activate it.
    2. Open the file with the form (where you would like to add the captcha to).
    3. Find a place to insert the code for the captcha output.
    4. Insert the necessary lines:

    if( function_exists( 'cptch_display_captcha_custom' ) ) { echo "<input
    type='hidden' name='cntctfrm_contact_action' value='true' />"; echo
    cptch_display_captcha_custom() } ;

    If the form is HTML you should insert the line with the PHP tags:

    <?php if( function_exists( 'cptch_display_captcha_custom' ) ) { echo
    "<input type='hidden' name='cntctfrm_contact_action' value='true'
    />"; echo cptch_display_captcha_custom(); } ?>

    5. Then you should add the lines to the function of the entered data checking
    if( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) echo "Please complete the CAPTCHA."
    or
    <?php if( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) echo "Please complete the CAPTCHA." ?>
    You could add this line to the variable and display this variable in the required place instead of echo "Please complete the CAPTCHA.". If there is a variable (responsible for the errors output) in the check function, this phrase can be added to this variable. If the function returns ‘true’, it means that you have entered captcha properly. In all other cases the function will return ‘false’.

    Sincerely,
    BestWebSoft Support Team

    Thread Starter jimmyjimmy02453

    (@jimmyjimmy02453)

    thanks, I will try

    The code above works great for woocommerce but it’s a little tricky to configure. I’ll write a detailed step-by-step guide later this week when I find some free time.

    Thread Starter jimmyjimmy02453

    (@jimmyjimmy02453)

    Thank you so much Yiorgos Theo.

    Looking forward to hearing it from you.

    Guys, we are having this same problem using the Captcha plugin on our site that has WooCommerce as well.

    We actually had to disable the Captcha plugin because it was preventing any logins AND password resets via the WooCommerce Login form and the WooCoomerce password reset page.

    I see the above example, but it is for generic forms.

    Could you please provide the specific code to make this work for WooCommerce? 🙂

    Thanks!

    Hi Dan & Jennifer,

    We can help you with implementing captcha to WooCommerce plugin login form, yet please note that this is a paid service, since we will need some time to examine this login form. If you would like us to do that, we kindly ask you to create a private ticket on our support forum (http://support.bestwebsoft.com/), and we will discuss the details there.

    Regards,
    BestWebSoft Support Team

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘does not work for woocommerce login’ is closed to new replies.