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?
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.
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
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
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.