我想从电子商务 - > reports->顶级产品中获取客户购买的顶级产品 有没有办法拿这些细节
答案 0 :(得分:1)
您可以使用Order API来实现此目的。
OrderApi _orderApi = new OrderApi();
OrderReportData report = new OrderReportData();
Criteria<OrderProperty> orderCriteria = new Criteria<OrderProperty>();
orderCriteria.AddFilter(OrderProperty.DateCreated, CriteriaFilterOperator.LessThanOrEqualTo, DateTime.Now.Date);
orderCriteria.AddFilter(OrderProperty.DateCreated, CriteriaFilterOperator.GreaterThanOrEqualTo, DateTime.Now.Date.Subtract(new TimeSpan(1, 0, 0, 0)));
orderCriteria.PagingInfo = new PagingInfo(_orderApi.RequestInformationRef.PagingSize);
report = _orderApi.GetReport(orderCriteria, _qty, EkEnumeration.TopProductsSortType.TotalSold);