Address

From Shopify Wiki

Jump to: navigation, search

Address objects are usually found in order confirmation emails and similar.


Examples:


Format a address object for displaying in a confirmation email:

Shipping address:
  {{ shipping_address.name }}
  {{ shipping_address.street }}
  {{ shipping_address.city }}, {{ shipping_address.province }}  {{ shipping_address.zip }} 
  {{ shipping_address.country }}
  {{ shipping_address.phone }}


Contents

Reference

address.name

Name of the addressee. You can also use address.first_name and address.last_name to access the individual parts if you want to display the customer name with special formatting.

Example:

{{ billing_address.last_name }}, {{ billing_address.first_name }} => Luetke, Tobias

address.street

Street address ( this is combined from address1 and address2 and can be used instead of those two seperate fields. )

address.address1

First line if the address

address.address2

Second line if the address

address.company

Company if given

address.city

City

address.province

Province. Written out ( e.g. Oregon, British Columbia)

address.zip

Zip or Postal code

address.country

Country. Written out ( e.g. United States, Canada)

address.phone

Phone number if supplied

Personal tools