示例#1
0
        protected IEnumerable <ActiveCommerce.Orders.Legacy.Order> GetLegacyOrders()
        {
            var manager = Sitecore.Ecommerce.Context.Entity.Resolve <Sitecore.Ecommerce.DomainModel.Orders.IOrderManager <Sitecore.Ecommerce.DomainModel.Orders.Order> >();

            //need at least one condition in the query or the SES OrderManager will throw an error
            var query = new Sitecore.Ecommerce.Search.Query();

            query.AppendField("ItemsInShoppingCart", "-1", Sitecore.Ecommerce.Search.MatchVariant.NotEquals);
            return(manager.GetOrders(query).Cast <ActiveCommerce.Orders.Legacy.Order>());
        }
示例#2
0
 public System.Data.DataTable GetRangeByQuery(Sitecore.Ecommerce.Search.Query query, int pageIndex, int pageSize, Sitecore.Ecommerce.Services.ServiceClientArgs args)
 {
     return(base.Channel.GetRangeByQuery(query, pageIndex, pageSize, args));
 }
示例#3
0
 public int GetCount(Sitecore.Ecommerce.Search.Query query, Sitecore.Ecommerce.Services.ServiceClientArgs args)
 {
     return(base.Channel.GetCount(query, args));
 }
示例#4
0
 public System.Data.DataTable GetByQuery(Sitecore.Ecommerce.Search.Query query, Sitecore.Ecommerce.Services.ServiceClientArgs args)
 {
     return(base.Channel.GetByQuery(query, args));
 }