Lantern
Liquid API

is_advocate

Check if a customer has successfully referred others to earn advocate status.

Syntax

customer.metafields.lantern.is_advocate

Description

The is_advocate metafield indicates whether a customer has successfully referred other customers who completed their first purchase. Advocate status is earned when referrals result in completed orders, and it can unlock special benefits or recognition in your loyalty program.

Advocate status is earned through successful referrals and may unlock additional program benefits.

Properties

Type: Boolean Namespace: lantern Auto-updated: Yes

Return Values

ScenarioValueType
Has successful referralstrueBoolean
No successful referralsfalseBoolean
Not eligible for referralsnullnull
Logged outnullnull

Examples

Basic Advocate Status

{% assign is_advocate = customer.metafields.lantern.is_advocate %}
{% if is_advocate %}
  <div class="advocate-badge">
    <span class="badge badge-gold">🌟 Advocate</span>
    <p>Thank you for spreading the word!</p>
  </div>
{% endif %}