Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Leena 29 posts 100 karma points
    Mar 18, 2013 @ 07:28
    Leena
    0

    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.

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Mar 18, 2013 @ 15:35
    Nickolaj Lundgreen
    0

    Hi Leena

    Did you remember this part:

    // Otherwise try and load a basket for the current member, create one if it doesn't exist
                Basket basket = GetBasketForCurrentMember() ?? CreateBasket();
  • Leena 29 posts 100 karma points
    Mar 19, 2013 @ 10:23
    Leena
    0

    yes , i have included that part

  • Leena 29 posts 100 karma points
    Mar 19, 2013 @ 10:24
    Leena
    0

    I got solution for my question :)
    That error is due to some mistakes in Linq query. we need to modify as per requirement

Please Sign in or register to post replies

Write your reply to:

Draft