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

The product.
The quantity.
The unit.
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 _ 
) As OrderLine
public OrderLine CreateOrderLine( 
   Product product,
   double quantity,
   StockUnit unit 
)

Parameters

product
The product.
quantity
The quantity.
unit
The unit.

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