restrict_products_by_customer_group

View Magento 2 Restrict Products By Customer Group Extension Detail Page for Features and Demo

Documentation for Restrict product by customer group

Preference

  • This Restrict Products by Customer Groups extension gives you the ability to control access to selected customer groups and also allows you to selectively restrict your products, categories, pages and block from customer groups. You can Create multiple rules to optimize your store visibility for different customer groups. Redirect blocked users to another page.

Installation

There are two ways of installing extension in magento2.

  1. Using COMMAND LINE.
  2. Manually Install extension.

Option 1: Magento 2 install extension using COMMAND LINE (Recommended)

Follow below steps to install extension from the command line.

Step 1: Download the extension and unzip it.

Step 2: Upload it to code directory in your magento installation’s app directory. If code directory does not exists then create.

Step 3: Disable the cache under System → Cache Management.

Step 4: Enter the following at the command line:

           Php bin/magento setup:upgrade
           Php bin/magento setup:static-content:deploy

Step 5: Once you complete above steps log out and log in back to the admin panel and switch to Stores → Configuration → Mageants → Restrict product by customer group, the module will be displayed in the admin panel.

Option 2: Magento 2 install extension manually

Step 1: Download the extension and unzip it.

Step 2: Upload it to code directory in your magento installation’s app directory If code directory does not exists then create.

Step 3: Disable the cache under System → Cache Management Edit app/etc/config.php file and add one line code: ‘Mageants_Restrict product by customer group’ ⇒ 1

Step 4: Disable the cache under System → Cache Management

Step 5: Once you complete above steps log out and log in back to the admin panel and switch to Stores → Configuration → Mageants → Restrict product by customer group, the module will be displayed in the admin panel.

Backend Example

After Installation of Extension login to magento admin panel for set configuration of the extension.

Extension configuration

You can find configuration at Stores → Configuration → Mageants → RestrictProductsByCustomerGroup.

as per below screen shot you can set all the settings here.

RPCG → Manage Rules

Frontend Example

restrict_products_by_customer_group.txt · Last modified: 2025/05/26 13:15