Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > number of items in shopping cart View modes: 
User avatar
Member
Member
caspian_softdev-yahoo - 8/6/2011 9:52:23 AM
   
number of items in shopping cart
HI there

how i can get number of items exist in shopping cart and then display it in mini shopping cart webpart?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 8/8/2011 7:59:29 AM
   
RE:number of items in shopping cart
Hello,

You will need to customize the mentioned web part and retrieve the count programmatically. Here is a sample code:

int count = CMS.Ecommerce.ECommerceContext.CurrentShoppingCart.CartItems.Count;

Best regards,
Boris Pocatko