Is there a vendor login? Where can I see its demo?
No but you can create one in admin demo: admin>customer>vendor>add admin>customers>manage customers>add . Do not forget to declare him as a Manager of the vendor you just created and to give hime the Vendor role Log-out as administrator and log-in with the credentials of the new vendor you just create Take notice that the admin demo is reseted every hour and you vendor will be erase :((
var registrationRequest = new CustomerRegistrationRequest(customer, model.Email,customerSettings.UsernamesEnabled ? model.Username : model.Email, model.Password, customerSettings.DefaultPasswordFormat, isApproved); var registrationResult = _customerRegistrationService.RegisterCustomer(registrationRequest);
the role in adminstration only appears as registered
thank you :)
//add to 'Vendor' role in CustomerRegistrationService.cs, RegisterCustomer methos var vendorRole = _customerService.GetCustomerRoleBySystemName(SystemCustomerRoleNames.Vendors); if (vendorRole == null) throw new NopException("'Vendor' role could not be loaded"); request.Customer.CustomerRoles.Add(vendorRole);
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.