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.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Feb 05, 2013 @ 15:21
    Matt Brailsford
    0

    Item has already been added. Key in dictionary: 'basketid' Key being added: 'basketid'

    Hi,

    I seem to be hitting a problem and am not sure why. Using uCommerce, I have a multistore setup, when I go to the basket bage if it is empty, I'm getting a YSOD:

    Item has already been added. Key in dictionary: 'basketid'  Key being added: 'basketid'

    The only thing I can think this would be is that I have a basket currently running on Site 1, but when I go to Site 2 and it tries to create a basket, it fails because the ID is already set. Does this sound right? Has anyone else experienced this?

    Many thanks

    Matt

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Feb 05, 2013 @ 15:28
    Matt Brailsford
    0

    Lol, typical, as soon as you post, you realize the answer.

    The problem was actually due to some code in a custom OrderContext already fetching the basket, so by that time the cookie must already be set. So i've updated my code to try and get the curent basket first and it worked.

    Cheers anyway

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft