cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How exclude certain products for some B2Bunits

Former Member
0 Likes
806

Hi Experts,

We have a requirement to exclude certain products for some B2B units, we have achieved the same using usergroups and assigning the user groups to the users and also maintaining the allowed principal in the category model. We further need to filter the results where some users can have inclusion/exclusion of products not applicable for there user groups.

One possible solution is to maintain excludedB2bIds and includedB2bIds along with userGroups assigned (which filters the on basis of user group) ,in the product model(for filtering inclusion and exclusion) and index these attributes and then pass this attribute in the solrSearch to fetch the products included or excluded for the user along with other product data. I do not like this solution very much, please share your thoughts. Also please share if there are any better approaches to achieve the same.

thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Hi Experts,

please share your thoughts here.

thanks,

Former Member
0 Likes

Hi Experts,

Can you please help me on the same? How can this be handeled.

thanks,

Former Member
0 Likes

Hi Himanshu,

I believe it would be easier if you create Personalization Rule in Backoffice.

  1. System -> Personalization -> + Personalization rule

  2. 'Create new: Personalization rule' window should appear

  3. Apply it on created user group which consists all of the users that are not supposed to be able to see specified content.

  4. In Restricted Type choose Product [Product] (for example)

  5. In Filter field write your own restriction query. Result of query will not be visible for user group.

I believe you can use this to achieve what you described.

For more information visit: https://help.hybris.com/6.7.0/hcd/8bd629cb86691014b17bed91c0284dad.html

Hope that helps,

Former Member
0 Likes

Hi ,

Thanks for the reply. There is no fixed set of content visible to the user, I feel it would be difficult to maintain all the users in fixed user groups for inclusion and exclusion as it would depend on the business which user should have access to which product in case of inclusion/exclusion.

So I do not think we can use personalization for the same. please share your thoughts if you feel it can still be achieved by personalization.

thanks,