Searching an order by a specific role

4 years ago
Hi all,
I have created a new role for a customer with different price levels. Now i have some customers with two roles: this last one (new created, for example "Role 1") and "Registered user". It's possible searching orders by customer that have "Role 1" role ?
Thanks very much
4 years ago
cesare.marasco wrote:
Hi all,
I have created a new role for a customer with different price levels. Now i have some customers with two roles: this last one (new created, for example "Role 1") and "Registered user". It's possible searching orders by customer that have "Role 1" role ?
Thanks very much


No. It is not possible in default nop. Now only orders by OrderByDescending(c => c.CreatedOnUtc). But you can do it by changing source code. CustomerService : ICustomerService  in  public virtual IPagedList<Customer> GetAllCustomers(...) action
4 years ago
@sohel
He wants to search orders, not customers
4 years ago
Thanks!