Hello -
I have developed several custom steps for an enhanced checkout process (Kentico 5.5r2). On one of these steps I need to iterate through the shopping cart items in order to get information about each item that has been added. I am having trouble figuring out how to do this.
In particular, I am interested in the quantity of a particular item that has been added, but I would need to check other properties as well.
e.g. (psuedo code!!)
foreach (CartItem item in ShoppingCart.Items)
{
if (item.quantity > 10)
{
// do something . . .
}
if (item.veryInterestingProperty == "lolz")
{
// do some other thing . . .
}
}
Thanks for any help!