Difference between revisions of "Liquid Template Variables - customer"
From Spiffy Stores Knowledge Base
m |
|||
Line 1: | Line 1: | ||
− | The | + | 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. |
+ | |||
+ | == <code>customer.id</code> == | ||
+ | |||
+ | Returns the unique internal number of the customer. | ||
+ | |||
+ | This is normally only for internal usage. | ||
== <code>customer.email</code> == | == <code>customer.email</code> == | ||
Line 11: | Line 17: | ||
Returns the full name of the customer. | Returns the full name of the customer. | ||
+ | == <code>customer.credit</code> == | ||
+ | |||
+ | == <code>customer.reset_password_token</code> == | ||
+ | |||
+ | == <code>customer.wholesale (boolean)</code> == | ||
+ | |||
+ | == <code>customer.full_name</code> == | ||
+ | |||
+ | == <code>customer.title_option_tags</code> == | ||
+ | |||
+ | == <code>customer.default_address</code> == | ||
+ | |||
+ | == <code>customer.addresses</code> == | ||
+ | |||
+ | == <code>customer.addresses_count</code> == | ||
+ | |||
+ | == <code>customer.orders</code> == | ||
+ | |||
+ | == <code>customer.orders_count</code> == | ||
+ | |||
+ | == <code>customer.recent_order</code> == | ||
+ | |||
+ | == <code>customer.total_spent</code> == | ||
+ | == <code>customer.new_address</code> == | ||
− | + | == <code>customer.errors</code> == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | customer.errors | ||
== <code>customer.metafields</code> == | == <code>customer.metafields</code> == |
Revision as of 10:07, 12 February 2016
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.name
- 4 customer.credit
- 5 customer.reset_password_token
- 6 customer.wholesale (boolean)
- 7 customer.full_name
- 8 customer.title_option_tags
- 9 customer.default_address
- 10 customer.addresses
- 11 customer.addresses_count
- 12 customer.orders
- 13 customer.orders_count
- 14 customer.recent_order
- 15 customer.total_spent
- 16 customer.new_address
- 17 customer.errors
- 18 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.name
Returns the full name of the customer.
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.