sbodak / magento2-b2b-disable-customer-registration
This extension allows you to disable customer registration in your Magento 2.
Package info
github.com/sbodak/magento2-b2b-disable-customer-registration
Type:magento2-module
pkg:composer/sbodak/magento2-b2b-disable-customer-registration
2.0.0
2026-04-18 20:06 UTC
Requires
- php: ~8.2.0||~8.3.0||~8.4.0
- magento/framework: ^103.0
- magento/module-customer: ^103.0
Requires (Dev)
- phpunit/phpunit: ^10.5
README
Overview
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.
Compatibility
| 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 |
Requirements
- Magento Open Source / Adobe Commerce 2.4.8
- PHP 8.2, 8.3, or 8.4
Installation
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
Configuration
- Go to the Magento admin panel
- Navigate to
Stores > Configuration > Customers > Customer Configuration - Under the
Create New Account Optionstab, find theDisable frontend customer registrationoption - Set it to
Yesto disable registration
Admin configuration
Frontend result
Development
Running unit tests
composer install vendor/bin/phpunit
Uninstall
php bin/magento module:disable Bodak_DisableRegistration composer remove sbodak/magento2-b2b-disable-customer-registration
Changelog
See CHANGELOG.md for a full history of changes.

