Skip to Content
3
Former Member
Jun 18, 2014 at 09:59 AM

How to restrict product listing for customers

3406 Views

Hi,

I've got a B2B client that have the concept of a 'product range'. This is a list of products that a customer is allowed to view on the site. Each customer is also assigned to one warehouse so the customer can only purchase products that are in their assigned warehouse. The product range is usually a subset of the products available in the customers assigned warehouse.

I'm looking for the best way to introduce the concept of a product range into hybris.

The initial thought is to have an attribute (a list) on the product model that holds all customer range ID's that are allowed to view the product. I could then have a relation from the range to the product model and set a CMS restriction. The range could be a new model (maybe extending user group) or it could just be a relationship between the existing B2BUserGroup and the product (making use of the list of rangeID's stored against each product).

I can't find anything in hybris that matches this kind of functionality. Are there any great concerns over this method?

Thanks Craig