Introduction

The Magento 2 Force Login Extension by FMEextensions is a powerful tool designed to restrict access to your store or specific pages, requiring users to log in before they can view the content. This extension is ideal for B2B stores, wholesale businesses, or any eCommerce store that wants to keep certain content private or available only to registered users.

Key Features

  • Restrict access to the entire store or specific pages, requiring login.
  • Display a customizable message to non-logged-in users.
  • Allow selective page restrictions while keeping others public.
  • Redirect users to the login or registration page for restricted areas.
  • Option to redirect users back to the original page after login.
  • Enable or disable login restrictions for specific customer groups.

Compatibility

This extension is compatible with the following Magento versions.

  • 2.1.x
  • 2.2.x
  • 2.3.x
  • 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7

Installation Guide

Download Force Login from your account dashboard. Now you have the following 2 methods to install the extension.

Method 1

  1. Unzip fme_force-login-x.x.x.zip to a local folder.
  2. Make folder FME into your_magento_directory/app/code/ (if you don't find code folder within app folder, please create it first).
  3. Create the following folders (as mentioned in step 2):
  • app/code/FME
  • app/code/FME/ForceLogin
  1. Copy all the contents from fme_force-login-x.x.x to newly created ForceLogin folder.
  2. Now open console or shell.
  3. Go to your Magento directory and run the following commands:
  • php bin/magento module:enable FME_ForceLogin
  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy -f (-f may not work in Magento versions less than 2.2.x.)
  • chmod command for var/ pub/static and generated/ folders
  1. Reload the Magento admin and you will see FME Extensions on the left side menu of your admin panel.

Method 2

  1. Unzip fme_force-login-x.x.x.zip to a local folder.
  2. Make folder FME into your_magento_directory/app/code/ (if you don't find code folder within app folder, please create it first).
  3. Create the following folders (as mentioned in step 2):
  • app/code/FME
  • app/code/FME/ForceLogin
  1. Copy all the contents from fme_force-login-x.x.x to newly created ForceLogin folder.
  2. Go to your_magento_directory/app/etc/
  3. Open config.php file in etc folder
  4. Add the following line in $modules array at the end ‘FME_ForceLogin’=>1,
  5. Now open console or shell.
  6. Go to your Magento directory and run the below commands
  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy -f (-f may not work in Magento versions less than 2.2.x.)
  • chmod command for var/ pub/static and generated/ folders
  1. Reload the Magento admin and you will see FME Extensions on the left side menu of your admin panel.
Compatible with 2.1.x, 2.2.x, 2.3.x, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7
$69.99 Community
$269.99 Enterprise