- Getting Started
- Liquid reference
- Filters reference
- Tags reference
- Localization
- Theme structure
- Theme sections
- Theme assets
- Theme config
- Theme layout
- Theme templates
-
- article.liquid
- blog.liquid
- cart.liquid
- collection.liquid
- customer/account.liquid
- customer/addresses.liquid
- customer/details.liquid
- customer/login.liquid
- customer/order.liquid
- customer/register.liquid
- customer/reset-password.liquid
- home.liquid
- page.no-heading.liquid
- products.liquid
- search.liquid
- list-collections.liquid
- store-locator.liquid
- 404.liquid
- customer/activate_account.liquid
- customer/orders.liquid
- Submission
customer
The customer object contains information about a customer who has a customer account.
customer.id
Returns the id of the customer.
customer.name
Returns the full name of the customer.
customer.addresses_count
Returns the number of addresses associated with a customer.
customer.first_name
Returns the first name of the customer.
customer.last_name
Returns the last name of the customer.
customer.email
Returns the email address of the customer.
customer.orders
Returns an array of all orders placed by the customer. More info ›
{% for order in customer.orders %}
{{ order.id }}
{% endfor %}
#1101
#1102
#1103
customer.addresses
Returns an array of all addresses associated with a customer. See customer_address for a full list of available attributes. More info ›
{% for address in customer.addresses %}
{{ address.zip }}
{% endfor %}
53300
53000
47100
customer.default_address
Returns the default customer_address.
customer.phone
Returns the phone number of the customer.
customer.gender
Returns the gender of the customer.
customer.birthdate
Returns the birthdate of the customer.
customer.avatar_url
Returns the URL of the customer's avatar image.
customer.membership
Returns the customer's membership, including tier and progress information.
customer.rewards
Returns the rewards available to the customer.
customer.total_point
Returns the total number of points the customer has.
customer.total_credit
Returns the total store credit the customer has.
customer.expiring_points
Returns the customer's points that are due to expire.
customer.is_optional_fields_filled
Returns true if the customer has filled in the optional account fields, or false if they have not.