Forum
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Login
Service Desk
Order
Sections
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Developer forum
×
E-mail notifications
E-mail
I'd like to be informed of the updates
Don't bother me with any emails
Forum
»
Development
»
How to get cart from session?
How to get cart from session?
E-mail notifications
Reply
Posted on 23/09/2009 10:36:51
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"];
Dynamicweb.eCommerce.Orders.Order o = (Dynamicweb.eCommerce.Orders.Order)HttpContext.Current.Session["eComCart"];
But failed :S
Replies
Posted on 23/09/2009 10:54:01
Reply
Helps to put on a try catch and put something in the basket : )
Posted on 23/09/2009 11:03:10
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
Login
Username
Password
Forgot your password?