Address templates allow you to create a customer address book. 

addresses/index.liquid

This template is used to render a page of customer addresses. Each address can be viewed, edited and deleted. On this page you can use the addresses  variable which is an array of the current shopper's addresses. You can loop over them using a standard liquid loop like so:

{% for address in addresses %}
  <div>{{ address.full_name }}</div>
  <div>{{ address.city_state_postal_code }}</div>
{% endfor %}

addresses/new.liquid

This template is used to render a form for creating a new address in the shopper's address book. The form input names are the following:

address[first_name]
String - First Name

address[last_name]
String - Last Name

address[company_name]
String - Company name

address[street]
String - The street number and name

address[street_two]
String - The apartment/building/suite number

address[city]
String - City

address[state]  
String - State or region

address[postal_code]  
String - Postal or region code for the address

address[country_code]
String - The two-character country code

address[phone_number]
String - Phone number (formatting allowed)

address[primary_billing]
Boolean - Indicates if it should be used as the shoppers default billing address for future orders

address[primary_shipping]
Boolean - Indicates if this address should be used as the shopper's default shipping address for 

address[company_name]
String - Company name for the address

Did this answer your question?