• Resolved problematichild

    (@problematichild)


    Hi, is there a way to move login form just above the billing step? instead of displaying it to separate step? I tried this, hoping that it will do the trick. It shows on billing step but the login step is still there making the form just a duplicate. Any help will be appreciated. Thanks.

    remove_action( ‘woocommerce_before_checkout_form’, ‘woocommerce_checkout_login_form’, 10 );
    add_action( ‘woocommerce_after_checkout_billing_form’, ‘woocommerce_checkout_login_form’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    I’m sorry the Login form can stay only inside its own step. And there is a technical reason for that.

    The checkout <form> element starts before the opening of the Billing step. By putting the Login section in the Billing step the Login <form> will need to be nested inside the checkout <form> element. According to the World Wide Web Consortium “you are not allowed to nest FORM elements!”

    Even if you use the right WP hooks for adding the Login section before the Billing section the Login form will not work because of the nested <form> elements.

    Thread Starter problematichild

    (@problematichild)

    Thank you for the clarification.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Move Login Form’ is closed to new replies.