Company location name

I want to replace the icon of the customer’s account with the name of the location he is currently booking for. This is a B2B customer who has a lot of locations and wants to always see the name of the location for which he orders.

I found this code:
{% if customer %}
Hi, {{ customer.first_name }}!
{% else %}}
{% render ‘icon-account’ %}
{% endif %}

, but the code shows the name of the person making the order and not his

Use the current_location field in the customer liquid object to display the location the customer is currently booking for.

1 Like