3dak Client

Mandantor.AddOrder Method (Contact, Contact, Page)

Adds new Order to the Database

[Visual Basic]
Public Function AddOrder( _ 
   ByVal Contact As Contact, _ 
   ByVal Contact As Contact, _ 
   ByVal Page As Page _ 
) As Order
[C#]
public Order AddOrder(
   Contact Contact,
   Contact Contact,
   Page Page
);
[C++]
public: Order* AddOrder(
   Contact* Contact,
   Contact* Contact,
   Page* Page
);
[JScript]
public function AddOrder(
   Contact Contact,
   Contact Contact,
   Page Page
): Order;

Parameters

ShippingContact
Contact containing Data about Customer the Shipment is delivered to
BillingContact
Contact containing Data of Customer who will get the Bill.
Page
Web Page object the Function is called from to logg IP Address

Return Value

New Order Object for Transaction

Remarks

Price is set to 0 due to the fact that no OrderItems are yet provided. OrderItems have to be added to the Order afterwards. Shipping and Billing Contact are freshly saved to the Database. If not same Object 2 Datarows are created.

Exceptions

Exception TypeCondition
InvalidCredentialExceptionIndicates that no Authorization Context was provided

See Also

Mandantor Class | ppm3dakClient.Shop Namespace | Mandantor.AddOrder Overload List