customers/account
The customers/account
template renders the customer account page, which provides an overview of the customer’s account.
The customers/account
template is located in the templates
> customers
directory of the theme:
You should include the customer object in your customers/account
template or a section inside of the template.
The customer object
Anchor link to section titled "The customer object"You can access the Liquid customer
object to display the customer account details.
When working with the customers/account
template, you should familiarize yourself with the following:
Show the customer’s orders
Anchor link to section titled "Show the customer’s orders"You should show customers a list of their orders. These can be accessed through the order
attribute of the customer object, and have a limit of 20 per page. For this reason, you should paginate orders to ensure that they’re all accessible:
Show the customer’s default address
Anchor link to section titled "Show the customer’s default address"You should show customers their default address. This can be accessed through the default_address
attribute of the customer object: