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.
Properties
Section titled “Properties”| 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. |
Example
Section titled “Example”{% if customer %}Hi {{ customer.first_name }}{% else %}<a href="{{ routes.account_login_url }}">Sign in</a>{% endif %}<a href="/account/login">Sign in</a>Compatibility
Section titled “Compatibility”Since theme platform 1.0.
Was this page helpful?

