• Resolved simonduchaine

    (@simonduchaine)


    Hi ! First of all, really really nice plugin!

    I just noticed a little bug. On the woocommerce checkout form, when customers need either to login or register, the checkbox for Privacy Policy Agreement display twice.

    I took a printscreen to show you: https://ibb.co/b7YyzS

    Thanks,

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Fernando Claussen

    (@fclaussen)

    Hi @simonduchaine,

    That’s odd. I just visited your site and saw only one.

    Did you manage to fix this somehow?

    https://imgur.com/a/3fA0hfL

    Thread Starter simonduchaine

    (@simonduchaine)

    Hi,

    Yes, on the standard register page, it’s okay.. but on the woocommerce checkout, it’s not.

    If you want to reproduce, just add a simple product to your cart and go through the checkout process until the checkout endpoint.

    Thanks.

    Plugin Author Fernando Claussen

    (@fclaussen)

    I see.

    The weird part is that there’s an extra field in between. That tells me that the hook I’m using to add the checkboxes is maybe being called twice in this template?

    Are you running any custom template files? It would be inside a WooCommerce folder inside your theme. Look for this template and see if you have two woocommerce_checkout_fields hooks.

    Thread Starter simonduchaine

    (@simonduchaine)

    That’s what I was suspecting (the hook being called twice).

    The field in-between comes from the plugin Mailchimp Woocommerce (https://www.ads-software.com/plugins/mailchimp-for-woocommerce/) and it’s the checkbox to add the user to a MailChimp list.

    I’ll look inside my templates files as suggested, but quickly I would tell you that no I don’t use a custom template file.

    Plugin Author Fernando Claussen

    (@fclaussen)

    I just tested with the default theme and I get this:

    https://imgur.com/rGcdXlg.

    There are two extra checkboxes because I have a total of 3 consent types. I don’t see it twice on mine. That’s why I’m thinking you might have double hooks.

    Or maybe you have woocommerce_register_form and woocommerce_checkout_fields in this template.

    Thread Starter simonduchaine

    (@simonduchaine)

    Ok, thank you very much!

    I’ll take a look at my templates!

    Thread Starter simonduchaine

    (@simonduchaine)

    Hi Fernando,

    Just so you know I managed to resolve my problem. My “Multistep checkout” plugin was putting <?php do_action(‘register_form’); ?> just after the <?php do_action(‘woocommerce_register_form’); ?> and as your plugin is hooking in both forms, the checkbox was displaying twice!

    Thanks for your great support!!

    Greetings,
    Simon

    Plugin Author Fernando Claussen

    (@fclaussen)

    Oh good! I’m glad you resolved this!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Duplicate Policy Agreement on Woocommerce Registration’ is closed to new replies.