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...) |
(No difference)
|
Revision as of 14:53, 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 }}
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:
Template:Billing address.last name, Template: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