Hi, I need to bring the option (log in) to the cart instead of checkout. Is this possible?
This topic has 5 replies, 2 voices, and was last updated 5 months ago ago by Plethora
Hi, I need to bring the option (log in) to the cart instead of checkout. Is this possible?
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
I can see for registration, but not for login option similar as on checkout.
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!
Thanks for the support! My topic “Need to add the login option in cart instead of checkout page.” has been successfully resolved.
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