I am looking for solution to remove or skip customer authentication on checkout and Allow guest to checkout. Simple is that we need to remove the authentication step to login or register, any one can purchase as a guest only.
-
Juts check if configuration Stores >> Configuration >> Allow Guest Checkout is set to YES– PawanMar 19 at 6:17
-
Guest Checkout is already enabled or disabled but customer need to get rid of login/register on checkout– Abdul RafayMar 20 at 8:01
-
Did you try this option: Set the "Enable Automatic Assignment to Customer Group" option to "No"– DotsquaresMar 20 at 12:01
1 Answer
I have tried several methods to allow only guest customers and remove the login functionality.
Finally I have found a solution. In orders to achieve this functionality we have to override couple of files in our custom modules using require.js
- Remove Password Field and Message vendor/magento/module-checkout/view/frontend/web/template/form/element/email.html
- Comment Existing Email check function vendor/magento/module-checkout/view/frontend/web/js/view/form/element/email.js
- Disable Authentication Component vendor/Magento/module_checkout/layout/checkout_index_index.xml