Access customer account and authentication information
user
object contains information about logged-in customers when the login/account feature is enabled in your store. It’s used to create account management functionality and personalized experiences.
shop.login_active
is true - check login status and display account-related contentProperty | Type | Description |
---|---|---|
user.logged_in | Boolean | Check if visitor is logged in |
user.login_url | String | Output link to Login / My Account page |
{{#shop.login_active}}
to ensure the feature is enableduser.login_url
leads to the same page for both login and account management/logout
endpoint, not through the login_url{{#user.logged_in}}
and {{^user.logged_in}}
for clear conditional logic