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.

  • jaizedelmann 19 posts 41 karma points
    Sep 17, 2010 @ 11:51
    jaizedelmann
    0

    Fail to get current basket from GetBasket().Current

     SiteContext.Current.CatalogContext.CurrentCatalogName = "DummyCat";

                basketSize.Text = Library.GetBasket().Current.ToString();

     

     

    I simply get no catalog exist for current user in my watch, do i need to initialize a catalog on session start for a user?

     

    (im not running inside the demo store)

  • jaizedelmann 19 posts 41 karma points
    Sep 17, 2010 @ 12:00
    jaizedelmann
    0

    Sorry this is the error i get: No basket exist for the current user.

     

    for some reason i cant edit my post on the umbraco forums

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 17, 2010 @ 15:17
    Søren Spelling Lund
    0

    If you do GetBasket(true) a new basket will be created for you. Also it's important that you've got context for a store and a catalog as the basket is created with this context in mind, e.g. for currency of the basket.

  • jaizedelmann 19 posts 41 karma points
    Sep 20, 2010 @ 11:49
    jaizedelmann
    0

    Thanks Søren, made the trick!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 20, 2010 @ 15:20
    Søren Spelling Lund
    0

    Glad to be of assistance. Cloud you mark the topic solved? Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft