Go to WooCommerce> Accounts and unregister on the "Checkout" page.
That should work!

Alternatively, you can add this code to your functions.php theme.
add_action( 'template_redirect', 'woo_restirct_checkout' ); function woo_restirct_checkout() { if ( !is_user_logged_in() && is_checkout() ) { $my_account_url = get_permalink( get_option('woocommerce_myaccount_page_id') ); wp_redirect( $my_account_url ); exit; } }
Cheers, Francesco
source share