--- url: >- https://developer.youcan.shop/themes/templates/template-types/customer-addresses.md --- # customer-addresses The `customer-addresses` template renders the addresses of the logged in customer. ## Location The `customer-addresses` template is located in the `templates` directory of the theme. ```bash └── theme ├── layout ├── templates │ ... │ ├── customer-addresses.json │ ... ... ``` ## Usage It renders at `/account/addresses`. Without this template the store shows its built-in page. Visitors who are not logged in go to the login page. Read the addresses from [`customer.addresses`](/themes/objects/customer). Use the [`customer_address`](/themes/tags/form#customer-address) form to add or update an address, and the [`customer_address_remove`](/themes/tags/form#customer-address-remove) form to remove one. After each post the customer comes back to this page. ```liquid {% for address in customer.addresses %}
{{ address.name }}, {{ address.address1 }}, {{ address.city }}, {{ address.country }}
{% if address.default %}Default{% endif %} {% form 'customer_address_remove', address %} {% endform %} {% endfor %} ```