Home › Forums › Basel support forum › Social login issues! › Reply To: Social login issues!
September 5, 2019 at 9:50 am
#142199
Jackal
Participant
Hi! I think that I’ve got the source of problem! I think it is because this coded added in the theme function file:
// Add term and conditions check box on registration form
add_action( 'woocommerce_register_form', 'bbloomer_add_registration_privacy_policy', 11 );
function bbloomer_add_registration_privacy_policy() {
woocommerce_form_field( 'privacy_policy_reg', array(
'type' => 'checkbox',
'class' => array('form-row privacy'),
'label_class' => array('woocommerce-form__label woocommerce-form__label-for-checkbox checkbox'),
'input_class' => array('woocommerce-form__input woocommerce-form__input-checkbox input-checkbox'),
'required' => true,
'label' => __( 'I\'ve read and accept the <a href="/integritetspolicy/" target="_blank">Privacy Policy</a>', 'woocommerce' ),
));
}
I have received this error:
WP_Error Object
(
[errors] => Array
(
[privacy_policy_reg_error] => Array
(
[0] => Terms and condition are not checked!
)
)
[error_data] => Array
(
)
)
I need to add this check box on register form! How can I add it without being conflicted with the social login?
Kind Regards,
Anas