Customer Catalog Permission (M2) - How To - Add Customer Categories Restriction
How To Add A New Restriction
To create a new restriction, click on the Add New Restriction button above the list of restrictions available following CATALOG → Catalog → Catalog Permissions.
Select Restriction Type
Let's select the first type Customer Categories restriction and fill in the required and optional fields. Once you choose the type, a more detailed description will appear below the type. You can customize the message in the General Settings.
All types of restrictions have three sections:
General - includes a status, redirect path and notification message.
User Selection - allows choosing customers or customer groups to limit access to.
Categories Selection - allows choosing categories (products or pages) to be hidden for the selected customers or groups.
Customer Categories Restriction
This type provides the following settings:
General
Is Active - to make the restriction visible for the customer, enable the setting. If you need to disable the restriction, set it as Inactive.
Redirect Path - enter a path the user will be redirected to once the restricted category is selected.
Notification message - allows entering a notification message visible for the user after redirection.
Sorting Order - there are two types of restriction for the selected customer: categories and products restrictions. The setting allows selecting the priority for these restrictions. Once you set 0 for this customer categories restriction, it will be prioritized in comparison with the customer products restriction for the chosen customer.
Please note if you set two types of restrictions (category and customer categories/products restrictions), the customer restrictions will be prioritized.
User Selection
By using this type you can select a customer in the list as well as apply filters to find the user.
ID - shows the user's ID.
First Name - displays the user's first name.
Last Name - displays the user's last name.
Email - shows the user's email.
Categories Selection
Categories - choose the categories that won't be visible for the selected customer. You can add multiple categories in bulk.
Click the Save button to save the changes.
Frontend
This is how the customer categories restriction works on the Frontend.
Get more information about the Customer Catalog Permission for Magento®2. Find other Magento products at the CreativeMinds Magento Store |
|
Let us know how we can Improve this Product Documentation Page To open a Support Ticket visit our support center |