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– PawanCommented Mar 19, 2023 at 6:17
-
Guest Checkout is already enabled or disabled but customer need to get rid of login/register on checkout– Abdul RafayCommented Mar 20, 2023 at 8:01
-
Did you try this option: Set the "Enable Automatic Assignment to Customer Group" option to "No"– DotsquaresCommented Mar 20, 2023 at 12:01
Add a comment
|
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