Checkout Email Fill
-
Hi guys,
When a social button is used at the Woocommerce checkout, it pre-fills the email field when this is set to be pulled.
On my checkout page I have a confirm email field, as many people not using a social option enter their email address incorrectly.
Is there any way you could make it so that the confirm email address field is also filled when a social option is used?
Here is the code I have in my functions file for the confirm email field:
add_filter( ‘woocommerce_checkout_fields’ , ‘bbloomer_add_email_verification_field_checkout’ );
function bbloomer_add_email_verification_field_checkout( $fields ) {
$fields[‘billing’][‘billing_email’][‘class’] = array(‘form-row-first’);
$fields[‘billing’][‘billing_em_ver’] = array(
‘label’ => __(‘Confirm email address’, ‘bbloomer’),
‘required’ => true,
‘class’ => array(‘form-row-last’),
‘clear’ => true,
‘priority’ => 999,
);return $fields;
}
The topic ‘Checkout Email Fill’ is closed to new replies.