Skip to content

Tag: navigation

How to Add a Customer Group Restriction to Navigation Node

You have some exclusive customers. You offer some special sales for these customers. They should be able to see a navigation node on the page so they can visit the special campaign page. So, you have to display some navigation nodes for users who belong to a specific user group and hide them for other users. To accomplish this requirement we can use Search Restriction. Search Restriction Search restriction is a restriction type that you can apply for models. It has 3 main parts: Restricted Type (Model): Model that you want to apply restriction Apply On: User group for filtering the model Filter (Query): Custom query. This query will be added to end of the normal query of the model. Filter query will be added at end of the your model’s SQL query. By this, we will be able to add some additional filters to the model’s query. What a great idea! You can find search restrictions in the Backoffice → System → Personalization Implementation Create user group I have a user group called FamilySaleGroup. I want to make a navigation node visible for only users of this group. User group impex: Create navigation nodes I have two navigation nodes.…