How to check if a customer is logged in? 👤

### Explanation To check if a customer is logged in: ```liquid {% if customer %} Welcome back, {{ customer.first_name }}! {% else %} Please log in {% endif %} ``` Key points: - Simply use `{% if customer %}` to check login status - `customer` object evaluates to true when logged in, false when not - `customer` object available globally - Common customer properties: - `first_name` - `last_name` - `email` - `orders_count` - `tags` - Returns false for guest checkout Reference: [Shopify Customer Object](https://shopify.dev/docs/api/liquid/objects/customer)

Answer Options:

  • {% if customer %}
  • {% if customer.exists %}
  • {% if customer.has_account %}
  • {% if customer.active %}
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]