Moving a custom checkout field right under the checkout e-mail-field
-
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
- The topic ‘Moving a custom checkout field right under the checkout e-mail-field’ is closed to new replies.