Need to add the login option in cart instead of checkout page.

This topic has 5 replies, 2 voices, and was last updated 5 months ago ago by Plethora

  • Avatar: Plethora
    Plethora
    Participant
    July 10, 2025 at 07:09

    Hi, I need to bring the option (log in) to the cart instead of checkout. Is this possible?

    Files is visible for topic creator and
    support staff only.
    4 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    July 10, 2025 at 08:58

    Dear @Plethora,

    We hope this message finds you well.

    To create a login/register form, you may refer to the following guide:
    https://www.businessbloomer.com/woocommerce-separate-login-registration/

    Once the shortcode is generated, you can add it to the cart page as needed.

    We hope this information is helpful. Should you have any further questions, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: Plethora
    Plethora
    Participant
    July 10, 2025 at 09:14

    I can see for registration, but not for login option similar as on checkout.

    Avatar: Justin
    Luca Rossi
    Support staff
    July 10, 2025 at 10:17

    Hi @Plethora,

    Please take a closer look at the link we shared, here is the login form shortcode:

    
    /**
     * @snippet       WooCommerce User Login Shortcode
     * @how-to        businessbloomer.com/woocommerce-customization
     * @author        Rodolfo Melogli, Business Bloomer
     * @compatible    WooCommerce 9
     * @community     https://businessbloomer.com/club/
     */
      
    add_shortcode( 'wc_login_form_bbloomer', 'bbloomer_separate_login_form' );
      
    function bbloomer_separate_login_form() {
       if ( is_user_logged_in() ) return '<p>You are already logged in</p>'; 
       ob_start();
       do_action( 'woocommerce_before_customer_login_form' );
       woocommerce_login_form( array( 'redirect' => wc_get_page_permalink( 'myaccount' ) ) );
       return ob_get_clean();
    }
    

    Hope it helps!

    Avatar: Plethora
    Plethora
    Participant
    July 14, 2025 at 13:24

    Thanks for the support! My topic “Need to add the login option in cart instead of checkout page.” has been successfully resolved.

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Need to add the login option in cart instead of checkout page.’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.