50 likes | 58 Vues
Magento 2 Force Login by Meetanshi makes it compulsory for visitors to login in order to access the store pages.
E N D
1.Extension Installation Guide 2.Configuration 3.Force Login in Frontend Force Login for Magento 2 © Meetanshi.com
1.Extension Installation •Extract the zip folder and upload our extension to root of your Magento 2 directory via FTP. •Login to your SSH and run below commands step by step: ophp bin/magento setup:upgrade oFor Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy oFor Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f ophp bin/magento cache:flush •That’s it. 2.Configuration For configuring the extension, login to Magento 2, move to Stores → Login where you can find various settings to enable the extension. •Force Login: Enable the Force Login extension from here. •Alert Message: Enter the alert message to show when the force login is enabled. •Select Pages: Select pages to enable force login for. •Enable Force Login on Other Pages: Select YES to enable force login on other pages. •Enable Force Login on CMS Pages: Select YES to enable force login on CMS pages. •Select CMS Pages: Select CMS pages to enable force login for. •Redirect After Login: Select a page or URL to redirect customers after login. → Configuration → → Force Force Login for Magento 2 © Meetanshi.com
Force Login for Magento 2 © Meetanshi.com
3.Force Login in Frontend Once the extension is enabled, whenever a user go to the page for which force login is enabled, he gets automatically redirected to the login page with alert message to enter credentials and login to view the page. Force Login for Magento 2 © Meetanshi.com
•Redirection After Login Once the user adds credentials and log in, he automatically gets redirected to the page or URL set from the backend. If you have any question or need support, Contact us at https://meetanshi.com/contacts/ Force Login for Magento 2 © Meetanshi.com