customer_account Function

Provides the data for the logged in customer. For example output, see CustomerAccount Resource.

Templates that access the customer account resource cannot be cached. See a guide on how to load in uncacheable resources with the template API.

{% set customer = customer_account() %}
{% if customer %}
	{{ customer.buyer.given_name }}
{% endif %}