• Hey! So I used code snippets successfully for moving checkout fields around, for example moving the e-mail-field on first position with this code:

    add_filter( 'woocommerce_billing_fields', 'bbloomer_move_checkout_email_field' );
     
    function bbloomer_move_checkout_email_field( $address_fields ) {
        $address_fields['billing_email']['priority'] = 1;
        return $address_fields;
    }

    But what I want to do now by using code snippets, is to move an opt-in consent field right under the e-mail-field that I positioned with the code above.

    https://i.postimg.cc/CLZdk54r/fdfdfdffdf.png

    The classes of this opt-in-flied are: growmatik_consent_wc_checkout and the outer one growmatik-consent.

    I tried a couple of things, but nothing went successfully.

    I don’t know if you would need anything else and if you even can help me, but it would be really amazing!

    Thank you so much for your time and support!

    With kind regards
    Chris

    • This topic was modified 2 years, 4 months ago by chris15326.
Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi Chris,

    I am sure that the sort of thing you describe would be possible with Code Snippets. Unfortunately, I am not really familiar enough with WooCommerce to say for sure how you might write that code.

    I’d recommend asking this question in a forum specific to WooCommerce, as whatever solution is provided should be compatible with Code Snippets.

Viewing 1 replies (of 1 total)
  • The topic ‘Moving a custom checkout field right under the checkout e-mail-field’ is closed to new replies.