Magento 2 Force Login
Magento 2 Force Login Extension by MageComp offers you the ability to restrict certain parts of your store for all the users who are not logged in to the store.
Table of Content 1. Admin Configuration 2. Frontend display of Force Login
1. Admin Configuration Once the extension is installed successfully, go to Stores>Configuration to configure the extension for use.
Configuration
Enable Force Login: Enable or Disable the extension from here. Set it as enabled to use the features of the extension. Redirect URL: Admin can enter the redirect URL for force login here to redirect the customers to the mentioned URL. Force Login Alert Message: The admin has the option to add a force login alert message displayed to the customers when login is mandatory.
Categories
Enable Force Login for Category: Admin can Enable or Disable Force Login for categories from here. Select Categories: The categories where the admin wants force login option is to be selected here. CMS Pages
Enable Force Login for CMS Pages: Enable or disable this option to apply force login to CMS pages or vice versa. Select CMS pages: Admin can choose the CMS pages for which the force login option is to be applied.
2. Frontend display of Force Login The user will be redirected to the custom login page with a force login alert message for the category pages when using the force login extension.
The user will be redirected to the custom login page for the CMS pages when using the force login extension.
If anything goes wrong, please contact us at support@magecomp.com