Developer forum

Forum » Development » How to get cart from session?

How to get cart from session?


Reply
Im in a ProductTemplateExtender. And i need to get out the current user's basket. I've triede doing: Dynamicweb.eCommerce.Orders.Order o = (Dynamicweb.eCommerce.Orders.Order)HttpContext.Current.Session["eComCart"]; But failed :S

Replies

 
Reply
Helps to put on a try catch and put something in the basket : )
 
Reply
We have been told and can confirm the safest way to go is to use: Dynamicweb.eCommerce.Common.Context.Cart

 

You must be logged in to post in the forum