Order History Web Part
The Order History Web Part displays the shopper's past transactions.
Architecture
The Order History Web Part contains these components:
OrderHistoryWebPart/SPOrderHistoryWebPart: loads the specified user control dynamically. Derived from the BaseUserControlWebpart class.
OrderHistory.ascx User Control: displays available filters, makes the appropriate call to the OrderController, and uses a ListControl to display the results.
ListControl Web Control: displays a list of commerce entities (columns are defined in the markup).
OrderController: encapsulates all multi-channel commerce foundation calls that relate to adding items to a cart and checkout-related operations.
Properties
Property |
Maps to |
---|---|
CSS Class for "disabled" state |
CssClassDisabledControl |
CSS Class for "enabled" state |
CssClassEnabledControl |
CSS Class for "current page number" |
CssClassPageSelected |
CSS Class for "other pages" |
CssClassPageUnselected |
Maximum # of results per page |
ItemsPerPage |
"Next" button text |
NextButtonText |
"Order Id" URL parameter |
OrderIdUrlKey |
"Previous" button text |
PreviousButtonText |
Customization
You can customize the Order History Part modifying the ASCX control to add or remove columns.
Error Handling
There is no design-time error handing required for this Web Part.
API Dependencies
The dependency on the API is:
- Retrieve orders for a shopper (Basket commerce entity).