Dynamicweb 8 Documentation
Add(IWithPrice) Method
Example 

The priceholder.
Adds the specified priceholder.
Syntax
'Declaration
 
Public Overloads Overridable Function Add( _ 
   ByVal priceholder As IWithPrice _ 
) As PriceInfo
public virtual PriceInfo Add( 
   IWithPrice priceholder 
)

Parameters

priceholder
The priceholder.
Example
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;
   }
}
Requirements

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

See Also

Reference

PriceInfo Class
PriceInfo Members
Overload List

Send Feedback