Liquid Template Variables - customer
From Spiffy Stores Knowledge Base
The Liquid template variable customer has the following attributes:
The Customer object is available in order notification objects and in the Checkout Additional Content & Scripts section, as well as in the customer templates.
Contents
- 1 customer.id
- 2 customer.email
- 3 customer.title
- 4 customer.first_name
- 5 customer.last_name
- 6 customer.name
- 7 customer.full_name
- 8 customer.credit
- 9 customer.reset_password_token
- 10 customer.wholesale (boolean)
- 11 customer.full_name
- 12 customer.title_option_tags
- 13 customer.default_address
- 14 customer.addresses
- 15 customer.addresses_count
- 16 customer.orders
- 17 customer.orders_count
- 18 customer.recent_order
- 19 customer.total_spent
- 20 customer.new_address
- 21 customer.errors
- 22 customer.metafields
customer.id
Returns the unique internal number of the customer.
This is normally only for internal usage.
customer.email
Returns the email address of the customer.
customer.title
Returns the customer's title, such as 'Mr', 'Mrs', 'Ms', 'Dr' or 'Professor'
customer.first_name
Returns the customer's first name.
customer.last_name
Returns the customer's last name.
customer.name
Returns the customer's name, without a title.
customer.full_name
Returns the customer's name, including the title.
customer.credit
customer.reset_password_token
customer.wholesale (boolean)
customer.full_name
customer.title_option_tags
customer.default_address
customer.addresses
customer.addresses_count
customer.orders
customer.orders_count
customer.recent_order
customer.total_spent
customer.new_address
customer.errors
customer.metafields
Return the metafields for the customer.
Metafields can only be managed using the Spiffy Stores API.