customer-account
The customer-account template renders the account page of the logged in customer.
Location
The customer-account template is located in the templates directory of the theme.
bash
└── theme
├── layout
├── templates
│ ...
│ ├── customer-account.json
│ ...
...Usage
It renders at /account and /account/orders. Without this template the store shows its built-in pages. Visitors who are not logged in go to the login page.
Read the customer from the customer object. Use the customer_update form to edit the details.
liquid
<h1>{{ customer.name }}</h1>
<a href="{{ routes.account_addresses_url }}">Addresses ({{ customer.addresses_count }})</a>
<a href="{{ routes.account_logout_url }}">Log out</a>
{% paginate customer.orders by 10 %}
{% for order in customer.orders %}
<a href="{{ order.customer_url }}">{{ order.name }}</a>
<span>{{ order.fulfillment_status }}</span>
{% endfor %}
{% endpaginate %}