Default Magento 2 setup allows users to checkout as guest in your storefront. But one must say gathering max customer information will be advantageous for both customer and shop owner. Today’s tutorial we are showing how to disable or allow guest checkout in Magento 2.
Step 1. Log in to Magento 2 admin panel.
Step 2. Navigate to Stores -> Settings -> Configuration.
Step 3. Open the Sales tab and click on the Checkout link under the tab.
Step 4. Find the Checkout Options section, toggle the drop down between yes and no at Allow Guest Checkout.
Step 5. Save the changes by clicking on the Save Config button.