Liquid API
is_advocate
Check if a customer has successfully referred others to earn advocate status.
Syntax
customer.metafields.lantern.is_advocateDescription
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
| Scenario | Value | Type |
|---|---|---|
| Has successful referrals | true | Boolean |
| No successful referrals | false | Boolean |
| Not eligible for referrals | null | null |
| Logged out | null | null |
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 %}