Skip to main content
Lantern stores all customer loyalty data as Shopify metafields and metaobjects, making it accessible through Shopify’s Liquid templating language. This allows you to build custom loyalty experiences directly in your theme.
All data is automatically updated by Lantern and cached for optimal storefront performance.

Available Metafields

The following metafields are available for accessing Lantern data:

Customer Profile

Loyalty Program

Referral Program

Usage Example

All Lantern metafields are accessed through the customer.metafields object in Liquid. Most use the lantern namespace.

Authentication

Metafields are only available for logged-in customers. When a customer is not logged in, all metafields will return null or be undefined. Learn more about accessing metafields in Liquid on Shopify.