Shopping Cart - Token/ID for current (guest) user

Vote:
 

How do I find the cart ID for the current guest user?

#207802
Oct 03, 2019 17:05
Vote:
 

I was able to figure this out, ended up picking up the token from the UserContext.Current.GetCartId method, and then passing in the type of cart I was looking for.

#207803
Oct 03, 2019 17:58
Quan Mai - Oct 04, 2019 13:11
There is no such thing as UserContext in Episerver APIs
Vote:
 

Are you lookin for this?

Mediachase.Commerce.Customers.CustomerContext.Current.CurrentContactId

#207808
Oct 03, 2019 19:40
Praful Jangid - Oct 03, 2019 19:41
Sorry, I am late to the party.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.