More in this section
Forums / Developing with Sitefinity / ShoppingCartGrid Data

ShoppingCartGrid Data

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Henriette
    Henriette avatar
    41 posts
    20 Aug 2009
    19 Aug 2013
    Link to this post
    Hi all :-)
    I'am currently building my own shoppingcart checkout page in an ascx control. I'am using the shopping cart template as a foundation, but how can I access the data to the shoppingcart grid if I cannot map the template in sitefinity to a widget and a layout template?. Of course I can do a select statement on the tables but, is there any smarter way other way to get the grid databound? 

    Best regards
    Henrik Stensgaard 
  2. Patrick Dunn
    Patrick Dunn avatar
    237 posts
    03 Nov 2014
    21 Aug 2013
    Link to this post
    Hi Henrik,

     Thank you for using Sitefinity.

    The cart API is based on the OrdersManager. You need to initialze an instance of an orders manager and then you can access methods such as GetCart() and GetCartDetails() which will query the database for the cart.

    var om = OrdersManager.GetManager();

    Patrick Dunn
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered