Working with the Order Details Web Part
The Order Details Web Part displays the current order.
Architecture
The Order Details Web Part contains the following components:
OrderDetail.ascx User Control. Defines the possible actions that the shopper can take and handles these events. This user control includes an XsltBasketControl server control.
XsltBasketControl Web Control. Builds an XML stream from the Basket commerce entity and then applies the specified template.
OrderController. Encapsulates all Commerce Foundation calls relating to querying orders.
Properties
The following tables lists and describes the Order Details Web Part properties.
Property |
Maps to |
Type |
Description |
Default value |
---|---|---|---|---|
Template To Display |
na |
String |
Template file to use to render the lists in the browser. |
DefaultSite_OrderConfirmation |
XSL template URL |
XslTemplateUrl |
String |
URL key to get the XSL template. |
none |
"Order Id" URL parameter |
OrderIdUrlKey |
String |
URL key where the Order Id will be retrieved |
OrderId |
User Control Name |
UserControlName |
String |
The user control that displays the order details |
OrderDetails.ascx |
Customization
You can customize the Order Details Web Part by modifying the XSLT template.
Error Handling
There is no design-time error handing required for this Web Part.
API Dependencies
The dependencies on the API are:
Basic operations relating to the Basket commerce entity and related items:
Retrieve line items
Retrieve addresses
Retrieve payments
Retrieve promotion codes
Retrieve shipments
Retrieve discounts
Retrieve available payment methods
Retrieve available shipping methods
See Also
Other Resources
Developing with SharePoint Commerce Services