User Guide of Magento 2 Force Login Extension
General Configurations
At the backend, go to FME EXTENSIONS > Configurations. Here you can find the extension configurations.
- Module Enable: Option to enable or disable the force login module
Template Configuration
This section allows you to choose and customize a template for the login form.
- Select Template: Choose any one templates.
- Template Title: Enter a title for the template
- Template Description: Enter a short description of the template
- Store Image: Upload an image for the template
CMS Page Configuration
- CMS Pages: Select the CMS pages where you want to enable the force login.
- Third-Party Custom Pages: Choose ‘Yes’ or ‘No’ to enable or disable the force login on custom pages created by third-party extensions.
- Custom Page List: Enter the URLs of custom pages where you want to apply the force login, separated by commas (e.g., custom/index, login/account/index).
- Checkout Cart Page: Choose ‘Yes’ or ‘No’ to enable or disable the force login on the checkout cart page.
- Checkout Main Page: Choose ‘Yes’ or ‘No’ to enable or disable the force login on the checkout main page.
Popup Settings
- Popup Display Time (Seconds): Specify the number of seconds when force login template or login page redirection would occur.
- CSS Style: Enter custom CSS
Redirect Settings
- Select Redirect: Option to redirect the Non-logged in customers to the selected/previous page or custom URL
How to Enable Force Login on a Product?
At the back end, go to CATALOG > Products. Here you will find a grid of your store products. Now click on the Edit button to continue.
Now scroll down the page and Enable/Disable the force login option as per your requirements.
How to Enable Force Login on a Category?
At the back end, go to CATALOG > Categories. Here you will find all the categories of your store products. Select any category and Enable/Disable the force login option as per your requirements.