nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.08k stars 5.19k forks source link

A store owner can choose categories in which vendors can place their products. #7242

Open AndreiMaz opened 2 weeks ago

AndreiMaz commented 2 weeks ago

Let's add a new boolean property to the "Category" entity that will manage whether a vendor can add products to this category. Its name will be "Restrict from vendors". The hint will be "Check to restrict vendors from adding products to this category. This option is useful when you have multi-vendors enabled in your store". The default value will be "false" (so any vendor can add products to this category)

So once enabled vendors won't see this category on the "Add product" or "Edit product" pages in admin area. Also do not forget to add appropriate validation login to the server-side when saving products submitted by vendors