search box does not take into account customer roles

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

I have problem in my nopCommerce 3.9 store that customers can search products which are not in their customer role. How can I prevent customers to search and see product details page which are not in their customer role?
I have set in Category settings 'Limited to customer roles' and in Setting/CatalogSettings/Ignore ACL rules (sitewide) to False.
6 years ago
Unfortunately, you can't limit which products are seen by customers based on ACL permissions. You can only prevent the purchase of particular products based on the customer role. Customers who aren't in the proper role will not see the Buy Now button.

One possibility is for you to create a topic page which uses ACL to only allow certain roles to view it. On this page, you can list all of the products which are available for purchase by customers in this role, with links to the products.
You'd need to put all of those products into ONLY a hidden category(not published) so that they do not appear in any catalog results or search results.

You can then use the Newsletter functionality to send the link to the special topic page to only customers in the special role.
6 years ago
No, if a product is limited (ACL), then a customer won't see it. He won't be able to visit its details page. It works fine out of the box
6 years ago
Thank you for the answer. On my dev server works but on my live server doesnt. I check all settings but I dont see any difference. On live through serach option customers can see products which are not on their list.
Any tips what I have to check to solve this problem?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.