This extension for Magento 2 forces customers to first login or create an account before seeing any products or CMS pages. There are 2 ways to access the web store when the forced login is enabled:

1) Login or Register: You can either login with an existing account or create a new account

2) Login only: You can only login and can't create a new account.



- This extension is compatible with the default Magento 2.2 Luma theme.

- This extension is compatible with Magento versions 2.0.x, 2.1.x, 2.2.x


Download the extension package from your account and extract the downloaded archive.

Create the folder app/code/Ecomwise/ForcedLogin/ in your Magento root.

Copy the extracted content to the app/code/Ecomwise/ForcedLogin/ directory.

Positioned in the root Magento directory execute the following commands:

1. Install: php bin/magento setup:upgrade

2. Recompile (Optional): php bin/magento setup:di:compile

3. Reindex (Optional): php bin/magento indexer:reindex

4. Clear the Magento cache (Optional): php bin/magento cache:clean



Stores-> Configuration -> Ecomwise -> B2B Forced Login

1. Info & Support: An overview of the extension information such as version number, compatibility, documentation and support.


2. Settings:

    Extension Enabled: Yes/No. 

    Access to Website: 

      - Via Login: If this option is chosen the access to the website will be possible only with the login form.

      - Via Login and Register: If this option is chosen the access to the website will be possible with the login  and also the register form.





If module configuration setting: "Via Login" is chosen on the Login page is displayed only the "Login form".

Otherwise, on the Login page is displayed the "Register new customer" form and "Login form" for already registered customers.

Customer Account Login page  - Via login option


Customer Account Login page  - Via login and Register option




Automated ways are not available in this version.




24 October 2016

  • Stable module release.

15 December 2017

  • Compatible with Magento Community 2.2.x









Please browse to our FAQ page for more details or contact