-
9
-
55
-
26.11.2016
-
Uganda
I am new to nop commerce, How can I get vendorId of the current vendor in my custom plugin controller.
-
2
-
10
-
10.11.2016
-
India
You can use the following code.
EngineContext.Current.Resolve<IWorkContext>().CurrentVendor;
The only condition is that, logged in user should be Customer with vendor role (Vendor Manager). Otherwise the CurrentVendor will be null.