Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.elasticfunnels.io/llms.txt

Use this file to discover all available pages before exploring further.

How variables work

Template variables use double curly braces: {{ variable.path }}. When an email is sent, each variable is replaced with the actual value from the transaction. Variables are grouped by scope — each email type has access to different scopes depending on the data available at send time.

Brand variables (all emails)

Every email template has access to these brand-level variables:
VariableExampleDescription
brand_nameAcme HealthYour brand name
current_year2026Current year (for copyright footers)
brand.support_emailsupport@example.comSupport email from Brand Settings
brand.support_phone+1 800 555 0100Support phone from Brand Settings

Purchase variables

Available in: purchase, refund, shipped, cancelled, renewal-success, renewal-failed, pre-renewal, subscription-paused, subscription-canceled, payment-method-expiring, dunning-final.
VariableExampleDescription
purchase.customer_emailjane@example.comCustomer email
purchase.customer_nameJane SmithFull name
purchase.customer_first_nameJaneFirst name
purchase.customer_last_nameSmithLast name
purchase.customer_phone+1 555 0100Phone number
purchase.public_order_idORD-1234Public order number
purchase.total99.00Order total
purchase.total_shipping_cost5.99Shipping cost
purchase.total_taxes8.50Tax amount
purchase.currency_codeUSDCurrency
purchase.purchased_atApr 28, 2026Formatted order date
purchase.purchased_at_time3:45 PMFormatted order time
purchase.payment_methodVisa ending in 4242Payment method
purchase.tracking_number1Z999AA10123456784Tracking number
purchase.tracking_urlhttps://…Tracking URL
purchase.carrierUPSShipping carrier
purchase.domainshop.example.comPurchase domain
purchase.card_charge_nameACME HEALTHStatement descriptor

Shipping / billing address fields

VariableDescription
purchase.shipping_addressStreet address
purchase.shipping_cityCity
purchase.shipping_stateState / province
purchase.shipping_zipPostal code
purchase.shipping_countryCountry
purchase.billing_addressBilling street
purchase.billing_cityBilling city
purchase.billing_stateBilling state
purchase.billing_zipBilling postal code
purchase.billing_countryBilling country

Product variables (inside @each)

Available inside @each(product in products) loops:
VariableExampleDescription
product.nameMonthly MembershipProduct display name
product.product_skuSKU-001Product SKU
product.price49.99Unit price
product.quantity1Quantity
product.total49.99Line total
product.currency_codeUSDCurrency
product.image_urlhttps://…Product image

Subscription variables

Available in subscription-related emails (renewal-success, renewal-failed, pre-renewal, subscription-paused, subscription-canceled, payment-method-expiring, dunning-final):
VariableExampleDescription
subscription.product_nameMonthly MembershipSubscription product
subscription.amount49.99Recurring amount
subscription.cycle_number3Current billing cycle
subscription.next_charge_date2026-05-01Next charge date
subscription.next_retry_date2026-05-03Next retry date (failed payments)
subscription.card_last44242Last 4 digits of card
subscription.card_exp12/2026Card expiration
subscription.resume_date2026-06-01Resume date (paused subscriptions)
subscription.retry_count3Number of failed payment retries

Course variables

Available in course enrollment, course magic link, and course comment notification emails:
VariableExampleDescription
course.nameMarketing 101Course name
course.login_urlhttps://…Course login URL
student.first_nameJaneStudent first name
lesson.nameLesson 3: FunnelsLesson name
lesson.urlhttps://…Lesson URL
commenter.nameJohnComment author name
comment.textGreat lesson!Comment content

Login variables

Available in member login verification code and magic link emails:
VariableExampleDescription
code482910Verification code
magic_link_urlhttps://…Magic link URL
expires_in_minutes15Expiration time

Refund request variables

Available in the refund request received email: Uses purchase.* variables (see above) plus brand.support_email and brand.support_phone.