Page 1 of 1

Allowing Customer to buy some products or not

Posted: Fri Sep 25, 2015 1:42 pm
by RafaelPLaza
Hi team!

Is there any way to avoid the customers to see some products based on any kind of role.

I need to alow some customer to buy some products but others don't.

I found a table called BLC_CUSTOMER_ROLE but I don't know If I can use it for that. I couldn't find any relation of this table with the catalog.


Thanks!!!

Re: Allowing Customer to buy some products or not

Posted: Thu Oct 22, 2015 11:43 pm
by phillipuniverse
Yes, you can use BLC_CUSTOMER_ROLE which has the added advantage of giving you immediate integration with Spring Security. That way, you can annotate your controller methods with things like @Secured as an easy way to secure adding items to the cart.

Re: Allowing Customer to buy some products or not

Posted: Wed Oct 28, 2015 9:51 am
by RafaelPLaza
Thanks for the reply!!!