I want to restrict product by customer group.
For mapping, we added an attribute to product called group_ids where admin can select multiple customer groups
I want to restrict customer to access this product if their customer group is not assigned to the product.
I want to restrict product access from upsell,crosssell,related,wishlist,product page,category page, home page every where.
So i was looking for function where magento filter product by website. i want to override it add my custom logic to filter but not able to find out that function
So if anyone knows about it then please provide me information of that function or if there any other way to do it