Dynamicweb 8 Documentation
CreateOrderLine(Product,Double,StockUnit,PriceInfo) Method

The product.
The quantity.
The unit.
The unit price of the product. Use this if unit price should be different from the price of the product.
Adds a new OrderLine to the OrderLineCollection of this Order based on the given Dynamicweb.eCommerce.Products.Product.
Syntax
'Declaration
 
Public Overloads Function CreateOrderLine( _ 
   ByVal product As Product, _ 
   ByVal quantity As Double, _ 
   ByVal unit As StockUnit, _ 
   ByVal unitPrice As PriceInfo _ 
) As OrderLine
public OrderLine CreateOrderLine( 
   Product product,
   double quantity,
   StockUnit unit,
   PriceInfo unitPrice 
)

Parameters

product
The product.
quantity
The quantity.
unit
The unit.
unitPrice
The unit price of the product. Use this if unit price should be different from the price of the product.

Return Value

The OrderLine that was added to the Order.
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

Order Class
Order Members
Overload List

Send Feedback