Skip to content

customer

The signed-in customer, nil for guests.

Order history and addresses are on the account pages, which Sooquna draws for the theme.

Available in: Every template.

Property Type Description
customer.id string ID.
customer.name string Full name.
customer.first_name string First name.
customer.last_name string Last name.
customer.email string Email.
customer.orders_count number Number of orders.
customer.has_account boolean Always true when signed in.
Liquid
{% if customer %}Hi {{ customer.first_name }}{% else %}<a href="{{ routes.account_login_url }}">Sign in</a>{% endif %}
Output
<a href="/account/login">Sign in</a>

Since theme platform 1.0.

Was this page helpful?