Dynamicweb.eCommerce.Prices Namespace > PriceInfo Class > Add Method : Add(IWithPrice) Method |
'Declaration
Public Overloads Overridable Function Add( _ ByVal priceholder As IWithPrice _ ) As PriceInfo
public virtual PriceInfo Add( IWithPrice priceholder )
class MyPage : System.Web.UI.Page { public Dynamicweb.eCommerce.Prices.PriceInfo GetPrices(Dynamicweb.eCommerce.Orders.Order order) { Dynamicweb.eCommerce.Prices.PriceInfo AccPrice = new Dynamicweb.eCommerce.Prices.PriceInfo(); foreach (OrderLine line in OrderLine.getOrderLines(order)) { AccPrice = AccPrice.Add(line); } return AccPrice; } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2