3dak Client

Order.AddOrderItem Method 

Adds an OrderItem to current Order and calculates new Order Price

[Visual Basic]
Public Function AddOrderItem( _ 
   ByVal Decimal As Decimal, _ 
   ByVal Int32 As Int32, _ 
   ByVal article As article, _ 
   ByVal String As String, _ 
   Optional ByVal String As String = "", _ 
   Optional ByVal Int64 As Int64 = 0 _ 
) As OrderItem
[C#]
public OrderItem AddOrderItem(
   decimal Decimal,
   int Int32,
   article article,
   string String,
   string String,
   long Int64
);
[C++]
public: OrderItem* AddOrderItem(
   decimal Decimal,
   int Int32,
   article* article,
   String* String,
   String* String,
   __int64 Int64
);
[JScript]
public function AddOrderItem(
   Decimal Decimal,
   int Int32,
   article article,
   String String,
   String String,
   long Int64
): OrderItem;

Parameters

Price
Price of Products
Quantity
Quantity of Products
Article
Article of this OrderItem
Name
ProductName
Comments
Weight

Return Value

Newly created OrderItem

Remarks

Requires Authentication Context Price is not multiplied with Quantity!

Exceptions

Exception TypeCondition
InvalidCredentialExceptionIndicates that no Authorization Context was provided

See Also

Order Class | ppm3dakClient.Shop Namespace