Difference between revisions of "Liquid Template Variables - address"

From Spiffy Stores Knowledge Base

(New page: Address objects are found in order confirmation emails and the ''Additional Content & Scripts'' section of the Checkout. Example usage: Format an address object for displaying in a confi...)
 
Line 18: Line 18:
 
== <code>address.name</code> ==
 
== <code>address.name</code> ==
  
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.
+
Name of the addressee.
  
Example:
+
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.
  
{{ billing_address.last_name }}, {{ billing_address.first_name }} => Luetke, Tobias
+
Example usage:
 +
 
 +
<pre>{{ billing_address.last_name }}, {{ billing_address.first_name }} => Bloggs, Fred</pre>
 +
 
 +
== <code>address.first_name</code> ==
 +
 
 +
The first name of the addressee.
 +
 
 +
== <code>address.last_name</code> ==
 +
 
 +
The last name of the addressee.
  
 
== <code>address.street</code> ==
 
== <code>address.street</code> ==
  
Street address ( this is combined from address1 and address2 and can be used instead of those two seperate fields. )
+
The street address of the addressee.
 +
 
 +
This is a combined address, made up of both address1 and adress2.
  
 
== <code>address.address1</code> ==
 
== <code>address.address1</code> ==
  
First line if the address
+
The first line of the address.
  
 
== <code>address.address2</code> ==
 
== <code>address.address2</code> ==
  
Second line if the address
+
The second line of the address.
  
 
== <code>address.company</code> ==
 
== <code>address.company</code> ==
  
Company if given
+
The company name, if supplied.
  
 
== <code>address.city</code> ==
 
== <code>address.city</code> ==
  
City
+
The city of the addressee.
  
 
== <code>address.province</code> ==
 
== <code>address.province</code> ==
  
Province. Written out ( e.g. Oregon, British Columbia)
+
The full name of the province, state or region. This is not an abbreviated value.
  
 
== <code>address.zip</code> ==
 
== <code>address.zip</code> ==
  
Zip or Postal code
+
The Zip or Postal code.
  
 
== <code>address.country</code> ==
 
== <code>address.country</code> ==
  
Country. Written out ( e.g. United States, Canada)
+
The full name of the country. This is not an abbreviated value.
  
 
== <code>address.phone</code> ==
 
== <code>address.phone</code> ==
  
Phone number if supplied
+
The phone number, if supplied.

Revision as of 15:11, 15 May 2008

Address objects are found in order confirmation emails and the Additional Content & Scripts section of the Checkout.

Example usage:

Format an 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 }}

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 usage:

{{ billing_address.last_name }}, {{ billing_address.first_name }} => Bloggs, Fred

address.first_name

The first name of the addressee.

address.last_name

The last name of the addressee.

address.street

The street address of the addressee.

This is a combined address, made up of both address1 and adress2.

address.address1

The first line of the address.

address.address2

The second line of the address.

address.company

The company name, if supplied.

address.city

The city of the addressee.

address.province

The full name of the province, state or region. This is not an abbreviated value.

address.zip

The Zip or Postal code.

address.country

The full name of the country. This is not an abbreviated value.

address.phone

The phone number, if supplied.