Hey all,
I am trying to implement a custom product list provider, where I would like remove products based on the logged in user's permission. We have some custom code that filters products based on the user's customer number. So e.g. Customer A may see 4 products in a context where Customer B may see 6 products and so on.
I am using a related product list provider, as one of the related products should be "removed" for Customer A. However, I cannot seem to trigger the actual removal of the product.
I am able to loop the products in the above mentioned context and furthermore parse the correct product id to a ProductCollection - called ProductsToRemove. I then try to Remove this productcollection from my original one (that I instantiate at the beginning with the evetnArgs.Products) - however no luck.
Am I missing something? - Attached is a dump of my provider.
BR
Mikkel