Hi there:
1. You can call ShopManager.AddProductToCart multiple times, each time passing a single product to it.
Alternatively, you could write an overload for AddProductToCart that accepts a List (Of Product) or an Array of Products and adds them to the cart.
2. Products are very light weight objects; you need to store a whole lot of products in the cat before you'd notice memory issues.
However, if you're worried about that, you could store the cart in the Profile. You can define a property of type ShoppingCart in the web.config and the shopping cart can then be saved in the database through the Profile feature of ASP.NET.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.