Friendly product - RelatedProductAddPopup

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

How to turn off - "the vendor can only see their products" as appoint "related products" (window - RelatedProductAddPopup)?


The reason: there may be products of other vendors who need to do related.

Thanks :0)
7 years ago
Hi,

You can remove this logic in the "RelatedProductAddPopupList" method of \Nop.Admin\Controllers\ProductController.cs. Remove the following lines of code:

if (_workContext.CurrentVendor != null)
{
   model.SearchVendorId = _workContext.CurrentVendor.Id;
}
7 years ago
a.m. wrote:
Hi,

You can remove this logic in the "RelatedProductAddPopupList" method of \Nop.Admin\Controllers\ProductController.cs. Remove the following lines of code:

if (_workContext.CurrentVendor != null)
{
   model.SearchVendorId = _workContext.CurrentVendor.Id;
}


Thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.