Searching orders in admin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
In order service:

public List<Order> SearchOrders


Change
where (String.IsNullOrEmpty(customerEmail) || c.Email.Contains(customerEmail)) 

To
where (String.IsNullOrEmpty(customerEmail) || c.Email.Contains(customerEmail) || o.ShippingEmail.Contains(customerEmail) || o.BillingEmail.Contains(customerEmail)) 


This will search guest orders by email also.
12 years ago
Thanks, Will
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.