To allow only logged in customers to check out:
  1. In the administration panel, go to Settings > General.
  2. Select the Disable anonymous checkout check box and click the Save button.
    NOTE: After that the unlogged customers will not be able to check out without registering, they will need to fill in the User account info section on the Customer information page.