Type
magento2-module
This extension allows you to disable customer registration in your Magento 2.
magento2-module
MIT
None
None
None
None
None
This module enables the possibility to disable customer registration on the frontend. It is particularly useful for B2B stores where customers should not be able to register by themselves. The extension removes the link to the registration page and hides the registration form on the login page.
| Module version | Magento version | PHP version |
|---|---|---|
| 2.x | 2.4.8 | 8.2, 8.3, 8.4 |
| 1.x | 2.1.x – 2.3.x | 7.0, 7.1, 8.1 |
composer require sbodak/magento2-b2b-disable-customer-registration
php bin/magento module:enable Bodak_DisableRegistration
php bin/magento setup:upgrade
php bin/magento cache:clean
Stores > Configuration > Customers > Customer ConfigurationCreate New Account Options tab, find the Disable frontend customer registration optionYes to disable registration

composer install
vendor/bin/phpunit
php bin/magento module:disable Bodak_DisableRegistration
composer remove sbodak/magento2-b2b-disable-customer-registration
See CHANGELOG.md for a full history of changes.