Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
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
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.
Thanks Søren, made the trick!
Glad to be of assistance. Cloud you mark the topic solved? Thanks.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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)
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
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.
Thanks Søren, made the trick!
Glad to be of assistance. Cloud you mark the topic solved? Thanks.
is working on a reply...