# User Orders
User Orders component allows your registered customers to view their order history. It takes advantage of Reflow's Store Registrations feature.
The component has two states depending on the customer status:
- Guest - Shown when the customer is not logged in. This state displays a button for signing in with an existing account or creating a new one.
- Authenticated - For logged in users, the
User Orderscomponent shows a list of orders.
The screenshot below shows a list of previous orders for a signed-in user.
# How to Embed
To embed this component on your website include the reflow library, and add the following tag somewhere in the
<body> of your page:
# Supported Attributes
You can configure the auth button behavior and the way it's rendered by specifying additional
|data-reflow-type|| ||Must always be set.|
|data-reflow-show|| ||(optional) Comma separated list of sections to display in the order list table. The sections not in the list will be hidden. |
|data-reflow-page||page number||(optional) Choose which page of results to show. If not set, displays the first page. |
|data-reflow-perpage||results per page||(optional) How many orders you wish to show per page. Defaults to 20.|
|data-reflow-order-page-url||URL||(optional) If set, this attribute wraps the orders table rows into links that point to the URL you've set. Each table row will append the respective order's |