The customer object represents the logged in customer and it contains following attributes:


Object Fields

FieldData TypeDescription
customer.idStringReturns the ID of the customer.
customer.nameStringReturns the name of the customer.
customer.emailStringReturns the email address of customer.

Code Example

<a class="" {% if customer == blank %} href="/users/sign_in" {% else %} href="/users/{{ customer.id }}/edit" {% endif %}> </a>