Query details of orders

Query a single order detail

To query a single order detail, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the order detail.
    To get the order detail, you must either call the GetOrderDetail method and pass the ID of the order detail as an argument, or call the GetOrderDetails method and filter the collection by the desired criteria.

Use the following code samples to query a single order detail by its ID:

Query order details by order

To query order details by order, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.  
  2. Get the order details.
    To get the order details, you must call the GetOrderDetails method of the manager and filter the query by the ID of the order.

Use the following code sample:

Query all order details

To query all order details, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the order details.
    To get the order details, you must call the GetOrderDetails method of the manager.

Use the following code sample:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?