Hi there,
It seems that the Customer Experience Center doesn't differentiate between carts and orders. In the code I can see there's logic to display either orders or carts using a filter:
switch (settings.OrderTypeToShow)
{
case OrderType.Order:
{
filter.Completed = OrderSearchFilter.CompletedStates.Completed;
break;
}
case OrderType.Cart:
{
filter.IsCart = true;
filter.Completed = OrderSearchFilter.CompletedStates.NotCompleted;
break;
}
However, for recurring orders it just filters on recurring and therefore mixes carts and orders:
case OrderType.Recurringorder:
{
filter.IsRecurringOrder = true;
break;
}
is that by design? And if so, should the design be changed? Seeing carts in the customer center mixed with orders is pretty confusing and it would make a lot more sense to be able to show either orders or carts.
For now, I am filtering them in the template like this:
@foreach (var order in Model.Orders.Where(x => x.Completed.HasValue && x.Completed.Value).OrderBy(o => o.StateName))
Does that look like the right approach?
Thanks!
Imar