Magento 2 restrict products by customer group extension by FME allows merchants to restrict access to different sections of the store by different customer groups. It allows them to block specific content i.e. products, categories, sub categories, CMS pages etc. from selected customers/customer groups.
How Magento 2 Restrict Products by Customer Group Extension Works?
You can create rules and apply conditions to it to hide/restrict pages, categories, and sub categories. Here is how you can do this.
To create a new rule, click ‘Add Rule’.
Under the ‘Main’ tab.
- Enter the title of the rule.
- Set the rule’s priority.
- Select the store view by which you want to impose the restriction.
- Select the customer group by which you want to restrict access.
- Select a CMS page if you want to restrict a CMS page.
- Set the ‘Status’ to Enabled in order for the rule to be processed.
- Write a custom error message to display.
Under ‘Conditions’ tab
Add conditions to restrict certain pages or categories based on the attributes given in the drop down. In the example below, we have restricted ‘Bag’s Category whose value is 4.
Redirect Restricted Users to other Pages
The extension gives the option to redirect restricted users to other pages of the store. For example, you can redirect retailers who are trying to access wholesale products to the retail product’s page.
Backend Demo
Use Cases of Magento 2 Restrict Catalog Extension
The 4 most common uses cases are highlighted below.
1. Restrict Category
With Magento 2 restrict catalog extension, you can restrict any category by any customer group. The following demo example has restricted ‘Bags’ category. You can see that you have access to the other 2 categories ‘Fitness Equipment’ & ‘Watches’.
Demo: Restrict Category
2. Restrict Sub Category:
You can also restrict sub-category under a main category. The following example restricts Hoodies & Sweatshirts sub-category under Men’s Tops category.
Demo: Restrict Sub Category
3. Restrict CMS Pages
Restrict one or more CMS pages such as ‘About Us’, ‘Privacy Policy’, ‘Customer Service’, Contact Us’ etc.
Demo: Restrict CMS Pages
4. Restrict Specific Products
You have the ability to Restrict Specific Products by specifying the attributes in the ‘Conditions’ tab. The following example restricts products whose ‘Climate’ attribute is ‘Cool’.
Demo: Restrict Specific Products
Got Questions? FME offers FREE lifetime support. If you have any questions regarding the extension, you can contact the support team by submitting a ticket here.
This post first appeared on Magento Vs PrestaShop Themes–Who Is Best? / Mag, please read the originial post: here