This is an addon Magento 2 module for the LokiCheckout. It adds a new skin Login Before Other Steps (login-first) to the LokiCheckout, requiring visitors to login in a first step before accessing other steps like the shipping and the billing step.
Install this package via composer:
composer require loki-checkout/magento2-skin-login-before-other-stepsNext, enable this module:
bin/magento module:enable LokiCheckout_LoginBeforeOtherStepsWARNING: Please note that the Magento core option Allow Guest Checkout (path checkout/options/guest_checkout) should be set to Yes to allow for this module to do its work. With guest checkout disabled in the Magento core, a visitor will never be able to access the checkout, because Magento will redirect the request directly back to the cart.