customer
The customer
object represents the logged in customer and it contains following attributes:
Object Fields
Field | Data Type | Description |
---|---|---|
customer.id | String | Returns the ID of the customer. |
customer.name | String | Returns the name of the customer. |
customer.email | String | Returns the email address of customer. |
Code Example
<a class=""
{% if customer == blank %}
href="/users/sign_in"
{% else %}
href="/users/{{ customer.id }}/edit"
{% endif %}>
</a>
Updated about 1 year ago