I am following document Changing the Default Basket Behavior of uCommerce. Right now that the code fails if a customer logs in. I have followed all the steps but its giving error when logged in user clicks on view my cart or Add to basket button.
error : could not resolve property: Id of: UCommerce.EntitiesV2.PurchaseOrder [.SingleOrDefault[UCommerce.EntitiesV2.PurchaseOrder](NHibernate.Linq.NhQueryable`1[UCommerce.EntitiesV2.PurchaseOrder], Quote((x, ) => (AndAlso(GreaterThan(.Count[UCommerce.EntitiesV2.OrderProperty](.Where[UCommerce.EntitiesV2.OrderProperty](x.OrderProperties, (y, ) => (AndAlso(AndAlso(Equal(y.Order.Id, x.OrderId), String.op_Equality(y.Key, p1)), String.op_Equality(y.Value, p2))), ), ), p3), Equal(x.OrderStatus.Id, p4)))), )]
I am using Umbraco v6.0.0 and uCommerce-3.0.4.13032.
Changing Basket Behavior
Hi,
I am following document Changing the Default Basket Behavior of uCommerce. Right now that the code fails if a customer logs in. I have followed all the steps but its giving error when logged in user clicks on view my cart or Add to basket button.
error : could not resolve property: Id of: UCommerce.EntitiesV2.PurchaseOrder [.SingleOrDefault[UCommerce.EntitiesV2.PurchaseOrder](NHibernate.Linq.NhQueryable`1[UCommerce.EntitiesV2.PurchaseOrder], Quote((x, ) => (AndAlso(GreaterThan(.Count[UCommerce.EntitiesV2.OrderProperty](.Where[UCommerce.EntitiesV2.OrderProperty](x.OrderProperties, (y, ) => (AndAlso(AndAlso(Equal(y.Order.Id, x.OrderId), String.op_Equality(y.Key, p1)), String.op_Equality(y.Value, p2))), ), ), p3), Equal(x.OrderStatus.Id, p4)))), )]
I am using Umbraco v6.0.0 and uCommerce-3.0.4.13032.
Hi Leena
Did you remember this part:
yes , i have included that part
I got solution for my question :)
That error is due to some mistakes in Linq query. we need to modify as per requirement
is working on a reply...