Is there a vendor login? Where can I see its demo?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Is there a vendor login? Where can I see its demo?
10 years ago
ppatwari wrote:
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 :((
10 years ago
thanks...
9 years ago
is there a way to register as vendor ?

i tried this way but with no sucess !

var vendor = new Vendor();
                    vendor.Email = model.Email;
                    vendor.Name = model.FirstName + " " + model.LastName;
                    vendor.Active = true;
                    vendor.PageSize = 4;
                    vendor.AllowCustomersToSelectPageSize = true;
                    vendor.PageSizeOptions = "8, 4, 12";
                    vendorService.InsertVendor(vendor);
                    customer.IsVendor();  



....then save customer

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  :)
9 years ago
Maybe this plugin can do the job
8 years ago
[email protected] wrote:
is there a way to register as vendor ?

i tried this way but with no sucess !

var vendor = new Vendor();
                    vendor.Email = model.Email;
                    vendor.Name = model.FirstName + " " + model.LastName;
                    vendor.Active = true;
                    vendor.PageSize = 4;
                    vendor.AllowCustomersToSelectPageSize = true;
                    vendor.PageSizeOptions = "8, 4, 12";
                    vendorService.InsertVendor(vendor);
                    customer.IsVendor();  



....then save customer

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  :)


Exactly what I wants. Thanks
8 years ago
[[email protected]]is there a way to register as vendor ?

i tried this way but with no sucess !

var vendor = new Vendor();
                    vendor.Email = model.Email;
                    vendor.Name = model.FirstName + " " + model.LastName;
                    vendor.Active = true;
                    vendor.PageSize = 4;
                    vendor.AllowCustomersToSelectPageSize = true;
                    vendor.PageSizeOptions = "8, 4, 12";
                    vendorService.InsertVendor(vendor);
                    customer.IsVendor();  



....then save customer

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.